How does Tor get Clearnet IP addresses


Okay, say I want to visit YouTube on Tor. How does Tor get YouTubes IP address? Do I query a DNSserver? Does the Gaurd node query the DNS server? Or is it the exit node? Does Tor ignore /etc/hosts?

In: 5

The exit node would connect to Youtube in the same way anyone else does.

The only difference between you connecting to Youtube normally and over Tor is when you do it over Tor, you’re going over the Tor network via onion routing.

The exit node handles DNS. The client just tells the exit node the name of the server they want to connect to, not its IP address. The exit node will then look up this domain to get the address and then establish a connection to that address.