From owner-freebsd-current@FreeBSD.ORG Thu Oct 28 15:47:24 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 2897416A4D0 for ; Thu, 28 Oct 2004 15:47:24 +0000 (GMT) Received: from avocado.salatschuessel.net (avocado.salatschuessel.net [80.86.187.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5526F43D45 for ; Thu, 28 Oct 2004 15:47:23 +0000 (GMT) (envelope-from lehmann@ans-netz.de) Received: (qmail 33685 invoked from network); 28 Oct 2004 15:46:45 -0000 Received: from unknown (HELO kartoffel.salatschuessel.net) (80.86.187.43) by avocado.salatschuessel.net with SMTP; 28 Oct 2004 15:46:45 -0000 Date: Thu, 28 Oct 2004 17:47:51 +0200 From: Oliver Lehmann To: mbr@freebsd.org Message-Id: <20041028174751.37d14505.lehmann@ans-netz.de> In-Reply-To: <20041028002251.73eae308.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> <20041027214224.GA60882@dragon.nuxi.com> <20041028002251.73eae308.lehmann@ans-netz.de> X-Mailer: Sylpheed version 0.9.99 (GTK+ 1.2.10; i386-portbld-freebsd4.10) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org Subject: Re: dhclient trashes my resolv.conf X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Oct 2004 15:47:24 -0000 Oliver Lehmann wrote: > I've tried supersede domain-name-servers ""; in /etc/dhclient.conf, But > that seems to have no effect. I can't see any other way to prevent > dhclient from touching my resolv.conf in that man page. Maybe you can > point me? > > man 8 dhclient-script says > > HOOKS > When it starts, the client script first defines a shell > function, make_resolv_conf , which is later used to create the > /etc/resolv.conf file. To override the default behaviour, > redefine this function in the enter hook script. > Martin, do you think, it is a good solution to overwrite the function definition to prevent overwriting your resolv.conf? Wouldn't be a rc.conf parameter easier for beginners to "get", and more stringent to the whole system of configuration? What do others think? -- Oliver Lehmann http://www.pofo.de/ http://wishlist.ans-netz.de/