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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to