MacOS – Hosts file being reset after every reboot

hostsmacosvpn

My /private/etc/hosts file is being reset after every reboot. I can make my changes, save the file, and it will work. Right up until I reboot my Mac. Has anyone found a work around for this or a way to prevent it from happening?

I'm running OSX Yosemite 10.10.4.

UPDATE: It was my VPN Client, Cisco AnyConnect. See comments for solution.

Best Answer

You have two choices.

One is stop using Cisco AnyConnect -not a solution just a choice.

The other is just use the Cisco AnyConnect host file and modify it with your modifications, since it will will overwrite your /private/etc/host.

Cisco host file: /private/etc/hosts.ac