[rhelv6-list] /etc/resolv.conf getting replaced?

Collins, Kevin [BEELINE] KCollins at chevron.com
Thu Nov 18 16:12:45 UTC 2010


Thanks - I should have mentioned that I am using completely static
networking information.

 

[root at cpafisxc ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE="eth0"

BOOTPROTO="static"

DNS1="xxx.xxx.xxx.xxx"

DNS2=" xxx.xxx.xxx.xxx "

GATEWAY=" xxx.xxx.xxx.xxx "

HWADDR="00:1C:C4:DD:24:08"

IPADDR=" xxx.xxx.xxx.xxx "

NETMASK="255.255.254.0"

NM_CONTROLLED="yes"

ONBOOT="yes"

 

Thanks,

 

Kevin

From: Glaser, David [mailto:dsglaser at umich.edu] 
Sent: Thursday, November 18, 2010 8:08 AM
To: Collins, Kevin [BEELINE]; rhelv6-list at redhat.com
Subject: RE: /etc/resolv.conf getting replaced?

 

Are you getting nameserver information from DHCP?

 

If you are running DHCP, I'd try using NetworkManager and editing your
connections, changing your type from Automatic (DHCP) to Automatic
(DHCP) addresses only. Then you can set what you want your DNS servers
and search domains to. 

 

Dave

 

 

From: rhelv6-list-bounces at redhat.com
[mailto:rhelv6-list-bounces at redhat.com] On Behalf Of Collins, Kevin
[BEELINE]
Sent: Thursday, November 18, 2010 10:55 AM
To: rhelv6-list at redhat.com
Subject: [rhelv6-list] /etc/resolv.conf getting replaced?

 

I have been playing with RHEL6 for a couple of days now and I have found
that my /etc/resolv.conf is being re-created by NetworkManager on
reboot!

 

I end up with this:

 

# Generated by NetworkManager

nameserver xxx.xxx.xxx.xxx

nameserver xxx.xxx.xxx.xxx

 

Any other items I have added (such as domain and search) are lost...
what gives? Anyone know how I can prevent this?

 

Thanks,

 

Kevin

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/rhelv6-list/attachments/20101118/f17c760d/attachment.htm>


More information about the rhelv6-list mailing list