Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Oct 2004 14:42:24 -0700
From:      "David O'Brien" <obrien@freebsd.org>
To:        Oliver Lehmann <lehmann@ans-netz.de>
Cc:        mbr@freebsd.org
Subject:   Re: dhclient trashes my resolv.conf
Message-ID:  <20041027214224.GA60882@dragon.nuxi.com>
In-Reply-To: <20041027233309.122e4207.lehmann@ans-netz.de>
References:  <20041027224512.2e3b2ae8.lehmann@ans-netz.de> <20041027204852.GY95878@horsey.gshapiro.net> <20041027230039.7a5d0150.lehmann@ans-netz.de> <20041027210303.GZ95878@horsey.gshapiro.net> <20041027233309.122e4207.lehmann@ans-netz.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Oct 27, 2004 at 11:33:09PM +0200, Oliver Lehmann wrote:
> I think sth. like that in /sbin/dhclient-script would be nice (if there is
> no other way to disable - oh yeah, there is chflags schg /etc/resolv.conf)
> 
> . /etc/rc.subr
> load_rc_config dhclient
> 
> make_resolv_conf() {
>   case "$dhclient_keep_resolv_conf" in
>     [Yy][Ee][Ss])
>                    ;;
>     *)
..
> And sth. like dhclient_keep_resolv_conf="NO" in defaults/rc.conf

Why don't you just 'man 5 dhclient.conf' and do things right??

-- 
-- David  (obrien@FreeBSD.org)



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