[rhelv6-list] resolv.conf being overwritten by NetworkManager
Red Hat Enterprise Linux 6 (Santiago) discussion mailing-list
rhelv6-list at redhat.com
Thu Mar 14 19:15:56 UTC 2013
Hagberg, Keith <Keith.Hagberg at ...> writes:
>
>
> 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: rhelv6-list-bounces at redhat.com
[mailto:rhelv6-list-bounces at redhat.com] On Behalf
Of Musayev, IlyaSent: Tuesday, March 20, 2012 4:41 PMTo: Red Hat Enterprise
Linux 6 (Santiago) discussion mailing-listSubject: Re: [rhelv6-list]
resolv.conf being overwritten by NetworkManager
>
>
> sounds like bug rather than a feature
>
>
>
> From: rhelv6-list-bounces at redhat.com [rhelv6-
list-bounces at redhat.com] On Behalf Of Hagberg,
Keith [Keith.Hagberg at FMR.com]Sent: Tuesday, March 20,
2012 3:44 PMTo: Red Hat Enterprise Linux 6 (Santiago) discussion mailing-
listSubject: 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: rhelv6-list-bounces at redhat.com
[mailto:rhelv6-list-bounces at redhat.com] On Behalf
Of Hagberg, KeithSent: Monday, March 19, 2012 10:26 AMTo: Red Hat Enterprise
Linux 6 (Santiago) discussion mailing-listSubject: 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: rhelv6-list-bounces <at> redhat.com [mailto:rhelv6-list-bounces-
H+wXaHxf7aLQT0dZR+AlfA at public.gmane.org] On Behalf Of Brian Long (brilong)
Sent: Friday, March 16, 2012 4:07 PMTo: Red Hat Enterprise Linux 6 (Santiago)
discussion mailing-listSubject: 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
listrhelv6-list <at> redhat.comhttps://www.redhat.com/mailman/listinfo/rhelv6-
list
>
>
>
>
>
>
>
This is happening on one of my RHEL6 boxes. I am running RHEL6.2. I have
NetworkManager disabled with chkconfig off and NM_CONTROLLED=no in the ifcfg-
eth0 script. The box has a static IP, no dhcp. I've set PEERNDS=no without
any sucess. Writing DNS directives for the resolv.conf in the ifcfg-eth0
script has mixed results and results in an unusable resolv.conf.
Removing the resolv.conf.save file seems to be the only workable solution.
Setting the parameters in the ifcfg-eth0 script, NM_CONTROLLED=no and
PEERDNS=no, don't seem to work as advertized.
Is this still a "feature"
Regards,
Cathy Smith
---
Cathy L. Smith
IT Engineer
Pacific Northwest National Laboratory
Operated by Battelle for the
U.S. Department of Energy
Phone: 509.375.2687
Fax: 509.375.2330
Email: cathy.smith at pnnl.gov
More information about the rhelv6-list
mailing list