Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 Jun 2006 08:51:11 -0400
From:      Chuck Swiger <cswiger@mac.com>
To:        "Thomas T. Veldhouse" <veldy@veldy.net>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: resolv.conf and dhclient
Message-ID:  <448428BF.2080901@mac.com>
In-Reply-To: <44842282.6050409@veldy.net>
References:  <44842282.6050409@veldy.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Thomas T. Veldhouse wrote:
> What is the best approach to keep dhclient from overwriting 
> /etc/resolv.conf every time it gets a new lease on an IP address?

Perhaps:

   chflags schg /etc/resolv.conf

> This has been a frustrating search as Google has turned up next to nothing on 
> the issue other than a hack into a script file which should be 
> overwritten when world is rebuilt.

Changing /etc/dhclient.conf would not be overwritten just because you do a 
buildworld, but you would need to pay attention when using mergemaster.

-- 
-Chuck



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?448428BF.2080901>