home ‣ Local DNS modifications on Windows (/etc/hosts equivalent)

31 Dec 2005 · Tags: windows ← newer • 206 of 588older →

On Unix, /etc/hosts file contains mappings between an IP address and a name of the host. It overrides mappings from DNS. Windows has an equivalent of this file: c:\WINDOWS\system32\drivers\etc\hosts (at least that's the name on Windows XP).

What are possible uses for this file:

Changes to hosts file take place immediately after saving the file.

Here's the simplest mapping from 127.0.0.1 to localhost and blog.local.org names:

127.0.0.1       localhost blog.local.org

blog comments powered by Disqus