> 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.

> > Yes.  
> 
> Really?

I sure hope not.  I vote No.

--Brian

> -- 
> Hideaki YOSHIFUJI @ USAGI Project  <[EMAIL PROTECTED]>
> Web Page: http://www.ecei.tohoku.ac.jp/%7Eyoshfuji/
> PGP5i FP: F731 6599 5EB2 BBA7 1515  1323 1806 A96F 5700 6B25 
> --------------------------------------------------------------------
> 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]
> --------------------------------------------------------------------
> 
--------------------------------------------------------------------
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]
--------------------------------------------------------------------

Reply via email to