> I need to resolve IPv6 address for domain name (google.com -> 
> 2607:f8b0:4006:80e:0:0:0:200e)
> To do it I call:
> DnsQuery.QueryAny('google.com',DnsQueryAAAA);

The component does not currently support AAAA records directly.  

You can use WSocketIPv6ToStr to convert the 16 bytes of IPv6 address
data to a string. 

I'll email you a DnsQuery2 version I created 15 years ago from a
heavily rewritten version that never got incorporated into ICS, and the
two versions have departed too much to it even harder today.  But it
does what you need.  Not tested on unicode compilers I'm afraId. 
Sent Query to: 192.168.1.118 for: www.google.com
Answers are not Authoritative
DNS Query for www.google.com: 216.58.212.228
AAAA (ipv6) Query for www.google.com: 2a00:1450:400e:803::2004

Angus



-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to