Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

/etc/hosts overwritten

Hi all.
I noticed that in Lion my /etc/hosts and /private/hosts gets overwritten at boot time. This is rather annoying as I would use said file to store the IP to name translations of some local computers.


Before editining I would always become root and use nano to edit the file.


Question: how do I make the changes to the hosts file permanent?


Thanks,

zidarko

Posted on Jun 5, 2012 11:10 PM

Reply
1 reply

Jun 5, 2012 11:52 PM in response to zidarko

Well you could lock it. But it is better to find out who is clobbering it. I've seen posts about something like this before but it slips my mind exactly what the fix was.


Look in /etc/ and see if there other "hosts" files like host.bac, hosts.ac, etc. If you find them delete them. I'm assuming there might be one that is used to clobbler yours.


Aslo see if this has any connection to your problem:


10.7: Adding entries to the Cisco AnyConnect hosts file

/etc/hosts overwritten

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.