Disappearing Hosts On A Mac

I’ve been doing some local development work on my Macbook Pro and I noticed that my /private/etc/hosts file kept getting wiped.

I use Cisco’s AnyConnect Secure Mobility Client to connect to the office VPN and this was causing difficulties.

It turns out that the file to edit if you use a Cisco VPN product is /private/etc/hosts.ac as this file is used to overwrite /private/etc/hosts each time you connect in.

Leave a Reply