FlyerTalk Forums - View Single Post - Question on using the hosts file
View Single Post
Old Feb 27, 2015, 3:54 pm
  #6  
BigLar
FlyerTalk Evangelist
 
Join Date: Nov 2002
Location: Freeload Univ. Where are you sitting?
Posts: 14,818
Originally Posted by HDQDD
What OS?
Windows 7 and XP.
Originally Posted by HDQDD
In most OSes, the format is:

127.0.0.1 dumbsite.com
127.0.0.1 anotherdumbsite.com
The format is correct.
Originally Posted by HDQDD
You should be able to use ping or nslookup to verify that it works.
I tried pinging (command prompt) using the exact spelling as in the file and it substitutes the appropriate alias (if necessary), fills in the proper IP address, and proceeds to ping the right guy and get a response. Nslookup finds the right guy, too. Clearly it seems to be ignoring the file or I'm misusing it.
BigLar is offline