views:

200

answers:

3

I'm using the DnsQueryConfig Win32 function to get the DNS servers used by Windows. This works fine for IPv4 addresses, but what if the DNS servers have IPv6 addresses?

A: 

Which version of Windows do you mean?

At least in Windows XP, there's no support for querying DNS servers over IPv6 transport, so the question is moot.

I don't know whether that's fixed in Vista.

Alnitak
Vista supports querying DNS servers over IPv6, but I don't believe that actually helps the OP.
Brian Knoblauch
A: 

I'm not familiar with that Win32 function. If you want an IPv6 address, you need to look for a "AAAA" DNS record vs. a "A" record. Hopefully that helps some...

Brian Knoblauch
+1  A: 

I could not find an API in MSDN, but I did find this line command:

IPv6 dp6dns

benc