Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

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

See

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

You must log in to answer this question.