Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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
1  
Can you describe the process you use to edit the hosts file? –  Matt Love Feb 6 '12 at 19:02

2 Answers 2

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

Are you using a Cisco VPN client?

Check out this answer on superuser.com

share|improve this answer

Your Answer

 
discard

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.