Cisco AnyConnect VPN Client reverts hosts file

While working on localhost yesterday, I noticed that changes I’d make to the hosts file kept getting reverted. The hosts file wasn’t getting completely reset, only the most recent changes I’d made were lost. I’ve never had this problem before, so I thought, “What am I doing different today?” The only thing I could think of: using Cisco’s AnyConnect VPN client to connect to my work computer.

After it happened again this morning, I did a quick Google search for “cisco anyconnect resets hosts files.” Turns out AnyConnect is the problem. To solve it, you need to edit both hosts and I agree with ANewBite: “Why AC generates another hosts file is either beyond my comprehension or really stupid.”


Leave a Reply