Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 May 2002 10:11:30 -0700
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Mike Makonnen <makonnen@pacbell.net>
Cc:        Peter Haight <peterh@sapros.com>, Bernd Walter <ticso@cicely5.cicely.de>, hackers@FreeBSD.ORG
Subject:   Re: gethostbyname2 and AF_INET6
Message-ID:  <3CDFF3C2.4DF47219@mindspring.com>
References:  <200205122016.g4CKGlUn048082@wartch.sapros.com> <1021273711.97354.74.camel@kokeb.ambesa.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Mike Makonnen wrote:
> 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.

They are trying to be good network citizens by supporting IPv6.

Patching the code so that it no longer supports IPv6, to work
around a DNS server that improperly supports DNS... doesn't
seem to be the right direction.

-- Terry

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?3CDFF3C2.4DF47219>