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

Meenoo Shivdasani

meenoo at gmail.com
Thu Oct 8 17:51:59 UTC 2009


On Thu, Oct 8, 2009 at 1:41 PM, Dave <tdbtdb+centos at gmail.com> wrote:
> My machine has a static IP, with dhcp and IPv6 disabled. Every time I
> reboot, some process rewrites /etc/resolv.conf, including a comment
> about dhcpclient. The only package I have installed that shows up in
> "rpm -qa|grep -i dhcp" is dhcpv6-client-1.0.10-16.el5, and nothing in
> there is named dhcpclient.

Looks like the dhclient script is still being called.

One option would be to comment out the make_resolv_conf()  function in
/sbin/dhclient-script.

M



More information about the CentOS mailing list