On Mon, 18 Sep 2000, Brian Zill wrote:
> > From: Hideaki YOSHIFUJI [mailto:[EMAIL PROTECTED]]
> >
> > In article <[EMAIL PROTECTED]> (at
> > Mon, 18 Sep 2000 20:14:40 -0400), Jim Bound <[EMAIL PROTECTED]> says:
> >
> > > >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?
> >
> > What do you mean by "full results," Mauro?
>
> Yes, what are you asking? In your earlier message you asked:
>
> > 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?
>
> Are you saying that if one gives it a literal address, it should do a
> reverse lookup to figure out what name that corresponds to and then do a
> forward lookup to find all the addresses for that host? Personally, I think
> that's crazy! If you want that behavior, you should use getnameinfo to get
> the name, and then feed the name into getaddrinfo. getaddrinfo shouldn't be
> doing reverse lookups, that's what getnameinfo is for. The AI_NUMERICHOST
> flag should have no effect if you give getaddrinfo an address literal. It's
> purpose is to prevent DNS lookups in the case where you don't give
> getaddrinfo an address literal.
i am not as expert as you are, but if you read the latest draft-rfc2553bis
with a bit of logic, you will find that my interpretation of the text is
not wrong ;)
please, would you tell me why you consider this a bad behaviour? thank
you.
--
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]
--------------------------------------------------------------------