Edit The Hosts File In Mac OS X
Join the DZone community and get the full member experience.Join For Free
The hosts file is a text document that maps IP addresses to hostnames. It's similar to, but trumps, DNS. To edit the hosts file in Mac OS X, launch Terminal and type:
sudo vi /etc/hosts
Opinions expressed by DZone contributors are their own.