[CentOS] NetworkManager constantly overwriting /etc/resolve.conf - how to disable?

Robert Heller heller at deepsoft.com
Sun Nov 29 23:56:58 UTC 2009


At Mon, 30 Nov 2009 00:55:28 +0200 CentOS mailing list <centos at centos.org> wrote:

> 
> On Mon, Nov 30, 2009 at 12:13 AM, Tosh <toshlinux at gmail.com> wrote:
> >
> > Add to /etc/sysconfig/network-scripts/ifcfg-ethX
> > The following 2 lines :
> > PEERDNS=no
> > NM_CONTROLLED=no
> >
> > Line 1 tells the the if commands not to override /etc/resolv.conf
> > Line 2 tells NetworkManager that it doens't have control over that
> > ethernet controller
> >
> >
> > --
> 
> Hi Tosh,
> 
> As matter of interest, since I don't see those options on our other
> servers (which doesn't have this behaviour and they're also on CentOS
> 5.4), are these settings new? OR do I have something else installed
> that is causing this?

You either

A) Don't have NetworkManager installed on the other servers
(eg 'rpm -q NetworkManager' yields 'package NetworkManager is not installed')

OR

B) Don't have NetworkManager running on the other servers
(eg '/sbin/chkconfig NetworkManager --list' yields 
'NetworkManager 0:off   1:off   2:off   3:off   4:off   5:off   6:off')

> 
> 
> 

-- 
Robert Heller             -- 978-544-6933
Deepwoods Software        -- Download the Model Railroad System
http://www.deepsoft.com/  -- Binaries for Linux and MS-Windows
heller at deepsoft.com       -- http://www.deepsoft.com/ModelRailroadSystem/
                                                                                                                            



More information about the CentOS mailing list