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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With