Date: Mon, 05 Jun 2006 08:33:40 -0500 From: "Thomas T. Veldhouse" <veldy@veldy.net> To: freebsd@orchid.homeunix.org Cc: freebsd-stable@freebsd.org Subject: Re: resolv.conf and dhclient Message-ID: <448432B4.3000305@veldy.net> In-Reply-To: <448428D8.5030501@orchid.homeunix.org> References: <44842282.6050409@veldy.net> <448428D8.5030501@orchid.homeunix.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Karol Kwiatkowski wrote:
> On 05/06/2006 14:24, 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? 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.
>>
>
> If I'm getting your question right - isn't 'supersede' option in
> dhclient.conf(5) what you want? Something like:
>
> interface "int0" {
> supersede domain-name "example.com"
> supersede domain-name-servers "127.0.0.1"
> }
>
>
Indeed ... this seems to be what I am looking for.
Thanks!
Tom Veldhouse
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?448432B4.3000305>
