
Read the nf(5) manpage for an explanation of the options. Must be customized to obtain a working pdnsd setup! There have been multiple calls to various mailing lists and even the Tor Project wiki to ask users to diversify their DNS servers but unfortunately it's often not heeded or it's overlooked, and so defaults prevail.įor further reading, I'd recommend Philipp Winter's summary of various studies and effects.Code: // Sample pdnsd configuration file. There are definite problems with one entity seeing large portions of Tor circuit destinations and there are further still problems with public DNS providers applying censorship and even NXDOMAIN hijacking, resulting in degradation or denial of service for Tor users. Tor uses libevent's eventdns as an asynchronous, caching DNS resolver internally and by default that will use the operating systems DNS resolver, although this can be managed through the ServerDNSResolvConfFile option in torrc. This means that the mechanism for resolving hostnames is entirely entirely at the exit node. RELAY_RESOLVED cell containing any number of answers. (For a reverse lookup, the OP sends a RELAY_RESOLVEĬell containing an in-addr.arpa address.) The OR replies with a RELAY_RESOLVE cell containing the hostname to be resolved with a NUL To find the address associated with a hostname, the OP sends a Necessary, and opens a new TCP connection to the target port.Īlternatively, it's possible to explicitly request an exit relay to resolve an address: Upon receiving this cell, the exit node resolves the address as To open a new anonymized TCP connection, the OP chooses an openĬircuit to an exit that may be able to connect to the destinationĪddress, selects an arbitrary StreamID not yet used on that circuit,Īnd constructs a RELAY_BEGIN cell with a payload encoding the address Infact, in the best case scenario (because it's less likely to result in applications leaking DNS) the client doesn't even care about DNS, it simply hands off the hostname and lets the other side handle it.Ħ.2. It hands off this resolving to some exit relay. A Tor client does not know where or how any DNS record will be resolved.
