From owner-freebsd-current@FreeBSD.ORG Wed Oct 27 21:42:36 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4505816A4CE; Wed, 27 Oct 2004 21:42:36 +0000 (GMT) Received: from dragon.nuxi.com (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2130143D1D; Wed, 27 Oct 2004 21:42:36 +0000 (GMT) (envelope-from obrien@NUXI.com) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.13.1/8.13.1) with ESMTP id i9RLgPb1060983; Wed, 27 Oct 2004 14:42:26 -0700 (PDT) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.13.1/8.13.1/Submit) id i9RLgPjR060981; Wed, 27 Oct 2004 14:42:25 -0700 (PDT) (envelope-from obrien) Date: Wed, 27 Oct 2004 14:42:24 -0700 From: "David O'Brien" To: Oliver Lehmann Message-ID: <20041027214224.GA60882@dragon.nuxi.com> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041027233309.122e4207.lehmann@ans-netz.de> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 6.0-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 cc: freebsd-current@freebsd.org cc: mbr@freebsd.org Subject: Re: dhclient trashes my resolv.conf X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-current@freebsd.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Oct 2004 21:42:36 -0000 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)