Date: Wed, 29 Jun 2005 22:33:56 -0700 From: Brooks Davis <brooks@one-eyed-alien.net> To: John Baldwin <jhb@FreeBSD.org> Cc: brooks@FreeBSD.org, current@FreeBSD.org Subject: Re: New dhclient broke multiple domains in domain-name Message-ID: <20050630053356.GA15200@odin.ac.hmc.edu> In-Reply-To: <200506161312.51857.jhb@FreeBSD.org> References: <200506161312.51857.jhb@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--dDRMvlgZJXvWKvBx
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Thu, Jun 16, 2005 at 01:12:51PM -0400, John Baldwin wrote:
> [ Apologies if this has already been brought up, I'm still 1800 messages=
=20
> behind on current@. ]
>=20
> A feature of both the old and new dhclient(8) is that it would take whate=
ver=20
> was in the domain-name option returned by the DHCP server and stick it in=
the=20
> 'search' line in /etc/resolv.conf. Thus, if you wanted to have DNS searc=
h=20
> multiple domains, you could just pass a space separated list of domains t=
o=20
> search in domain-name and it would just work. I've made use of this=20
> "feature" in several different environments in the past including my curr=
ent=20
> test lab. It's even used in the example dhclient.conf in dhclient.conf(5=
):
>=20
> 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;
> ...
> }
>=20
> The new dhclient is barfing on my domain-name setting now because it does=
n't=20
> look like a domain name:
>=20
> 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 (baldwi=
n.cx=20
> 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 (baldwi=
n.cx=20
> freebsd.org atl.weather.com)
> Invalid lease option - ignoring offer
> packet_to_lease failed.
> ...
>=20
> I'd very much like the old behavior restored if possible, or an alternati=
ve=20
> way to achieve the same result (multiple domains in the 'search' part=20
> of /etc/resolv.conf). Note that the old domain-name trick has worked all=
the=20
> way back to at least 4.1 and maybe even back in the 3.x days IIRC.
I've disabled validation of this field which should work around this
issue for now.
-- 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
--dDRMvlgZJXvWKvBx
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQFCw4RDXY6L6fI4GtQRAlS6AJ4oZ0JUN9zA+7H6QXSi4Zb3MauzvACgr0Gj
uw2YmGZZdAWNMMK+QMh1POs=
=8yeP
-----END PGP SIGNATURE-----
--dDRMvlgZJXvWKvBx--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050630053356.GA15200>
