FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 11-29-2009, 08:42 PM
Robert Heller
 
Default NetworkManager constantly overwriting /etc/resolve.conf - how to disable?

At Sun, 29 Nov 2009 22:57:23 +0200 CentOS mailing list <centos@centos.org> wrote:

>
> Hi all,
>
> I have a CentOS 5.4 server-only installation, i.e. no X installed, and
> for some odd reason /etc/resolve.conf gets overwritten by
> NetworkManager on a constant basis. I haven't been able to track down
> how often, but I think it's on the hour, or something.
>
> This is the conents of the file right now:
>
> # Generated by NetworkManager
>
>
> # No nameservers found; try putting DNS servers into your
> # ifcfg files in /etc/sysconfig/network-scripts like so:
> #
> # DNS1=xxx.xxx.xxx.xxx
> # DNS2=xxx.xxx.xxx.xxx
> # DOMAIN=lab.foo.com bar.foo.com
>
>
>
>
> So, I change it to the following:
>
> nameserver 192.168.1.254, save it, and all network functions work
> fine. But, later on it get's changed again. Running
> "system-config-network", I can see that the nameserver that I have
> specified is in there, yet it doesn't show up in /etc/resolve.conf.
>
> I have searched a bit on google, but all the results reveal how to use
> NetworkManager to setup the nameservers, but now how it get's set
> automatically. Why does this happen, and how do I stop it from
> happening?

You probably DON'T want NetworkManager running on a server!

Do this:

# Stop NetworkManager
sudo /sbin/service NetworkManager stop
# Disable it from starting at boot time
sudo /sbin/chkconfig NetworkManager off

And then *manually* set things up.

NetworkManager is meant for things like laptops that are (randomly)
connected to this or that WiFi at this or that Internet Cafe, Library,
School, Home WiFi, whatever. NetworkManager automagically adjusts
things as it encounters different networks, etc. A server will have
fixed / static networking and needs no dynamic adjustments.

>

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

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 11-29-2009, 09:53 PM
Rudi Ahlers
 
Default NetworkManager constantly overwriting /etc/resolve.conf - how to disable?

On Sun, Nov 29, 2009 at 11:43 PM, Rob Kampen <rkampen@kampensonline.com> wrote:
>
> Rudi,
> As I recall there was a thread about this a few weeks ago.
> Please show your /etc/sysconfig/network-scripts/ifcfg-ethX contents.
> Thanks
>
>
> _______________________________________________


Hi Rob,

Here's the contents:


[root@intranet OpenQRM]# more /etc/sysconfig/network-scripts/ifcfg-eth0
# Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
DEVICE=eth0
BOOTPROTO=none
HWADDR=00:16:e6:69:49:9a
ONBOOT=yes
NETMASK=255.255.255.0
IPADDR=192.168.1.250
GATEWAY=192.168.1.254
TYPE=Ethernet
DNS=192.168.1.254
DNS=192.168.1.1



--
Kind Regards
Rudi Ahlers
CEO, SoftDux Hosting
Web: http://www.SoftDux.com
Office: 087 805 9573
Cell: 082 554 7532
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 11-29-2009, 09:55 PM
Rudi Ahlers
 
Default NetworkManager constantly overwriting /etc/resolve.conf - how to disable?

On Mon, Nov 30, 2009 at 12:13 AM, Tosh <toshlinux@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?



--
Kind Regards
Rudi Ahlers
CEO, SoftDux Hosting
Web: http://www.SoftDux.com
Office: 087 805 9573
Cell: 082 554 7532
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 11-29-2009, 10:56 PM
Robert Heller
 
Default NetworkManager constantly overwriting /etc/resolve.conf - how to disable?

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

>
> On Mon, Nov 30, 2009 at 12:13 AM, Tosh <toshlinux@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 0ff 1ff 2ff 3ff 4ff 5ff 6ff')

>
>
>

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

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 11-30-2009, 07:27 AM
Rudi Ahlers
 
Default NetworkManager constantly overwriting /etc/resolve.conf - how to disable?

On Mon, Nov 30, 2009 at 1:56 AM, Robert Heller <heller@deepsoft.com> wrote:

>
> 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 0ff * 1ff * 2ff * 3ff * 4ff * 5ff * 6ff')
>
>>
>>
>>
>
> --
> Robert Heller * * * * * * -- 978-544-6933
> Deepwoods Software * * * *-- Download the Model Railroad System
> http://www.deepsoft.com/ *-- Binaries for Linux and MS-Windows
> heller@deepsoft.com * * * -- http://www.deepsoft.com/ModelRailroadSystem/
>
> _______________________________________________


Thanx Robert, so it's safe to remove NetworkManager then? I have done
so, and will see if any issues arise. The only files that was removed
is:

Removing:
NetworkManager i386
1:0.7.0-9.el5 installed
3.3 M
NetworkManager x86_64
1:0.7.0-9.el5 installed
3.4 M
Removing for dependencies:
NetworkManager-glib i386
1:0.7.0-9.el5 installed
154 k
NetworkManager-glib x86_64
1:0.7.0-9.el5 installed
161 k




--
Kind Regards
Rudi Ahlers
CEO, SoftDux Hosting
Web: http://www.SoftDux.com
Office: 087 805 9573
Cell: 082 554 7532
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 11-30-2009, 08:08 AM
Rob Townley
 
Default NetworkManager constantly overwriting /etc/resolve.conf - how to disable?

On Mon, Nov 30, 2009 at 2:27 AM, Rudi Ahlers <rudiahlers@gmail.com> wrote:
> On Mon, Nov 30, 2009 at 1:56 AM, Robert Heller <heller@deepsoft.com> wrote:
>
>>
>> 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 0ff * 1ff * 2ff * 3ff * 4ff * 5ff * 6ff')
>>
>>>
>>>
>>>
>>
>> --
>> Robert Heller * * * * * * -- 978-544-6933
>> Deepwoods Software * * * *-- Download the Model Railroad System
>> http://www.deepsoft.com/ *-- Binaries for Linux and MS-Windows
>> heller@deepsoft.com * * * -- http://www.deepsoft.com/ModelRailroadSystem/
>>
>> _______________________________________________
>
>
> Thanx Robert, so it's safe to remove NetworkManager then? I have done
> so, and will see if any issues arise. The only files that was removed
> is:
>
> Removing:
> *NetworkManager * * * * * * * * * * * * * * * * *i386
> * * * * * * 1:0.7.0-9.el5 * * * * * * * * * * * * * * *installed
> * * * * * * * * * * * 3.3 M
> *NetworkManager * * * * * * * * * * * * * * * * *x86_64
> * * * * * * 1:0.7.0-9.el5 * * * * * * * * * * * * * * *installed
> * * * * * * * * * * * 3.4 M
> Removing for dependencies:
> *NetworkManager-glib * * * * * * * * * * * * * * i386
> * * * * * * 1:0.7.0-9.el5 * * * * * * * * * * * * * * *installed
> * * * * * * * * * * * 154 k
> *NetworkManager-glib * * * * * * * * * * * * * * x86_64
> * * * * * * 1:0.7.0-9.el5 * * * * * * * * * * * * * * *installed
> * * * * * * * * * * * 161 k
>
>
>
>
> --
> Kind Regards
> Rudi Ahlers
> CEO, SoftDux Hosting
> Web: http://www.SoftDux.com
> Office: 087 805 9573
> Cell: 082 554 7532
> _______________________________________________
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>

i uninstall NetworkManager as well, but i would think you have bigger
problems since it appears you have both the 64bit and 32bit versions
of software installed?
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 11-30-2009, 08:18 AM
Rudi Ahlers
 
Default NetworkManager constantly overwriting /etc/resolve.conf - how to disable?

On Mon, Nov 30, 2009 at 11:08 AM, Rob Townley <rob.townley@gmail.com> wrote:
>
> i uninstall NetworkManager as well, but i would think you have bigger
> problems since it appears you have both the 64bit and 32bit versions
> of software installed?
> _______________________________________________


Well, I use a x64 system, and AFAIK, a lot of application
automatically instell the i386 version of the files needed, but I
could be wrong?


--
Kind Regards
Rudi Ahlers
CEO, SoftDux Hosting
Web: http://www.SoftDux.com
Office: 087 805 9573
Cell: 082 554 7532
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 11-30-2009, 11:18 AM
Robert Heller
 
Default NetworkManager constantly overwriting /etc/resolve.conf - how to disable?

At Mon, 30 Nov 2009 10:27:27 +0200 CentOS mailing list <centos@centos.org> wrote:

>
> On Mon, Nov 30, 2009 at 1:56 AM, Robert Heller <heller@deepsoft.com> wrote:
>
> >
> > 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 0ff * 1ff * 2ff * 3ff * 4ff * 5ff * 6ff')
> >
> >>
> >>
> >>
> >
> > --
> > Robert Heller * * * * * * -- 978-544-6933
> > Deepwoods Software * * * *-- Download the Model Railroad System
> > http://www.deepsoft.com/ *-- Binaries for Linux and MS-Windows
> > heller@deepsoft.com * * * -- http://www.deepsoft.com/ModelRailroadSystem/
> >
> > _______________________________________________
>
>
> Thanx Robert, so it's safe to remove NetworkManager then? I have done

For a server, yes. NetworkManager is the system deamon that works with
the GNome network management applet that provides the UI to finding and
connecting to things like wireless networks. It is mainly only really
useful for laptops with wireless networking. It could also be used for
things like Air Cards and 'hard networks' (laptops and 'roving'
desktops which get pluged into different networks).

> so, and will see if any issues arise. The only files that was removed
> is:
>
> Removing:
> NetworkManager i386
> 1:0.7.0-9.el5 installed
> 3.3 M
> NetworkManager x86_64
> 1:0.7.0-9.el5 installed
> 3.4 M
> Removing for dependencies:
> NetworkManager-glib i386
> 1:0.7.0-9.el5 installed
> 154 k
> NetworkManager-glib x86_64
> 1:0.7.0-9.el5 installed
> 161 k
>
>
>
>

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

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 11-30-2009, 11:18 AM
Robert Heller
 
Default NetworkManager constantly overwriting /etc/resolve.conf - how to disable?

At Mon, 30 Nov 2009 03:08:01 -0600 CentOS mailing list <centos@centos.org> wrote:

>
> On Mon, Nov 30, 2009 at 2:27 AM, Rudi Ahlers <rudiahlers@gmail.com> wrote:
> > On Mon, Nov 30, 2009 at 1:56 AM, Robert Heller <heller@deepsoft.com> wrote:
> >
> >>
> >> 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 0ff * 1ff * 2ff * 3ff * 4ff * 5ff * 6ff')
> >>
> >>>
> >>>
> >>>
> >>
> >> --
> >> Robert Heller * * * * * * -- 978-544-6933
> >> Deepwoods Software * * * *-- Download the Model Railroad System
> >> http://www.deepsoft.com/ *-- Binaries for Linux and MS-Windows
> >> heller@deepsoft.com * * * -- http://www.deepsoft.com/ModelRailroadSystem/
> >>
> >> _______________________________________________
> >
> >
> > Thanx Robert, so it's safe to remove NetworkManager then? I have done
> > so, and will see if any issues arise. The only files that was removed
> > is:
> >
> > Removing:
> > *NetworkManager * * * * * * * * * * * * * * * * *i386
> > * * * * * * 1:0.7.0-9.el5 * * * * * * * * * * * * * * *installed
> > * * * * * * * * * * * 3.3 M
> > *NetworkManager * * * * * * * * * * * * * * * * *x86_64
> > * * * * * * 1:0.7.0-9.el5 * * * * * * * * * * * * * * *installed
> > * * * * * * * * * * * 3.4 M
> > Removing for dependencies:
> > *NetworkManager-glib * * * * * * * * * * * * * * i386
> > * * * * * * 1:0.7.0-9.el5 * * * * * * * * * * * * * * *installed
> > * * * * * * * * * * * 154 k
> > *NetworkManager-glib * * * * * * * * * * * * * * x86_64
> > * * * * * * 1:0.7.0-9.el5 * * * * * * * * * * * * * * *installed
> > * * * * * * * * * * * 161 k
> >
> >
> >
> >
> > --
> > Kind Regards
> > Rudi Ahlers
> > CEO, SoftDux Hosting
> > Web: http://www.SoftDux.com
> > Office: 087 805 9573
> > Cell: 082 554 7532
> > _______________________________________________
> > CentOS mailing list
> > CentOS@centos.org
> > http://lists.centos.org/mailman/listinfo/centos
> >
>
> i uninstall NetworkManager as well, but i would think you have bigger
> problems since it appears you have both the 64bit and 32bit versions
> of software installed?

For shared libraries this is normal. Generally NOT for programs though
-- one or the other, yes (eg 64 bit of this and 32 bit of that).

> _______________________________________________
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>

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

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 11-30-2009, 02:11 PM
Ross Walker
 
Default NetworkManager constantly overwriting /etc/resolve.conf - how to disable?

On Nov 30, 2009, at 7:18 AM, Robert Heller <heller@deepsoft.com> wrote:

At Mon, 30 Nov 2009 03:08:01 -0600 CentOS mailing list <centos@centos.org> wrote:


On Mon, Nov 30, 2009 at 2:27 AM, Rudi Ahlers <rudiahlers@gmail.com> wrote:
On Mon, Nov 30, 2009 at 1:56 AM, Robert Heller <heller@deepsoft.com> wrote:


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 0ff * 1ff * 2ff * 3ff * 4ff * 5ff * 6ff')

Thanx Robert, so it's safe to remove NetworkManager then? I have done
so, and will see if any issues arise. The only files that was removed
is:

Removing:
*NetworkManager * * * * * * * * * * * * * * * * *i386
* * * * * * 1:0.7.0-9.el5 * * * * * * * * * * * * * * *installed
* * * * * * * * * * * 3.3 M
*NetworkManager * * * * * * * * * * * * * * * * *x86_64
* * * * * * 1:0.7.0-9.el5 * * * * * * * * * * * * * * *installed
* * * * * * * * * * * 3.4 M
Removing for dependencies:
*NetworkManager-glib * * * * * * * * * * * * * * i386
* * * * * * 1:0.7.0-9.el5 * * * * * * * * * * * * * * *installed
* * * * * * * * * * * 154 k
*NetworkManager-glib * * * * * * * * * * * * * * x86_64
* * * * * * 1:0.7.0-9.el5 * * * * * * * * * * * * * * *installed
* * * * * * * * * * * 161 k

i uninstall NetworkManager as well, but i would think you have bigger
problems since it appears you have both the 64bit and 32bit versions
of software installed?

For shared libraries this is normal. *Generally NOT for programs though
-- one or the other, yes (eg 64 bit of this and 32 bit of that).
Some apps install 64-bit and 32-bit versions for ABI compatibility and plugins (or IPC). Maybe the OP had a 32-bit gnome app installed?
Firefox is a perfect example of this *(wish there were icons for both the 64-bit and 32-bit versions so one could choose which to launch).
With NetworkManager though one can only run one or the other. I believe the default for all dual arch installs is to run the 64-bit version if installed, otherwise the 32-bit version.
-Ross
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 11:51 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org