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: [email protected] [[email protected]] On Behalf
Of Hagberg, Keith [[email protected]]
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: [email protected] [mailto:[email protected]] 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" <[email protected]<mailto:[email protected]>>
To: Red Hat Enterprise Linux 6 (Santiago) discussion mailing-list
<[email protected]<mailto:[email protected]>>
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
[email protected]<mailto:[email protected]>
https://www.redhat.com/mailman/listinfo/rhelv6-list
_______________________________________________
rhelv6-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv6-list