From owner-freebsd-stable@FreeBSD.ORG Thu Jul 10 08:52:38 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 923941065674 for ; Thu, 10 Jul 2008 08:52:38 +0000 (UTC) (envelope-from hausen@punkt.de) Received: from kagate.punkt.de (kagate.punkt.de [217.29.33.131]) by mx1.freebsd.org (Postfix) with ESMTP id C5D048FC25 for ; Thu, 10 Jul 2008 08:52:37 +0000 (UTC) (envelope-from hausen@punkt.de) Received: from hugo10.ka.punkt.de (hugo10.ka.punkt.de [10.0.0.110]) by kagate1.punkt.de with ESMTP id m6A8qZqd042038 for ; Thu, 10 Jul 2008 10:52:36 +0200 (CEST) Received: from hugo10.ka.punkt.de (localhost [127.0.0.1]) by hugo10.ka.punkt.de (8.14.2/8.14.2) with ESMTP id m6A8qZ2j041592 for ; Thu, 10 Jul 2008 10:52:35 +0200 (CEST) (envelope-from ry93@hugo10.ka.punkt.de) Received: (from ry93@localhost) by hugo10.ka.punkt.de (8.14.2/8.14.2/Submit) id m6A8qZdW041591 for freebsd-stable@freebsd.org; Thu, 10 Jul 2008 10:52:35 +0200 (CEST) (envelope-from ry93) Date: Thu, 10 Jul 2008 10:52:35 +0200 From: "Patrick M. Hausen" To: freebsd-stable@freebsd.org Message-ID: <20080710085234.GD38495@hugo10.ka.punkt.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.17 (2007-11-01) Subject: 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: Thu, 10 Jul 2008 08:52:38 -0000 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. Thanks, Patrick -- punkt.de GmbH * Kaiserallee 13a * 76133 Karlsruhe Tel. 0721 9109 0 * Fax 0721 9109 100 info@punkt.de http://www.punkt.de Gf: Jürgen Egeling AG Mannheim 108285