From owner-svn-src-head@FreeBSD.ORG Tue Aug 21 02:58:08 2012 Return-Path: Delivered-To: svn-src-head@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 22A5A106566B; Tue, 21 Aug 2012 02:58:08 +0000 (UTC) (envelope-from ume@mahoroba.org) Received: from mail.mahoroba.org (ent.mahoroba.org [IPv6:2001:2f0:104:8010::1]) by mx1.freebsd.org (Postfix) with ESMTP id 15A9F8FC16; Tue, 21 Aug 2012 02:58:06 +0000 (UTC) Received: from ameno.mahoroba.org (IDENT:9A1Q49MNuh/8KVK0fLrXYAmNXrObFGoMN/znYMGJ7Tdr8dTnDB1UWeSkgPzJ+IGU@ameno.mahoroba.org [IPv6:2001:2f0:104:8010:20a:79ff:fe69:ee6b]) (user=ume mech=DIGEST-MD5 bits=0) by mail.mahoroba.org (8.14.5/8.14.5) with ESMTP/inet6 id q7L2vuZ3023950 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Tue, 21 Aug 2012 11:58:01 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Tue, 21 Aug 2012 11:57:56 +0900 Message-ID: From: Hajimu UMEMOTO To: Andrey Chernov In-Reply-To: <20120821010311.GA8250@vniz.net> References: <201208171553.q7HFrhuf090457@svn.freebsd.org> <201208171507.07699.jhb@freebsd.org> <20120818195724.GA74684@vniz.net> <201208201409.55544.jhb@freebsd.org> <20120821010311.GA8250@vniz.net> User-Agent: xcite1.60> Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-2022-JP-2?B?R29qGyQoRCtXGyhC?=) APEL/10.8 Emacs/24.1 (i386-portbld-freebsd9.1) MULE/6.0 (HANACHIRUSATO) X-Operating-System: FreeBSD 9.1-PRERELEASE X-PGP-Key: http://www.mahoroba.org/~ume/publickey.asc X-PGP-Fingerprint: 1F00 0B9E 2164 70FC 6DC5 BF5F 04E9 F086 BF90 71FE MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (mail.mahoroba.org [IPv6:2001:2f0:104:8010::1]); Tue, 21 Aug 2012 11:58:01 +0900 (JST) X-Virus-Scanned: clamav-milter 0.97.5 at asuka.mahoroba.org X-Virus-Status: Clean X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on asuka.mahoroba.org Cc: svn-src-head@FreeBSD.ORG, svn-src-all@FreeBSD.ORG, src-committers@FreeBSD.ORG, John Baldwin Subject: Re: svn commit: r239356 - head/sbin/dhclient X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2012 02:58:08 -0000 Hi, >>>>> On Tue, 21 Aug 2012 05:03:11 +0400 >>>>> Andrey Chernov said: ache> Having dual-stack machine it seems proper way for me to run both DHCP and ache> DHCPv6 clients (net-mgmt/wide-dhcp? net/dhcp6?). But I fear they both will ache> interact with single /etc/resolv.conf overriding each other there. FreeBSD 9 and above already have a feature to handle multiple source of DNS address,; resolvconf(8). Our dhclient(8) and rtsol(8) uses it to write /etc/resolv.conf. ache> As I already mention, perhaps it is router bug combined with the lack of ache> validity checking in dhclient itself. As result I currently have ache> /etc/resolv.conf: ache> nameserver 192.168.1.1 ache> nameserver Don't you see `# Generated by resolvconf' line in your generated /etc/resolv.conf? DHCP cannot carry an IPv6 address. I suspect your router advertises an IPv6 address of your DNS server. You can confirm where the DNS server addresss come from by executing `resolvconf -l'. The following is the output on my box for example: ume@yuga:~% resolvconf -l # resolv.conf from em0:dhcpv6 search mahoroba.org nameserver 2001:2f0:104:8010::1 nameserver 2001:2f0:104:8010:221:5aff:feeb:183 # resolv.conf from em0:slaac:[fe80::218:71ff:feec:5271] nameserver 2001:2f0:104:8010::1 search mahoroba.org # resolv.conf from em0 search mahoroba.org nameserver 192.168.100.59 nameserver 192.168.100.55 My network announces DHCPv6 and my box is configured to use DHCPv6. So, there are three sources for a DNS address, here. Sincerely, -- Hajimu UMEMOTO ume@mahoroba.org ume@{,jp.}FreeBSD.org http://www.mahoroba.org/~ume/