From owner-freebsd-stable@FreeBSD.ORG Fri Jul 11 15:17:20 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BB4301065741 for ; Fri, 11 Jul 2008 15:17:20 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (lor.one-eyed-alien.net [69.66.77.232]) by mx1.freebsd.org (Postfix) with ESMTP id E22108FC21 for ; Fri, 11 Jul 2008 15:17:19 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.2/8.14.2) with ESMTP id m6BEtpw2024464; Fri, 11 Jul 2008 09:55:51 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.2/8.14.2/Submit) id m6BEtojt024463; Fri, 11 Jul 2008 09:55:50 -0500 (CDT) (envelope-from brooks) Date: Fri, 11 Jul 2008 09:55:50 -0500 From: Brooks Davis To: Willy Offermans Message-ID: <20080711145550.GB12966@lor.one-eyed-alien.net> References: <20080710085234.GD38495@hugo10.ka.punkt.de> <20080710165741.GA12966@lor.one-eyed-alien.net> <20080711063249.GB4382@wiz.vpn.offrom.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Y7xTucakfITjPcLV" Content-Disposition: inline In-Reply-To: <20080711063249.GB4382@wiz.vpn.offrom.nl> User-Agent: Mutt/1.5.17 (2007-11-01) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (lor.one-eyed-alien.net [127.0.0.1]); Fri, 11 Jul 2008 09:55:51 -0500 (CDT) Cc: freebsd-stable@freebsd.org Subject: Re: dhclient and resolv.conf.sav X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jul 2008 15:17:20 -0000 --Y7xTucakfITjPcLV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 11, 2008 at 08:32:49AM +0200, Willy Offermans wrote: > Dear FreeBSD friends, >=20 > Is this behavior, related to dhclient and /etc/resolv.conf.sav, FreeBSD > specific or is it a general feature of dhclient? I might have a use for > it on my debian linux laptop. We picked it up from openbsd when we took their client (which is derived fr= om an early ISC client). If it's not in the stock isc dhclient-script adding = it would be trivial. -- Brooks > On Thu, Jul 10, 2008 at 11:57:41AM -0500, Brooks Davis wrote: > > On Thu, Jul 10, 2008 at 10:52:35AM +0200, Patrick M. Hausen wrote: > > > Hello, > > >=20 > > > we have been bitten by something that obvoiusly > > > is a feature, not a bug, but I do not quite understand > > > the intentions and reasoning behind it. > > >=20 > > > I have a host with manual interface and resolver configuration > > > and an additional interface that should get it's IP address > > > via DHCP. But only it's IP address and netmask, nothing else. > > >=20 > > > The DHCP server used hands out only IP addresses/netmasks, > > > no domain-name-servers, domain-name, etc. configured. > > >=20 > > > Yet, if there happens to exist a /etc/resolv.conf.sav file, > > > every renewal of the lease by dhclient overwrites the contents > > > of /etc/resolv.conf with those of resolv.conf.sav. > > >=20 > > > In my particular case the .sav file contained an internal > > > nameserver that was used when I initially set up the host > > > in the lab. This entry was of no use to the server after > > > it had been deployed in our datacenter. > > >=20 > > > Can anyone shed some light on the intended mechanism? > > > Studying the dhclient-script was not too helpful, either. > >=20 > > I suspect the theory is that you can have a static resolv.conf around > > that gets installed when there isn't anything else to use. In practice, > > I think it mostly causes problems. I'm somewhat tempted to remove the > > creation of the file and add something like a resolv.conf.default in > > it's place. > >=20 > > -- Brooks >=20 >=20 >=20 > --=20 > Met vriendelijke groeten, > With kind regards, > Mit freundlichen Gruessen, > De jrus wah, >=20 > Willy >=20 > ************************************* > Dr. W.K. Offermans > CAT Postdoctoral Fellow > CAT Catalytic Center > Institut f?r Technische und Makromolekulare Chemie > RWTH Aachen > Worringerweg 1, Raum 38C-150 > D-52074 Aachen, Germany > Phone: +49 241 80 28592 > Home: +31 45 544 49 44 > Mobile: +31 653 27 16 23 > e-mail: Willy@Offermans.Rompen.nl > e-mail: Willy.Offermans@CatalyticCenter.RWTH-Aachen.de >=20 > Powered by .... >=20 > (__) > \\\'',) > \/ \ ^ > .\._/_) >=20 > www.FreeBSD.org >=20 --Y7xTucakfITjPcLV Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iD8DBQFId3R1XY6L6fI4GtQRAus2AJ9JbyvsPfGy0qpz+s6waIupKsQT0gCfXevB FO0+owN95/Ek8/hjhNSZyDw= =ceyf -----END PGP SIGNATURE----- --Y7xTucakfITjPcLV--