How to stop NetworkManager from frobbing my /etc/resolv.conf

Wolfgang S. Rupprecht wolfgang.rupprecht at gmail.com
Sun Sep 26 23:08:13 UTC 2010


Tom Horsley <horsley1953 at gmail.com> writes:
> On Sun, 26 Sep 2010 09:56:34 -0700
> Craig White wrote:
>
>> PEERDNS=no
>
> Which you have to put in each ifcfg-* script managed by
> NetworkManager.

Or just put it in /etc/sysconfig/network and hit them all at once.

There are a bunch of other nice things you might want to put in there
while you are at it:

/etc/sysconfig/network:
NETWORKING=yes
HOSTNAME=xxx.example.com
DHCP_HOSTNAME=$HOSTNAME
IPV6_ROUTER=yes
IPV6FORWARDING=yes
PEERDNS=no  # /etc/resolv.conf
PEERNTP=no  # /etc/ntp.conf, /etc/ntp/step-tickers
PEERNIS=no  # /etc/yp.conf
NETWORKWAIT=yes

-wolfgang
-- 
Wolfgang S. Rupprecht      http://www.wsrcc.com/wolfgang/      (IPv6-only)


More information about the users mailing list