How to prevent Network manager from overwriting resolv.conf in RHEL7

By   01-18-2015 · 1 minute read · 80 words


I recently upgraded to Red Hat 7 from 6 and noticed an issue where my /etc/resolv.conf file kept getting over written by network manager after every reboot. Specifically the search domain I set would be over written by something assigned by the dynamic dns server.

To stop this behavior you can edit /etc/NetworkManager/NetworkManager.conf and add the following parameter.

dns=none

This will stop the search domain from being altered across future reboots.

My full /etc/NetworkManager/NetworkManager.conf looks like so:

[main]
plugins=ifcfg-rh
dns=none

red-hat  

comments powered by Disqus