Ask Different is a question and answer site for power users of Apple hardware and software. 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 have a computer on my local network for which I would like to use a nice alias, and therefore I put an entry in /etc/hosts. After a while this change is undone. The entry is gone from /etc/hosts. It happens repeatedly for several days now.

Do you know why this is happening?

share|improve this question
Can you describe the process you use to edit the hosts file? – Matt Love Feb 6 '12 at 19:02

Are you using a Cisco VPN client?

Check out this answer on

share|improve this answer

In this case you might need to catch the culprit process that is editing the file. Tools like fseventer or just the command line tool fs_usage should be enough to see when the /private/etc/hosts file gets written or modified.

Many programs are known to edit that file destructively, but guessing which might be harder than simply tracking your instance down. Please edit this or answer yourself if you do find the culprit in your instance.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.