From owner-freebsd-current@FreeBSD.ORG Fri Jun 17 14:43:33 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 78F3816A41C; Fri, 17 Jun 2005 14:43:33 +0000 (GMT) (envelope-from spoerlein@informatik.uni-wuerzburg.de) Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id E650D43D48; Fri, 17 Jun 2005 14:43:30 +0000 (GMT) (envelope-from spoerlein@informatik.uni-wuerzburg.de) Received: from wrzx30.rz.uni-wuerzburg.de (wrzx30.rz.uni-wuerzburg.de [132.187.1.30]) by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP id 06340DA5A8; Fri, 17 Jun 2005 16:43:30 +0200 (CEST) Received: from virusscan (localhost [127.0.0.1]) by wrzx30.rz.uni-wuerzburg.de (Postfix) with ESMTP id D759C99BFA; Fri, 17 Jun 2005 16:43:29 +0200 (CEST) Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by wrzx30.rz.uni-wuerzburg.de (Postfix) with ESMTP id BFDEC99B4E; Fri, 17 Jun 2005 16:43:29 +0200 (CEST) Received: from frodo.galgenberg.net (wwsx14.win-screen.uni-wuerzburg.de [132.187.253.14]) by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP id 9DAA7DA5A8; Fri, 17 Jun 2005 16:43:29 +0200 (CEST) Received: from coyote.q.local (gb-21-237.galgenberg.net [172.16.21.237]) by frodo.galgenberg.net (8.13.1/8.13.1) with ESMTP id j5HEhTLV027349; Fri, 17 Jun 2005 16:43:29 +0200 (CEST) (envelope-from spoerlein@informatik.uni-wuerzburg.de) Received: from igor.q.local (igor.q.local [192.168.0.147]) by coyote.q.local (8.13.3/8.13.1) with ESMTP id j5HEhSR5032179; Fri, 17 Jun 2005 16:43:29 +0200 (CEST) (envelope-from spoerlein@informatik.uni-wuerzburg.de) Received: from igor.q.local (localhost.q.local [127.0.0.1]) by igor.q.local (8.13.3/8.13.1) with ESMTP id j5HEhSTm085730; Fri, 17 Jun 2005 16:43:28 +0200 (CEST) (envelope-from spoerlein@informatik.uni-wuerzburg.de) Received: (from q@localhost) by igor.q.local (8.13.3/8.13.1/Submit) id j5HEhSiw085729; Fri, 17 Jun 2005 16:43:28 +0200 (CEST) (envelope-from spoerlein@informatik.uni-wuerzburg.de) Date: Fri, 17 Jun 2005 16:43:27 +0200 From: Ulrich Spoerlein To: John Baldwin Message-ID: <20050617144327.GA943@galgenberg.net> References: <200506161312.51857.jhb@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Qxx1br4bt0+wmkIi" Content-Disposition: inline In-Reply-To: <200506161312.51857.jhb@FreeBSD.org> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new (Rechenzentrum Universitaet Wuerzburg) 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 14:43:33 -0000 --Qxx1br4bt0+wmkIi Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 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; > ... > } 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. Ulrich Sp=F6rlein --=20 PGP Key ID: F0DB9F44 Encrypted mail welcome! Fingerprint: F1CE D062 0CA9 ADE3 349B 2FE8 980A C6B5 F0DB 9F44 Ok, which part of "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn." didn't you understand? --Qxx1br4bt0+wmkIi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCsuGPmArGtfDbn0QRAhFBAKCtP9a/Su7BO9leZ3lGoCxIoXcX7wCeKami sBkzPbeMC8a3GysSMJlRw10= =dnEo -----END PGP SIGNATURE----- --Qxx1br4bt0+wmkIi--