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

Robert Heller heller at deepsoft.com
Thu Oct 8 23:04:13 UTC 2009

At Thu, 8 Oct 2009 07:41:33 -1000 CentOS mailing list <centos at centos.org> 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.
> I'd like to figure out what software is rewriting this file and why.
> man 5 resolv.conf  and man resolver are unhelpful in this case. rpm
> reports /etc/resolv.conf is not owned by any package.
> At this point, I am as (or more) interested in pointers regarding how
> to find the answer as I am in the actual answer. Please teach me to
> fish.

Is NetworkManager running?  If so, stop it:

sudo /sbin/service NetworkManager stop

and disable it:

sudo /sbin/chkconfig NetworkManager off

> mahalo,
> Dave
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos

Robert Heller             -- 978-544-6933
Deepwoods Software        -- Download the Model Railroad System
http://www.deepsoft.com/  -- Binaries for Linux and MS-Windows
heller at deepsoft.com       -- http://www.deepsoft.com/ModelRailroadSystem/

More information about the CentOS mailing list