From owner-freebsd-hackers Fri May 17 13:27: 5 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from avocet.prod.itd.earthlink.net (avocet.mail.pas.earthlink.net [207.217.120.50]) by hub.freebsd.org (Postfix) with ESMTP id 9CD4637B403 for ; Fri, 17 May 2002 13:26:58 -0700 (PDT) Received: from pool0392.cvx22-bradley.dialup.earthlink.net ([209.179.199.137] helo=mindspring.com) by avocet.prod.itd.earthlink.net with esmtp (Exim 3.33 #2) id 178oJK-0005TE-00; Fri, 17 May 2002 13:26:47 -0700 Message-ID: <3CE56769.53038CA0@mindspring.com> Date: Fri, 17 May 2002 13:26:17 -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: Ollivier Robert Cc: hackers@FreeBSD.ORG Subject: Re: gethostbyname2 and AF_INET6 References: <200205122016.g4CKGlUn048082@wartch.sapros.com> <1021273711.97354.74.camel@kokeb.ambesa.net> <3CDFF3C2.4DF47219@mindspring.com> <20020517192744.GA89906@tara.freenix.org> 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 Ollivier Robert wrote: > According to Terry Lambert: > > They are trying to be good network citizens by supporting IPv6. > > But they're doing it badly. gethostbyname2 (defined by RFC-2133) has been > obsoleted by RFC-2553 and all applications SHOULD use getaddrinfo(3) or > getnodebyname(3). Both these RFC's are informational. The return values for gethostbyname/gethostbyname2/gethostbyaddr are also not precisely mapped. Particularly the HOST_NOT_FOUND is obfuscated in the getaddrinfo case EAI_NONAME, which may mean that it wasn't provided, vs. it not being known. A useful distinction is lost. I've personally and *recently* made the decision to use the gethostbname2 interface in a program because of this loss of information. In any case, neither interface is asyncronously callable in FreeBSD, so it's really rather irrelelvent to the the original desire to dike out IPv6 support to make up for DNS servers that do not respond correctly to requests with an unknown query type. PS: The response of a DNS server to an unknown query type is mandated by RFC's with significantly more standaing than "informational"... -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message