tags:

views:

213

answers:

2

Hey,

I want to make a DNS query to my own DNS server instead the default one.

Which api can I use to do that ?

I know getaddrinfo (which ping.exe using), but how can i make this function query my dns server, instead the default one ?

Thanks!

+3  A: 

Take a look at the adns resolver library.

Another option is to use the c-ares library, which works on Windows and allows you to use alternative nameservers.

0xfe
I'm not sure why this was down-voted. Both these APIs will allow you to query alternative nameservers (as opposed to using the system resolver). An explanation along with the down-vote will help. :-)
0xfe
i voted it back up - good replies. Only negative is GPL
pm100
+1 because I hate downvotes without comments.
bortzmeyer
thanks much :-)
0xfe