Tag Archives: howto

Managing multiple /etc/hosts files in Mac OS X

A while ago I wrote up a method for switching between /etc/hosts files. That post is pretty popular and clearly been useful to a few people.
Since then I’ve actually extended this method into a tool that can manage multiple /etc/hosts files. Using this new method you can have a folder that you can add hosts [...]

Fast switching your /etc/hosts file in Mac OS X

UPDATE: This method has been extended and superseded, find out about the “new improved” method here.

Web developers often have reason to fake a host name’s associated IP address by editing their /etc/hosts file.
The peculiarities of the development environment we use here at WordPress.com mean I find myself switching back and forth between two /etc/hosts configurations [...]