Why nslookup.exe can resolved with a specified DNS server, but there isn't corresponding API in dnsapi.dll?

后端 未结 1 1607
太阳男子
太阳男子 2021-01-19 09:26

nslookup.exe www.google.com 127.0.0.1

This command can resolve using DNS server 127.0.0.1, it\'s impossible to implement a full stack DNS protocol resolver in a 75.0

1条回答
  •  囚心锁ツ
    2021-01-19 09:47

    You can use the pExtra parameter to the DNSQuery function.

    Apparently the MSDN documentation is incomplete, since it says this parameter must be null.

    See http://support.microsoft.com/kb/831226 for an example of its use.

    0 讨论(0)
提交回复
热议问题