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!
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!
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.