4 ms·
Applications that do not implement the Tor protocol SHOULD generate an error upon the use of .onion and SHOULD NOT perform a DNS lookup. Wait, does this me
by TeMPOraL 10y ago
Applications that do not implement the Tor
protocol SHOULD generate an error upon the use of .onion and
SHOULD NOT perform a DNS lookup.
Wait, does this mean that all my applications that deal with URLs now have to check for and reject entries that use .onion domain?
- Jarwain 10y agoI'd think, for the most part, it would act like using a typical invalid URL and throw an error. Special cases would be, say, Chrome rejecting .onions instead of doing a search
- jdiez17 10y agoOnly applications that actually access URLs would need to generate an error. In practice, your code doesn't need to know about .onion domains - but network libraries like libcurl do.
- andreareina 10y agoAbstractly something on layer 7 of the OSI model shouldn't care exactly how the data is being routed, but the security considerations of using TOR breaks the abstraction. A naïve client could be made to leak identifying information through any number of side-channels. Since the lower layers can't have a whitelist of acceptable applications to connect to .onion addresses, the applications themselves must voluntarily refrain from connecting. This is like the prevailing wisdom to check malloc's return value, not storing passwords in the database, not rolling your own crypto, etc. except that in this case it actually got included in the standard. Unfortunately like all those other things, there's nothing that actually prevents a programmer from breaking the rules.
- jstanley 10y agoYou don't have to. The reason to do so is to protect your user's privacy (i.e. so that their DNS server doesn't see what onion addresses they were trying to visit).
- dheera 10y agoWhat is this nonsense? A domain iooks up to an IP address (and some other things). DNS does not and should not care about what protocols are going to be used with said IP address. I can use an .onion domain for unencrypted Telnet as root with no password if I want. It's stupid but that's not something that should be restricted at a DNS level.
- erydo 10y agoAt first I agreed with you, but realized that my preferred solution was essentially what they recommended and just with different wording. My thought process was: - Absolutely, DNS resolvers should not care or have knowledge of the protocol that will be used to access that address. - What they *should* do is just say that normal DNS resolvers shouldn't ever resolve .onion addresses. - (And then Tor should include a special DNS resolver that does anyway.) - Oh, that's compatible with what they said. I think some of the confusion comes from their use of "applications".
- sp332 10y agoIt says the DNS lookup should not be performed.
- Ajedi32 10y agoThe problem is that > Tor should include a special DNS resolver that does anyway Would be pointless, given that the spec says: > Applications that do not implement the Tor protocol SHOULD generate an error upon the use of .onion and SHOULD NOT perform a DNS lookup. So according to this spec, even if you did implement a special DNS resolver, only TOR-aware applications would be able to use it, and that's pointless since TOR-aware applications can connect to `.onion` services without using DNS at all.