Localhost In DNS, "Localhost" is a special IP name that always refers to the local host and, by convention, has the IP address 127.0.0.1.