Mac OS X: Adding Entry to “Hosts” File
Posted by pebuchmann_super on 04 Sep 2009 | Tagged as: Mac OS X, Network
Found this tutorial about how to map a domain name to a IP address on the mac. > sudo dscl localhost -create /Local/Default/Hosts/some.stupid.com IPAddress 127.0.0.1 > ping -q -c 1 some.stupid.com