Date: Fri, 10 Aug 2007 06:48:43 +0200 From: Max Laier <max@love2party.net> To: freebsd-net@freebsd.org Cc: blue <susan.lan@zyxel.com.tw>, JINMEI Tatuya / =?utf-8?q?=E7=A5=9E=E6=98=8E=E9=81=94=E5=93=89?= <jinmei@isl.rdc.toshiba.co.jp> Subject: Re: A and AAAA DNS query process in getaddrinfo()? Message-ID: <200708100648.51663.max@love2party.net> In-Reply-To: <m1vebo10ab.wl%jinmei@isl.rdc.toshiba.co.jp> References: <46BBE0E9.1070707@zyxel.com.tw> <m1vebo10ab.wl%jinmei@isl.rdc.toshiba.co.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <susan.lan@zyxel.com.tw> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708100648.51663.max>