"localhost" is the standard host name given to a computer's loopback network interface. This host name will always resolve to send traffic to the local computer. It does not result in a DNS query out to the internet.