Secret Mustache

Adventures of a Scruffy Nerf Herder

Modifying DNS for testing/dev

13 June 2011

Recently I needed to find the equivalent of /etc/hosts for Win7. I'll be honest, my first attempt at poking around Windows was a complete flop. I haven't worked in a Windows environment in years and I can't claim that I was a power user at that time (even remotely).

Let me quickly get to the point of this post, on Win7 there exists a hosts file. I was pleasantly surprised that it functions the same as /etc/hosts on Linux.


Simply update the with the hosts file with the paths that your need:

# Host Database
# localhost is used to configure the loopback interface
### added for testing purposes don't touch   localhost broadcasthost

And test/dev away!

References: - Krzysztof Kowalczyk

This entry was tagged as testing dev

blog comments powered by Disqus