This issue is specifically caused by /etc/sysconfig/network-scripts/ifdown-post.
This is the code
if [ "$PEERDNS" != "no" -o -n "$RESOLV_MODS" -a "$RESOLV_MODS" != "no" ]; then
if [ -f /etc/resolv.conf.save ]; then
change_resolv_conf /etc/resolv.conf.save
rm -f /etc/resolv.conf.save
fi
if [ "${DEVICETYPE}" = "ppp" -o "${DEVICETYPE}" = "ippp" ]; then
if [ -f /etc/ppp/peers/$DEVICE ] ; then
rm -f /etc/ppp/peers/$DEVICE
fi
fi
fi
I guess if I specifically set PEERDNS=no in my ifcfg file it would not happen.
We don't specify PEERDNS.
Keith
From: [email protected] [mailto:[email protected]] On
Behalf Of Musayev, Ilya
Sent: Tuesday, March 20, 2012 4:41 PM
To: Red Hat Enterprise Linux 6 (Santiago) discussion mailing-list
Subject: Re: [rhelv6-list] resolv.conf being overwritten by NetworkManager
sounds like bug rather than a feature
________________________________
From: [email protected]<mailto:[email protected]>
[[email protected]] On Behalf Of Hagberg, Keith
[[email protected]]
Sent: Tuesday, March 20, 2012 3:44 PM
To: Red Hat Enterprise Linux 6 (Santiago) discussion mailing-list
Subject: Re: [rhelv6-list] resolv.conf being overwritten by NetworkManager
Problem has been identified.
If you have a /etc/resolv.conf.save when you do service network restart it
takes the .save file and replaces /etc/resolv.conf with it.
From: [email protected]<mailto:[email protected]>
[mailto:[email protected]]<mailto:[mailto:[email protected]]>
On Behalf Of Hagberg, Keith
Sent: Monday, March 19, 2012 10:26 AM
To: Red Hat Enterprise Linux 6 (Santiago) discussion mailing-list
Subject: Re: [rhelv6-list] resolv.conf being overwritten by NetworkManager
We have an audit happening after the build which I confirmed my resolv.conf was
correct after my build
From: [email protected]<mailto:[email protected]>
[mailto:[email protected]]<mailto:[mailto:[email protected]]>
On Behalf Of Brian Long (brilong)
Sent: Friday, March 16, 2012 4:07 PM
To: Red Hat Enterprise Linux 6 (Santiago) discussion mailing-list
Subject: Re: [rhelv6-list] resolv.conf being overwritten by NetworkManager
Are you certain the comment in /etc/resolv.conf about NetworkManager was not
the one written by Anaconda during installation? Even when NetworkManager is
not installed on the local disk, this comment will exist because Anaconda has
it's own version of NetworkManager.
/Brian/
--
Brian Long | |
Corporate Security Programs Org . | | | . | | | .
' '
C I S C O
On Mar 16, 2012, at 10:06 AM, Hagberg, Keith wrote:
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