Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Edit The Hosts File In Mac OS X

DZone's Guide to

Edit The Hosts File In Mac OS X

·
Free Resource
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


Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}