I have been working with a hosting company that I trust completely; they have always done everything perfectly & have NEVER let me down or not been responsive.
Today, however, I am having them move a WordPress site for me & I am unable to test it on their server before I change the DNS.
My environment is Windows 7. They told me I could test it by adding an entry to a file called hosts located at C:\Windows\System32\driver
s. I went there and added an entry to the existing file that was <ip address www.sitename.com
> where ip address is the NEW ip address at the new host.
They said then open it in a browser, I did, it reverts back to the old (current) host.
My question is, I have never heard of this file "hosts" before. I'm guessing that having an entry there is supposed to make the browser go to the specified IP address for that domain name if it finds it in that file.
In FireFox it just stays with the old. In chrome, it gives a 404 error.
Is this technique supposed to work?