1

I would like to obtain IPv6 addresses of DNS servers in system.

This topic helped me very much with IPv4.

But GetNetworkParams() is not returning IPv6 servers, only IPv4. Is there any other way to do this?

EDIT: I found GetAdaptersAddresses() which fills a PIP_ADAPTER_ADDRESSES structure, that contains IP_ADAPTER_DNS_SERVER_ADDRESS structure. Then you can just use getnameinfo() to convert IP to String.

Community
  • 1
  • 1
tista3
  • 79
  • 1
  • 6

1 Answers1

0

I think getaddrinfo() might work:

http://msdn.microsoft.com/en-us/library/windows/desktop/ms738520.aspx

Mark Hall
  • 53,938
  • 9
  • 94
  • 111
Steve
  • 1