[CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

Craig White craigwhite at azapple.com
Thu Oct 8 22:44:52 UTC 2009


On Thu, 2009-10-08 at 11:19 -1000, Dave wrote:
> On Thu, Oct 8, 2009 at 9:49 AM, Spiro Harvey <spiro at knossos.net.nz> wrote:
> > chkconfig for dhclient too, and see what that results.
> 
> 
> [root@ ~]# chkconfig --list|grep  -e dh -e clie
> [root@ ~]#
> 
> >
> > Also, look at /etc/sysconfig/network-scripts/ifcfg-eth0.
> 
> 
> [root at lee1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
> # Broadcom Corporation NetXtreme BCM5751 Gigabit Ethernet PCI Express
> DEVICE=eth0
> BOOTPROTO=none
> HWADDR=00:18:8b:0f:ad:c2
> IPADDR=1[snip]0
> ONBOOT=yes
> DHCP_HOSTNAME=[snip]
> DNS1=1[snip]0
> DNS2=1[snip].2
> NM_CONTROLLED=no
> SEARCH=[snip]
> NETMASK=255.255.255.0
> DNS3=1[snip]0
> GATEWAY=1[snip]0.1
> TYPE=Ethernet
> USERCTL=no
> PEERDNS=yes
- ^^^^^^^^^^^
change to PEERDNS=no

Craig


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the CentOS mailing list