From owner-freebsd-stable@FreeBSD.ORG Sat Nov 8 17:36:58 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3CB651065690 for ; Sat, 8 Nov 2008 17:36:58 +0000 (UTC) (envelope-from mdh_lists@yahoo.com) Received: from web56805.mail.re3.yahoo.com (web56805.mail.re3.yahoo.com [66.196.97.79]) by mx1.freebsd.org (Postfix) with SMTP id D93588FC1B for ; Sat, 8 Nov 2008 17:36:57 +0000 (UTC) (envelope-from mdh_lists@yahoo.com) Received: (qmail 61139 invoked by uid 60001); 8 Nov 2008 17:10:17 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Message-ID; b=VmxFOTbzHyFksFr9KZmy0FitJqR5lk1U39yHrsQZvfy1PmwQFIagKVaTqpzIX/kv+0UCtrNxOWCqIQ9KE6LKmM/uHjAwYqm6mtRP2fgU1o3rOkR7Y+7dZXAOVOoqrnsm/iTuoLx6PufX5DOc9edWcbupdDhGXgqoQnqwVuJDI7o=; X-YMail-OSG: BQ2MCKYVM1lPXdHob7cf3ECiO3OvGIo_cI4GrkZqqtbE3XxEHegH4pkbIRjSPmcEAFuZ1Usr2DrsuQ7hNY1GF0RVd_cmUqlFpA4bGhn9L7h1MWWYJAep5ULuXcBpzrdi9CNjdy2G_9DMI_sm7I1_F9Cr4iB2NWgXvRvi8TBY Received: from [71.61.220.126] by web56805.mail.re3.yahoo.com via HTTP; Sat, 08 Nov 2008 09:10:16 PST X-Mailer: YahooMailWebService/0.7.260.1 Date: Sat, 8 Nov 2008 09:10:16 -0800 (PST) From: mdh To: freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <94894.60594.qm@web56805.mail.re3.yahoo.com> X-Mailman-Approved-At: Sat, 08 Nov 2008 20:48:54 +0000 Subject: host(1) problem with -6 option X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mdh_lists@yahoo.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Nov 2008 17:36:58 -0000 Howdy folks, I'm having a little trouble understanding a problem that the `host` command in RELENG_7_0 (very recent) is having. This is by and large my first time working with IPv6, which I've been meaning to learn for some time. First off, I've got my zone file configured to return a AAAA record for x1.mydomain and named isn't complaining. However, when I run `host -6 x1.mydomain`, host returns the following output: (root@rapier) [/etc/namedb]: host -6 x1.mydomain /usr/src/lib/bind/isc/../../../contrib/bind9/lib/isc/unix/socket.c:1179: internal_send: ::ffff:127.0.0.1#53: Invalid argument /usr/src/lib/bind/isc/../../../contrib/bind9/lib/isc/unix/socket.c:1179: internal_send: ::ffff:IP.IP.IP.8#53: Invalid argument /usr/src/lib/bind/isc/../../../contrib/bind9/lib/isc/unix/socket.c:1179: internal_send: ::ffff:127.0.0.1#53: Invalid argument /usr/src/lib/bind/isc/../../../contrib/bind9/lib/isc/unix/socket.c:1179: internal_send: ::ffff:IP.IP.IP.8#53: Invalid argument ;; connection timed out; no servers could be reached IP.IP.IP.8 is my ISP's DNS server, and is a third option just in case the localhost DNS server crashes or goes batty while I'm out drinking or somesuch. Here's my resolv.conf, which shows ::1 listed as the second nameserver entry - however, it seems host -6 never even tries it. domain mydomain search mydomain nameserver 127.0.0.1 nameserver ::1 nameserver IP.IP.IP.8 The DNS server running on localhost is authoritative for mydomain. I can ping it via localhost using both v4 and v6, and I can also ping the external v4 and v6 addresses just fine remotely. Worth noting is that host without the -6 option resolves the v6 addresses just fine, however it seems like it should work properly with the -6 option as well. It is likely doing so via the IPv4 nameserver address, since that is the first nameserver specified in resolv.conf. This may be a bug deserving a PR, but I'm not entirely sure, so I thought to check here first. As I said, I'm new to IPv6, but this behavior seems to be counterintuitive. Am I just doing it wrong? Note: I'm not on -stable, so please CC: me on responses. Thanks, Matt