31 August 2008
localhost resolves to localhost.com (Vista)
Posted by Mikhail Esteves under: Tips; Windows .
If localhost on Vista resolves to localhost.com, this is usually because Vista is looking at the IPv6 address for localhost and resolving to ::1. You can check this by either pinging localhost on your machine, or doing a nslookup on localhost.
To resolve this issue:
- Edit
C:\Windows\System32\drivers\etc\hosts - Uncomment the line that reads
::1 localhost
Now Flush your DNS Resolver cache by running ipconfig /flushdns a couple of times and localhost should resolve fine.