Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 DnsQueryConfig Win32 函数来获取 Windows 使用的 DNS 服务器。这适用于 IPv4 地址,但如果 DNS 服务器有 IPv6 地址怎么办?
我在 MSDN 中找不到 API,但我确实找到了这一行命令:
IPv6 dp6dns
你指的是哪个版本的Windows?
至少在 Windows XP 中,不支持通过 IPv6 传输查询 DNS 服务器,所以这个问题没有实际意义。
我不知道这是否已在 Vista 中修复。
我不熟悉那个 Win32 功能。如果您想要 IPv6 地址,则需要查找“AAAA”DNS 记录与“A”记录。希望这可以帮助一些...