Date: Mon, 13 May 2002 01:08:31 -0600 From: Mike Makonnen <makonnen@pacbell.net> To: Peter Haight <peterh@sapros.com> Cc: Bernd Walter <ticso@cicely5.cicely.de>, hackers@FreeBSD.ORG Subject: Re: gethostbyname2 and AF_INET6 Message-ID: <1021273711.97354.74.camel@kokeb.ambesa.net> In-Reply-To: <200205122016.g4CKGlUn048082@wartch.sapros.com> References: <200205122016.g4CKGlUn048082@wartch.sapros.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 2002-05-12 at 14:16, Peter Haight wrote: > > Hmm. Looking at the FreeBSD resolver code, it doesn't look like there is > some convenient way to do this. Maybe something like, try the AAAA lookup, > but if we don't get any reply in a short timeout, try an A lookup. If we get > a reply to that, then log the site as probably not conforming to the RFC. > In mozilla's case, it's not the FreeBSD resolver that's trying ipv6 and then ipv4. Mozilla does it explicitly by calling gethostbyname2 first with AF_INET6, and if that fails with AF_INET. You could just patch it to not make the first gethostbyname2 call. From a quick browse of the source from mozilla.org it's src/misc/prnetdb.c around line # 579 or thereabouts. Cheers, Mike Makonnen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1021273711.97354.74.camel>
