Most operating systems have the getaddrinfo function which
will do both if you fill the hints.ai_family as PF_UNSPEC.


------------------------------------------------------------------------
Sankaran Narayanan                  http://www.cs.columbia.edu/~sankaran

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Shankara,
> Udaya
> Sent: Thursday, March 14, 2002 10:02 PM
> To: '[EMAIL PROTECTED]'
> Subject: [Sip-implementors] DNS address resolution
> 
> 
> Hi,
>    When a hostname is to be resolved to an IP address through DNS 
> A or AAAA
> lookup, is there a way to know, in advance, whether to make an A or AAAA
> query? Or in other words, is there a way to make one DNS query and get
> either A or AAAA record whichever exists. Please let me know if 
> you have any
> information on this. Thanks.
> 
> Regards,
> Udaya
> _______________________________________________
> Sip-implementors mailing list
> [EMAIL PROTECTED]
> http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors
_______________________________________________
Sip-implementors mailing list
[EMAIL PROTECTED]
http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors

Reply via email to