On Fri, 15 Sep 2000, Jim Bound wrote:
> Hi Mauro,
>
> >i have a question about the getaddrinfo function.
> >
> >first, suppose that the nodename argument is a numeric host address and
> >the flag AI_NUMERICHOST is not set. will the query to getaddrinfo return
> >ALL addresses of that host?
>
> No. That is an error and you will get EAI_AGAIN is my view.
maybe i have not explained the situation very well. the call:
getaddrinfo("xxx:xxx::xxx", NULL, &res)
should return the full results of a query to the DNS for address "xxx...",
and not only a struct sockaddr_in6 filled with the address "xxx...", imo.
is this correct?
> >IMHO it should, but draft-...-rfc2553bis-00 is not very clear about this.
> >it only states that AI_NUMERICHOST prevents the DNS from being invoked, so
> >i guess that if AI_NUMERICHOST is not set, then a query to the resolution
> >service MUST be made, even if nodename is a numeric host address.
>
> Correct.
thank you for your answers.
--
Aequam memento rebus in arduis servare mentem...
Mauro Tortonesi [EMAIL PROTECTED]
Ferrara Linux User Group http://www.ferrara.linux.it
Project6 - IPv6 for Linux http://project6.ferrara.linux.it
--------------------------------------------------------------------
IETF IPng Working Group Mailing List
IPng Home Page: http://playground.sun.com/ipng
FTP archive: ftp://playground.sun.com/pub/ipng
Direct all administrative requests to [EMAIL PROTECTED]
--------------------------------------------------------------------