From owner-freebsd-net@FreeBSD.ORG Fri Aug 10 04:49:09 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 F32B116A421 for ; Fri, 10 Aug 2007 04:49:08 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.187]) by mx1.freebsd.org (Postfix) with ESMTP id 874D413C45D for ; Fri, 10 Aug 2007 04:49:03 +0000 (UTC) (envelope-from max@love2party.net) Received: from [88.66.35.129] (helo=amd64.laiers.local) by mrelayeu.kundenserver.de (node=mrelayeu0) with ESMTP (Nemesis), id 0MKwh2-1IJMQe42Jv-0003sq; Fri, 10 Aug 2007 06:48:54 +0200 From: Max Laier Organization: FreeBSD To: freebsd-net@freebsd.org Date: Fri, 10 Aug 2007 06:48:43 +0200 User-Agent: KMail/1.9.7 References: <46BBE0E9.1070707@zyxel.com.tw> In-Reply-To: X-Face: ,,8R(x[kmU]tKN@>gtH1yQE4aslGdu+2]; R]*pL,U>^H?)gW@49@wdJ`H<=?utf-8?q?=25=7D*=5FBD=0A=09U=5For=3D=5CmOZf764=26nYj=3DJYbR1PW0ud?=>|!~,,CPC.1-D$FG@0h3#'5"k{V]a~.<=?utf-8?q?mZ=7D44=23Se=7Em=0A=09Fe=7E=5C=5DX5B=5D=5Fxj?=(ykz9QKMw_l0C2AQ]}Ym8)fU MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart5964980.ysTFfm3B9j"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200708100648.51663.max@love2party.net> X-Provags-ID: V01U2FsdGVkX1//UH81R1OFqpa/Zs5e4Okx1uNOtEWWJc8fh2f ZuH4YJGMV4VnQi/TETYhLcuNjSNoACLpE58Dg4HEkO1Si928Fp /TRA7uP0V5jZJmyXUyy5CQT0+HhR9kvAOCEvku0XNc= Cc: blue , JINMEI Tatuya / =?utf-8?q?=E7=A5=9E=E6=98=8E=E9=81=94=E5=93=89?= 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:49:09 -0000 --nextPart5964980.ysTFfm3B9j Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Friday 10 August 2007, JINMEI Tatuya / =E7=A5=9E=E6=98=8E=E9=81=94=E5=93= =89 wrote: > 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. I agree with the reasoning in the document you reference above. =20 getaddrinfo is a convenience resolver and thus it's a good thing to=20 return reasonable defaults. Not returning AAAA when there are no IPv6=20 addresses around seems reasonable to me. I'm not sure it's a good idea=20 to go the other way (i.e. not sending A queries when there are no IPv4=20 addresses), however. =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --nextPart5964980.ysTFfm3B9j Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQBGu+4zXyyEoT62BG0RAtkeAJ4jfGW4G4CV5q6Ydvqe2aYrTk29mwCffvN5 hffOkRtm4HTmHQYB2fMPTKA= =bGl3 -----END PGP SIGNATURE----- --nextPart5964980.ysTFfm3B9j--