Coupon code copied
Server Intellect
(855) 850-HOST

Toll Free 24/7/365        (4678)

Get help from a Microsoft Certified Engineer.

Intellect Connect

Technical problem with your Windows Hosting?

Let our Microsoft Certified experts handle the problem for you.

Editing the “hosts” File on Mac OS

The hosts file is a location in your operating system that allows you to manually define where your computer should look for specific domain names. This bypasses DNS and ensures you are directed to a specific server.

Manual entries in the hosts file are often used as temporary solutions, most often for testing websites before DNS propagation or troubleshooting communication in Active Directory configurations.

These instructions are for Mac OS, click the following link for instructions on Editing the “hosts” File on Windows.

Only administrator users have access to update the hosts file, please ensure you have administrative access before continuing.

Changes to the hosts file are often blocked by antivirus software, temporarily disable any antivirus software you have running to avoid issues.

Step 1

Open “Terminal” by searching for it from Spotlight. You can reach Spotlight by clicking on the magnifying glass icon in the top right of the screen or pressing “Command + Spacebar


Step 2

In Terminal type “sudo nano /private/etc/hosts” and press enter. You will be prompted for your password in the Terminal window, type it and press enter. When entering your password the keys you press will now show up in the Terminal window, this is expected behavior.


Step 3

Navigate to the bottom of the file using the arrow keys. You can then type or paste in the desired entry into the hosts file. When you have made your changes press “Control + O” to save then “Control + X” to exit.


Step 5

You can verify the entry is in effect by running a ping request to the IP address by typing “ping” replacing with the address you added to the hosts file. Verify the IP address returned by the ping request matches the value you entered in the hosts file.

You can now re-enable your antivirus software if applicable and close the Terminal window.

Interested in letting our experts solve your IT problems for you?
Get a free, no-obligations consultation with one of our experts today!

Call us at (855) 850-HOST


Start Your Order


This form does not accept free e-mail accounts. Please enter a business e-mail to submit it.

Submit Form Cancel

Please wait...

Submitting your info. This may take less than a minute.