From owner-freebsd-current@FreeBSD.ORG Thu Jun 16 20:16: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 5ED0F16A420; Thu, 16 Jun 2005 20:16:48 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB4A643D55; Thu, 16 Jun 2005 20:16:47 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id j5GKGk8P015324; Thu, 16 Jun 2005 13:16:46 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j5GKGk6e015323; Thu, 16 Jun 2005 13:16:46 -0700 Date: Thu, 16 Jun 2005 13:16:46 -0700 From: Brooks Davis To: Sam Leffler Message-ID: <20050616201646.GC13900@odin.ac.hmc.edu> References: <200506161312.51857.jhb@FreeBSD.org> <42B1D823.5030108@errno.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7gGkHNMELEOhSGF6" Content-Disposition: inline In-Reply-To: <42B1D823.5030108@errno.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: 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 20:16:48 -0000 --7gGkHNMELEOhSGF6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 16, 2005 at 12:50:59PM -0700, Sam Leffler wrote: > John Baldwin wrote: > >[ Apologies if this has already been brought up, I'm still 1800 messages= =20 > >behind on current@. ] > > > >A feature of both the old and new dhclient(8) is that it would take=20 > >whatever was in the domain-name option returned by the DHCP server and= =20 > >stick it in the 'search' line in /etc/resolv.conf. Thus, if you wanted = to=20 > >have DNS search multiple domains, you could just pass a space separated= =20 > >list of domains to search in domain-name and it would just work. I've= =20 > >made use of this "feature" in several different environments in the past= =20 > >including my current test lab. It's even used in the example=20 > >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=20 > >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=20 > >(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=20 > >(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=20 > >alternative way to achieve the same result (multiple domains in the=20 > >'search' part of /etc/resolv.conf). Note that the old domain-name trick= =20 > >has worked all the way back to at least 4.1 and maybe even back in the 3= .x=20 > >days IIRC. > > >=20 > Known issue being worked on. You're actually violating the spec but I=20 > know that's less important than having a way to do what you want. The RFC is shockingly lacking in this area. It's rather odd that they send a value for domain, but not for search (in resolv.conf). It's not suprising that people ended up abusing this to set search. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --7gGkHNMELEOhSGF6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFCsd4tXY6L6fI4GtQRAvi7AJ9lSMkGQxr+wXWBH9o9oVz9GCBo9gCeKdoT +3qKsLMBXWT/a1HL/veoBDU= =V5Qa -----END PGP SIGNATURE----- --7gGkHNMELEOhSGF6--