From owner-freebsd-net@FreeBSD.ORG Fri Aug 10 04:28:05 2007 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AE43616A51A for ; Fri, 10 Aug 2007 04:28:05 +0000 (UTC) (envelope-from jinmei@isl.rdc.toshiba.co.jp) Received: from shuttle.wide.toshiba.co.jp (shuttle.wide.toshiba.co.jp [IPv6:2001:200:1b1::35]) by mx1.freebsd.org (Postfix) with ESMTP id 7B39213C4FA for ; Fri, 10 Aug 2007 04:28:05 +0000 (UTC) (envelope-from jinmei@isl.rdc.toshiba.co.jp) Received: from jmb.local (unknown [IPv6:2001:200:1b1:101a:217:f2ff:fe26:34a0]) by shuttle.wide.toshiba.co.jp (Postfix) with ESMTP id EFF937301E; Fri, 10 Aug 2007 13:28:03 +0900 (JST) Date: Fri, 10 Aug 2007 13:27:56 +0900 Message-ID: From: JINMEI Tatuya / =?ISO-2022-JP?B?GyRCP0BMQEMjOkgbKEI=?= To: blue In-Reply-To: <46BBE0E9.1070707@zyxel.com.tw> References: <46BBE0E9.1070707@zyxel.com.tw> User-Agent: Wanderlust/2.14.0 (Africa) Emacs/22.0 Mule/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Cc: freebsd-net@freebsd.org Subject: Re: A and AAAA DNS query process in getaddrinfo()? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Aug 2007 04:28:05 -0000 At Fri, 10 Aug 2007 11:52:09 +0800, blue wrote: > When looking into kame-20070801-freebsd54-snap, the function, > _dns_getaddrinfo(), defined in getaddrinfo.c, will check if the device > gets any IPv4/global IPv6 address before sending out any A/AAAA query by > calling addrconfig() if the user does not specify the family type > (AF_UNSPEC). However, FreeBSD-CURRENT (known is going to be FreeBSD7.0), > does not do the process. > > Do we need to do the same check before sending out the A/AAAA query? I'm afraid just asking this question without providing a context could be misleading. I guess this is a continuation of a thread of the snap-users@kame list: ftp://ftp.kame.net/pub/mail-list/snap-users/9541 ftp://ftp.kame.net/pub/mail-list/snap-users/9544 If so, we should discuss this with the understanding of why KAME-snap version behaves that way, specifically referring to Section 3 (especially 3.4.1) of this document: http://v6fix.net/docs/wide-draft-v6fix.en We (KAME) thought the behavior was reasonable but we were also afraid this might be too experimental to incorporate to *BSD release versions at that time. That's why it's not in the FreeBSD repository. I'm interested in what others think on this. If others think this feature is reasonable, too, and want it, I'm happy to commit the change to the FreeBSD repository. JINMEI, Tatuya Communication Platform Lab. Corporate R&D Center, Toshiba Corp. jinmei@isl.rdc.toshiba.co.jp