Windows hosts file not working
by Frank Kim on Aug.10, 2005, under Windows
On Windows you can manually match hostnames to IP addresses using the hosts file located in C:\WINDOWS\system32\drivers\etc. An example of a hosts file:
127.0.0.1 localhost #10.22.1.18 foo foo.bar.ca 16.17.18.19 toronto 16.17.18.125 boston
If you find that the contents of the hosts file are not being picked up by Windows it might be because the file is corrupted though the corruption is not evident in your editor. The best thing to do is to delete or move that file and create a brand new hosts file and hopefully the contents of this hosts file will be picked up by Windows.
Related posts:
June 3rd, 2008 on 11:32 AM
Holy smokes, this worked great for me. Thank you!
December 9th, 2008 on 7:49 AM
Yes Sir, thank you very much
February 2nd, 2010 on 6:55 AM
This works !!!!!!!!! , just copy paste the hosta file,ctrl+A remove all the content and write wt u want , clear cache if you are using IE ‘Done’
July 14th, 2010 on 9:40 AM
Worked for me, many thanks!