简体   繁体   中英

Hosts file update Yosemite

I am running OSX Yosemite 10.10.2

When I update the hosts file using nano or vi with sudo, the update to hosts file gets reverted after a restart. I am new to Mac. Can someone tell me what I am doing wrong. Obviously I searched the internet before asking this question and I don't think I found a good answer. Apologize if it is a repeat question.

I was able to retain the hosts file entry by updating the /etc/hosts.ac in addition to /etc/hosts

I noticed that during logon and while connecting to work network via VPN the hosts file was replaced with the contents from /etc/hosts.ac

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM