NetworkManager-resolv.conf -

Rick Stevens ricks at alldigital.com
Wed Nov 14 18:05:26 UTC 2012


On 11/14/2012 09:44 AM, lee issued this missive:
> "Bob Goodwin - Zuni, Virginia, USA" <bobgoodwin at wildblue.net> writes:
>
>>     How can I tell NetworkManager not to change my /etc/resolv.conf file
>>     or do I need to just stop using NM? These are fixed F-17/64
>>     computers and I use NM simply because it's there and works, however
>>     I want to change the dns settings and not have them over written. I
>>     don't see how it can be done with the edit GUI menu that comes up
>>     when I click on the NM icon.
>
> It's better to disable networkmanager then.  It seems to be more a tool
> for ever changing connections used with dhcp.  In a fixed setup, you
> don't need it, and disabling it saves you the process constantly
> running.
>
> Other than that, you could change the "NM_CONTROLLED=yes" entry to
> "NM_CONTROLLED=no" in the ifcfg-* files for your interfaces.  That
> /should/ stop networkmanager from overwriting resolv.conf ... somehow I
> have doubts that it actually would without further ado.

Actually, I think you can do "PEERDNS=no" in the /etc/sysconfig/network
file prevent overwriting the resolv.conf file. If you do that, then
remove any "PEERDNS" lines from the ifcfg-* files (or they'll override
the setting when they're invoked).
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital    ricks at alldigital.com -
- AIM/Skype: therps2        ICQ: 22643734            Yahoo: origrps2 -
-                                                                    -
----------------------------------------------------------------------


More information about the users mailing list