Tuesday, April 13, 2010

On Windows hosts file not working

The hosts file ( C:\windows\system32\drivers\etc\hosts ) is used by TCP/IP
before it tries to resolve a name from a DNS server. But sometimes, it stops
working for some unfathomable reason.

First, make sure DatabasePath in your registry under TCPIP/Parameters
is correctly pointing to C:\WINDOWS\System32\drivers\etc.

But I recently ran into a problem where everything was apparently
fine but Windows could not resolve any entry in the hosts file.

Fiddling around with DNS Client ( dnscache ) and ipconfig /flushdns
did not help.

I finally got hold of the solution which I will post here for people who
may otherwise have to waste days. Follow the instructions here -

No comments: