From owner-freebsd-current@FreeBSD.ORG Fri Jun 17 15:42:03 2005 Return-Path: X-Original-To: current@FreeBSD.org 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 6187916A432; Fri, 17 Jun 2005 15:42:03 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from mv.twc.weather.com (mv.twc.weather.com [65.212.71.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0BB0C43D49; Fri, 17 Jun 2005 15:42:02 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from [10.50.41.231] (Not Verified[216.133.140.1]) by mv.twc.weather.com with NetIQ MailMarshal (v6, 0, 3, 8) id ; Fri, 17 Jun 2005 11:55:26 -0400 From: John Baldwin To: Ulrich Spoerlein Date: Fri, 17 Jun 2005 11:40:18 -0400 User-Agent: KMail/1.8 References: <200506161312.51857.jhb@FreeBSD.org> <20050617144327.GA943@galgenberg.net> In-Reply-To: <20050617144327.GA943@galgenberg.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200506171140.19233.jhb@FreeBSD.org> Cc: brooks@FreeBSD.org, current@FreeBSD.org Subject: Re: New dhclient broke multiple domains in domain-name X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 17 Jun 2005 15:42:03 -0000 On Friday 17 June 2005 10:43 am, Ulrich Spoerlein wrote: > On Thu, 16.06.2005 at 13:12:51 -0400, John Baldwin wrote: > > A feature of both the old and new dhclient(8) is that it would take > > whatever was in the domain-name option returned by the DHCP server and > > stick it in the 'search' line in /etc/resolv.conf. Thus, if you wanted > > to have DNS search multiple domains, you could just pass a space > > separated list of domains to search in domain-name and it would just > > work. I've made use of this "feature" in several different environments > > in the past including my current test lab. It's even used in the example > > dhclient.conf in dhclient.conf(5): > > > > interface "ep0" { > > send host-name "andare.fugue.com"; > > send dhcp-client-identifier 1:0:a0:24:ab:fb:9c; > > send dhcp-lease-time 3600; > > supersede domain-name "fugue.com rc.vix.com home.vix.com"; > > prepend domain-name-servers 127.0.0.1; > > ... > > } > > Interesting. > > I'm overwriting make_resolv_conf() in /etc/dhclient-enter-hooks to > achieve the same result on 5-STABLE. If dhclient-enter-hooks is still > supported, you could work around the issue. It just worked out of the box for me with the old dhclient. The problem is that dhclient throws the entire lease out when it sees it as well. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org