Mac OS X: Adding Entry to “Hosts” File

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

Leave a Reply

Your email address will not be published. Required fields are marked *


*