Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 May 2002 13:26:17 -0700
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Ollivier Robert <roberto@keltia.freenix.fr>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: gethostbyname2 and AF_INET6
Message-ID:  <3CE56769.53038CA0@mindspring.com>
References:  <200205122016.g4CKGlUn048082@wartch.sapros.com> <1021273711.97354.74.camel@kokeb.ambesa.net> <3CDFF3C2.4DF47219@mindspring.com> <20020517192744.GA89906@tara.freenix.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3CE56769.53038CA0>