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

Spiro Harvey spiro at knossos.net.nz
Thu Oct 8 20:49:55 UTC 2009


> about dhcpclient. The only package I have installed that shows up in

It's called "dhclient", so searching for "dhcp" won't give you a hit on
that.

chkconfig for dhclient too, and see what that results.

Also, look at /etc/sysconfig/network-scripts/ifcfg-eth0.

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. :)

In all likelihood, you have a static IP assigned in your ifcfg-eth0,
and the resolv.conf is being over-written by dhclient.

-- 
Spiro Harvey                  Knossos Networks Ltd
021-295-1923                  www.knossos.net.nz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.centos.org/pipermail/centos/attachments/20091009/7ada5cb5/attachment.bin 


More information about the CentOS mailing list