Our ISP accidentally switched us from a static IP to DHCP (long story) and it might be another day or two before we get our static IP back. In the meantime I'm trying to just use a host file on my machine but I can't get it to take. I've done this a million times before but I can't seem to get it to work on my Windows 7 machine. Here's my simple one line that I'm trying to do:
I've added that to
c:\windows\system32\drivers\etc\hosts using an elevated notepad. Then I run
ipconfig /flushdns and
arp -d and try pinging it with
ping test.example.com but I just get:
Ping request could not find host test.example.com. Please check the name and try again.
If I repeat the exact same process on a virtual XP machine on the same physical machine it resolves to
127.0.0.1 which is exactly what I want.
There's a similar post here that talks about checking the proxy settings but I don't have one configured.
I've also checked the value of the registry key below and its set at 500 which is second lowest (class is 8):
I also read a post that Windows 7 wants 8 spaces between the IP and the host and I tried that (as well as 7 spaces, 1 space, 1 tab) to no avail.
I don't have time to setup a DNS server locally so that's not an option. This is all command-line, I'm not even at the browser level yet. Yes, I'm sure that
c:\Windows is the correct path, I've checked
%SystemRoot%. And yes, I'm sure that I'm saving the file as
hosts without an extension.