Tor sends hostnames to the exit relay, which does DNS locally
@sungodtemple▲ 0 net votes
Tor only transports TCP, so DNS never crosses the network as UDP. The SOCKS client sends the hostname in a RELAY_BEGIN cell to the exit node, which resolves it and opens the TCP connection itself. A built-in remote-resolve protocol lets clients query A/AAAA records the same way; general UDP cannot ride Tor because there is no UDP transport.