[Psi-devel] IPv6 Support in Psi

Matthias Wimmer m at tthias.eu
Thu Apr 12 14:47:59 PDT 2007


Hi Loren!

Loren M. Lang schrieb:
> NDns is just using gethostbyname() correct?  I believe the correct fix 
> is to modify it to use getaddrinfo() instead.  getaddrinfo() appears to 
> be able to resolve SRV records in addition to AAAA records.  I can start 
> work on a patch to use getaddrinfo instead of gethostbyname()/QDns.

I don't know if you are talking about a 'special' getaddrinfo() but 
normal getaddrinfo() as defined in RFC 3493 does not care about SRV 
records. The servname you pass as the second argument is just there to 
tell you the port to use by looking it up in /etc/services (on Unix).


Matthias


More information about the psi-devel mailing list