nslookup.exe www.google.com 127.0.0.1
This command can allow the use of the 127.0.0.1 DNS server, it is not possible to implement the full-size DNS protocol of 75.0 KB nslookup.exe, so it should have used dnsapi.dll.
So, what dll c export function can provide similar gethostbyname () with the specified DNS server in dnsapi.dll?
source share