dhclient trashes my resolv.conf
David O'Brien
obrien at freebsd.org
Wed Oct 27 14:42:36 PDT 2004
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)
More information about the freebsd-current
mailing list