Re: dhclient trashes my resolv.conf

From: David O'Brien <obrien_at_freebsd.org>
Date: Wed, 27 Oct 2004 14:42:24 -0700
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_at_FreeBSD.org)
Received on Wed Oct 27 2004 - 19:42:36 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:19 UTC