If you are working with a lot of sites in IIS then you will be familiar with the hosts file on your computer. %SystemRoot%\System32\drivers\etc\hosts, usually found in C:\Windows\System32\drivers\etc\hosts. This file acts as a DNS mapping table used by your computer. As a developer, you will often want to tinker with this table. For example, you have a site running locally and you want to run it with a URL in your browser. You can map www.mysite.local to the IP address of your machine, or the local loopback address 127.0.0.1

127.0.0.1    www.mysite.local    #comments are supported too

You can even use line comments at the end of your config using the ‘#’ character, or comment out lines by placing a ‘#’ at the start of the file.

Managing this can get really annoying. It’s a text file, its owned by the system, and you usually need to be running your editor as admin to save it. It is also located so deeply into the windows directory that it is bothersome to deal with at times.

Luckily, a nice GUI has been built for it that you can pull down off of CodePlex. The best thing is that it plugs into IIS directly. It is called IIS Hosts File Manager Module. Check it out at https://iishostsmgr.codeplex.com/

Host Manager in action - image from https://iishostsmgr.codeplex.com/

The UI is very simple and easy to use. It means that you can add or update host entries directly inside IIS without having to go hunting for the file. A huge productivity boost.

Recommended.