Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using Mac OX X 10.7.4. I changed my /private/etc/hosts file, but when I restarted my computer, my change is gone, like it was reset by the system.

Has anybody else encounter this problem? How did you resolve it?

share|improve this question

migrated from stackoverflow.com Jul 16 '12 at 12:05

This question came from our site for professional and enthusiast programmers.

2 Answers 2

Are you using Cisco AnyConnect VPN Client? It seems to overwrite /private/etc/hosts with /private/etc/hosts.ac.


share|improve this answer

Are you using sudo? you need root privileges to modify system files. Try

sudo nano /etc/hosts

sudo nano /private/etc/hosts

If you are using AnyConnect then check this /etc/hosts getting reset in Lion

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.