[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: NetworkManager vs Cacheing nameserver



On Tue, 05 Jan 2010 00:39:26 +0000
Patrick O'Callaghan wrote:

> How does one convince NM not to interfere with resolv.conf?

Don't know for sure how to make interfaces managed by NM
stop doing it, but for my non-NM system I still have to
prevent resolv.conf from being scrogged by setting

PEERDNS=no

in my /etc/sysconfig/network-scripts/ifcfg-eth0 file.

Note that after you change this (if it works) you may still
have to fix the resolv.conf file two or three more times
after reboots because it has the old version of resolv.conf
stashed somewhere and keeps copying it back even after you
change the PEERDNS option.

The big hammer for preventing resolv.conf mods (and
other files as well) is:

chattr +i /etc/resolv.conf

not even root can change it after that (though root
can do a chattr -i to put it back the way it was).


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]