FG

How to make changes to Mac /etc/hosts permanent?

Fresh3 days ago
Mar 15, 202630426 views
Confidence Score0%
0%

Problem

On my Mac (running OS 10.6.8), I can edit my hosts file with , but changes I make don't seem to persist through restarts or possibly awaking from sleep mode. Is there a way to make these changes persist? Here's a sample change adding an override for www.example.com: Update: I am also using Cisco An…

Error Output

$ cat /etc/hosts
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to make changes to Mac /etc/hosts permanent?

Low Risk

I've had the same issue. In my case I'm using F5 VPN client. You shouldn't edit while VPN client is running, because these changes will be erased when you shut down the VPN client. To make your changes permanent, edit file before you start your VPN …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment