Since previous post about how to edit Windows Host File at
Today, I am going to share the path of DNS Host File location for Windows, Linux and Mac.
If you are the webmaster of a website and you often modify your script and update directly from the server, you will need to always check if you are resolved to the correct testing box(servers).
By modify the Windows Host file, you will be able to correctly view the actual result instead of the cache from your PC to the old host (if you have more than 2 hosting servers).
To change your Windows Host File, you may simply use the notepad available from the Windows Operating System, run it as administrator mode if you are running Windows Vista or Windows 7.
Then open the file located at C:\Windows\System32\drivers\etc\hosts. Modify according to your need like example below.