This is an old revision of the document!
Host file
Edit for testing
If you are working on a temporary site that is located at a different location, you may need to change how your computer uses DNS on that page. You do this by editing the Host file. Here are the steps:
Figure out what you want to change, for example:
mywebsite.com has a development version on a dns server at 11.22.33.44
Open the host file, here are the locations:
%SystemRoot%\System32\drivers\etc\hosts - Windows
/etc/hosts - Unix
Open the file with a simple text editor like notepad or notepad++
To add an entry, add the line:
[ip of server location] [domain]
So in the above example, the line will be:
11.22.33.44 mywebstie.com
Save file. You may need to give windows elevated permission to save
Open a browser and clear cache or do private browsing to test.
Sometimes it helps to run flush dns:
Press the key combo Windows + R
Type this and press return:
ipconfig /flushdns