[CentOS] resolv.conf rewritten every reboot. How to figure out who and why?
tdbtdb+centos at gmail.com
Thu Oct 8 21:19:18 UTC 2009
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
> 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
> It's possible to have addresses "statically" assigned via DHCP based on
> MAC addresses. If resolv.conf is getting populated by dhclient, then
> I'm guessing the odds of you having a dhcp server on your network is
> good. :)
You guessed right. But the question remains, what software is writing the file?
> In all likelihood, you have a static IP assigned in your ifcfg-eth0,
> and the resolv.conf is being over-written by dhclient.
What is invoking dhclient, how do I find it?
rpm -qR dhclient
initscripts >= 6.75
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(VersionedDependencies) <= 3.0.3-1
More information about the CentOS