networkingdnsubuntu-11.10dhcp

How to prevent /etc/resolv.conf from getting overwritten after reboot in Ubuntu 11.10?


I'm using Ubuntu 11.10 and I manually configure DNS servers in /etc/resolv.conf but it gets somehow overwritten after I reboot. How can I prevent this?

Thanks.


Solution

  • I figure that the NetworkManager is overwriting the /etc/resolv.conf file. In my case it was the order in which my DNS servers were listed was something I wanted to change. You can do that through the NetworkManager by editing your connection IP4V settings.