[rhelv6-list] resolv.conf being overwritten by NetworkManager
Musayev, Ilya
imusayev at webmd.net
Fri Mar 16 19:34:10 UTC 2012
Uncertain how the change came about, i can only add a suggestion, instead of changing each ifcfg-ethX file, you can do:
Place following code in /etc/dhclient-enter-hooks file:
# vi /etc/dhclient-enter-hooks
Append code:
make_resolv_conf(){
:
}
Or slightly brutal approach "chattr +i /etc/resolv.conf" - this needs to be use as a last resort
Good luck
-ilya
________________________________________
From: rhelv6-list-bounces at redhat.com [rhelv6-list-bounces at redhat.com] On Behalf Of Hagberg, Keith [Keith.Hagberg at FMR.com]
Sent: Friday, March 16, 2012 12:23 PM
To: Red Hat Enterprise Linux 6 (Santiago) discussion mailing-list
Subject: Re: [rhelv6-list] resolv.conf being overwritten by NetworkManager
But how can network manager overwrite it if it is not installed?
From: rhelv6-list-bounces at redhat.com [mailto:rhelv6-list-bounces at redhat.com] On Behalf Of Joe Wulf
Sent: Friday, March 16, 2012 11:57 AM
To: Red Hat Enterprise Linux 6 (Santiago) discussion mailing-list
Subject: Re: [rhelv6-list] resolv.conf being overwritten by NetworkManager
To keep NetworkManager from overwriting your /etc/resolv.conf file, add the entry "PEERDNS=no" to your ifgcfg-eth* files. Here is the link to the doc.....
http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/s1-networkscripts-interfaces.html
I know your issue is slightly different
R,
-Joe Wulf
________________________________
From: "Hagberg, Keith" <Keith.Hagberg at FMR.com<mailto:Keith.Hagberg at FMR.com>>
To: Red Hat Enterprise Linux 6 (Santiago) discussion mailing-list <rhelv6-list at redhat.com<mailto:rhelv6-list at redhat.com>>
Sent: Friday, March 16, 2012 10:06 AM
Subject: [rhelv6-list] resolv.conf being overwritten by NetworkManager
Have a problem where the other day my /etc/resolv.conf file was overwritten and the file said it had been overwritten by NetworkManager. NetworkManager is not installed. My server has 8 ethernet ports but I am only using 1 with a static address. Not sure how this is happening.
Keith
_______________________________________________
rhelv6-list mailing list
rhelv6-list at redhat.com<mailto:rhelv6-list at redhat.com>
https://www.redhat.com/mailman/listinfo/rhelv6-list
More information about the rhelv6-list
mailing list