From owner-freebsd-hackers Mon May 13 10:12:18 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from scaup.prod.itd.earthlink.net (scaup.mail.pas.earthlink.net [207.217.120.49]) by hub.freebsd.org (Postfix) with ESMTP id 7DB5A37B400 for ; Mon, 13 May 2002 10:12:16 -0700 (PDT) Received: from pool0092.cvx22-bradley.dialup.earthlink.net ([209.179.198.92] helo=mindspring.com) by scaup.prod.itd.earthlink.net with esmtp (Exim 3.33 #2) id 177JMd-00019A-00; Mon, 13 May 2002 10:11:59 -0700 Message-ID: <3CDFF3C2.4DF47219@mindspring.com> Date: Mon, 13 May 2002 10:11:30 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Mike Makonnen Cc: Peter Haight , Bernd Walter , hackers@FreeBSD.ORG Subject: Re: gethostbyname2 and AF_INET6 References: <200205122016.g4CKGlUn048082@wartch.sapros.com> <1021273711.97354.74.camel@kokeb.ambesa.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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