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