Managing the host file on Leopard
Back in the days of Tiger (OSX 10.4) I use to manage hosts with the NetInfo Manager tool but alas this has seen an untimely demise in the Leopard (OSX 10.5) release. You can muck around with your local hosts file if you like but there are a couple of nifty tricks I've found useful.
Apple suggests you use a new utility...
NetInfo Manager is not included with Mac OS X 10.5 Leopard. You can use the command line utility dscl to perform some advanced functions formerly covered by NetInfo Manager. Open Terminal and type "dscl" to access it.
dscl (or Directory Service command line utility) looks a bit like this from the terminal:
sudo dscl localhost -create /Local/Default/Hosts/blog.daemonite.com IPAddress 192.168.200.212 dscl localhost -readall /Local/Default/Hosts
Type man dscl from the terminal for the sort of information that makes you want to stick needles in your eye.
But if you are a hosts fiend then you may find the Hosts Widget from dissipate.co.uk very handy.

Comments
Raymond Camden on 15 Jan 2008 11:19 PM
Scot Stroz suggest this. In Eclipse, make a new Project named Configuration. Then just make aliased files (I forget the real feature name, but the Eclipse feature where a file can point to an other file) for your HOSTS and httpd.conf file. So to edit them, I just open the file in Eclipse. I only need the command line if I need to make my system recognize a change. New host entries work just fine.
dave on 16 Jan 2008 06:16 AM
http://headdress.twinsparc.com/
RBD2 on 01 Sep 2009 02:41 AM
All over the web, the answers to this seem a lot harder than they have to be? Under the GO menu in Finder, select "GOTO Folder" Type /etc Find the "hosts" file by name Double click on it and it will open in text edit. Edit and Save?