如果 DNS 查询来自 Windows 11 而不是其他机器,则使用相同的 DNS 服务器解析相同的地址会导致不同的响应。
所有机器都使用路由器作为 DNS 服务器来接收相同的 DHCP 设置,并且位于同一个家庭网络上,没有分段。
此命令:nslookup -d2 subaddress.mydomain.com。
在 Windows 11 上返回:
Server: UnKnown
Address: 192.168.0.1
------------
SendRequest(), len 40
HEADER:
opcode = QUERY, id = 2, rcode = NOERROR
header flags: query, want recursion
questions = 1, answers = 0, authority records = 0, additional = 0
QUESTIONS:
subaddress.mydomain.com, type = A, class = IN
------------
------------
Got answer (96 bytes):
HEADER:
opcode = QUERY, id = 2, rcode = NOERROR
header flags: response, want recursion, recursion avail.
questions = 1, answers = 2, authority records = 0, additional = 0
QUESTIONS:
subaddress.mydomain.com, type = A, class = IN
ANSWERS:
-> subaddress.mydomain.com
type = CNAME, class = IN, dlen = 28
canonical name = subdomain.dyndnsprovider.com
ttl = 300 (5 mins)
-> subdomain.dyndnsprovider.com
type = A, class = IN, dlen = 4
internet address = xxx.xxx.xxx.xxx (my public ip address)
ttl = 60 (1 min)
但从 Windows 10 或 Windows Server 2019 返回:
Server: UnKnown
Address: 192.168.0.1
------------
SendRequest(), len 40
HEADER:
opcode = QUERY, id = 2, rcode = NOERROR
header flags: query, want recursion
questions = 1, answers = 0, authority records = 0, additional = 0
QUESTIONS:
subaddress.mydomain.com, type = A, class = IN
------------
------------
Got answer (56 bytes):
HEADER:
opcode = QUERY, id = 2, rcode = NOERROR
header flags: response, want recursion, recursion avail.
questions = 1, answers = 1, authority records = 0, additional = 0
QUESTIONS:
subaddress.mydomain.com, type = A, class = IN
ANSWERS:
-> subaddress.mydomain.com
type = A, class = IN, dlen = 4
internet address = 192.168.0.3
ttl = 300 (5 mins)
Windows 11 上的 DNS 查询是否存在任何已知差异?
Nslookup 似乎正在使用 DNS 服务器(因为它显示地址:192.168.0.1),但 DNS 服务器不会记录来自 Windows 11 计算机的查询,无论 IP 设置如何。其他计算机的查询都会被记录。
我唯一能想到的是 Windows 11 不喜欢经典的“未加密”DNS 服务器,而是尝试使用一些预定义的DNS 服务器自行操作。
我该如何调试它?