hosts entries priority, ignored if not 127.0.0.1
Posted on 2004-09-06
Perhaps the title is not the best explanation... but basically the problem I do have is with the hosts file in a windows 2000 professional SP4 up to date of hotfixes.
I'm developing a website, and before I do finish the site and do a DNS change, I do want to test the site's script behaivor...
Basically what I'm doing is to change the IP address entry in the hosts file of the current site name to point to my new server where all the test files reside.
If I do open a console and ping www.mysite.com, it resolves to the address I have put into hosts file, but if I do load the browser, it seems to ignore the hosts entry and loads the onld server site. I have done a ipconfig /flushdns, and still sme.
It only seems to act as expected if I do use 127.0.0.1 address in host file (however my server is not in localhost)...
Perhaps this is some kind of anti-hijacking of domains?...
Thanks for your help!