From owner-freebsd-stable@FreeBSD.ORG Fri Jul 11 06:44:14 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 3D14A1065685; Fri, 11 Jul 2008 06:44:14 +0000 (UTC) (envelope-from willy@Offermans.Rompen.nl) Received: from hpsmtp-eml13.kpnxchange.com (hpsmtp-eml13.kpnxchange.com [213.75.38.113]) by mx1.freebsd.org (Postfix) with ESMTP id CAC3E8FC2A; Fri, 11 Jul 2008 06:44:13 +0000 (UTC) (envelope-from willy@Offermans.Rompen.nl) Received: from cpsmtp-eml108.kpnxchange.com ([213.75.84.108]) by hpsmtp-eml13.kpnxchange.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 11 Jul 2008 08:32:09 +0200 Received: from koko.offrom.nl ([86.82.183.148]) by cpsmtp-eml108.kpnxchange.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 11 Jul 2008 08:32:08 +0200 Received: from wiz.vpn.offrom.nl (Debian-exim@wiz.vpn.offrom.nl [10.168.0.18]) by koko.offrom.nl (8.13.8/8.13.8) with ESMTP id m6B6W5Fu015223; Fri, 11 Jul 2008 08:32:06 +0200 (CEST) (envelope-from willy@wiz.vpn.offrom.nl) Received: from willy by wiz.vpn.offrom.nl with local (Exim 4.63) (envelope-from ) id 1KHCBW-0001If-2Z; Fri, 11 Jul 2008 08:32:50 +0200 Date: Fri, 11 Jul 2008 08:32:49 +0200 From: Willy Offermans To: Brooks Davis Message-ID: <20080711063249.GB4382@wiz.vpn.offrom.nl> References: <20080710085234.GD38495@hugo10.ka.punkt.de> <20080710165741.GA12966@lor.one-eyed-alien.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20080710165741.GA12966@lor.one-eyed-alien.net> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: ClamAV 0.92.1/7688/Fri Jul 11 06:24:06 2008 on koko.offrom.nl X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on koko.offrom.nl X-OriginalArrivalTime: 11 Jul 2008 06:32:08.0973 (UTC) FILETIME=[D8231BD0:01C8E31F] 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 Reply-To: Willy@Offermans.Rompen.nl 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 06:44:14 -0000 Dear FreeBSD friends, 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. 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, > > > > 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. > > > > 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. > > > > The DHCP server used hands out only IP addresses/netmasks, > > no domain-name-servers, domain-name, etc. configured. > > > > 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. > > > > 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. > > > > Can anyone shed some light on the intended mechanism? > > Studying the dhclient-script was not too helpful, either. > > 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. > > -- Brooks -- Met vriendelijke groeten, With kind regards, Mit freundlichen Gruessen, De jrus wah, Willy ************************************* 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 Powered by .... (__) \\\'',) \/ \ ^ .\._/_) www.FreeBSD.org