From owner-freebsd-current@FreeBSD.ORG Thu Jun 16 19:46:48 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 5BC4616A41C; Thu, 16 Jun 2005 19:46:48 +0000 (GMT) (envelope-from sam@errno.com) Received: from ebb.errno.com (ebb.errno.com [66.127.85.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id 136F643D1F; Thu, 16 Jun 2005 19:46:47 +0000 (GMT) (envelope-from sam@errno.com) Received: from [66.127.85.91] ([66.127.85.91]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.6) with ESMTP id j5GJkkms016051 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 16 Jun 2005 12:46:47 -0700 (PDT) (envelope-from sam@errno.com) Message-ID: <42B1D823.5030108@errno.com> Date: Thu, 16 Jun 2005 12:50:59 -0700 From: Sam Leffler User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050327) X-Accept-Language: en-us, en MIME-Version: 1.0 To: John Baldwin References: <200506161312.51857.jhb@FreeBSD.org> In-Reply-To: <200506161312.51857.jhb@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Thu, 16 Jun 2005 19:46:48 -0000 John Baldwin wrote: > [ Apologies if this has already been brought up, I'm still 1800 messages > behind on current@. ] > > 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; > ... > } > > The new dhclient is barfing on my domain-name setting now because it doesn't > look like a domain name: > > Setting hostname: deimos.baldwin.cx. > fxp0: link state changed to UP > DHCPDISCOVER on fxp0 to 255.255.255.255 port 67 interval 8 > DHCPOFFER from 192.168.0.1 > Bogus Host Name option 15: baldwin.cx freebsd.org atl.weather.com (baldwin.cx > freebsd.org atl.weather.com) > Invalid lease option - ignoring offer > packet_to_lease failed. > DHCPDISCOVER on fxp0 to 255.255.255.255 port 67 interval 10 > DHCPOFFER from 192.168.0.1 > Bogus Host Name option 15: baldwin.cx freebsd.org atl.weather.com (baldwin.cx > freebsd.org atl.weather.com) > Invalid lease option - ignoring offer > packet_to_lease failed. > ... > > I'd very much like the old behavior restored if possible, or an alternative > way to achieve the same result (multiple domains in the 'search' part > of /etc/resolv.conf). Note that the old domain-name trick has worked all the > way back to at least 4.1 and maybe even back in the 3.x days IIRC. > Known issue being worked on. You're actually violating the spec but I know that's less important than having a way to do what you want. Sam