我尝试了同样的方法,但结果略有不同。
当在一个电报中发送两个查询(A和AAAA)时,我没有从我的本地DNS(dnsmasq)获得任何响应,但是当使用Google的8.8.8.8服务器进行相同的测试时,我会收到响应。 Google NS仅返回一个查询和一个响应的响应,它简单地忽略第二个条目。
请求:
Frame 5: 78 bytes on wire (624 bits), 78 bytes captured (624 bits) on interface any, id 0
Linux cooked capture v1
Internet Protocol Version 4, Src: 192.168.0.94, Dst: 8.8.8.8
User Datagram Protocol, Src Port: 48440, Dst Port: 53
Domain Name System (query)
Transaction ID: 0x6f23
Flags: 0x0100 Standard query
Questions: 2
Answer RRs: 0
Authority RRs: 0
Additional RRs: 0
Queries
google.com: type A, class IN
Name: google.com
[Name Length: 10]
[Label Count: 2]
Type: A (Host Address) (1)
Class: IN (0x0001)
google.com: type AAAA, class IN
Name: google.com
[Name Length: 10]
[Label Count: 2]
Type: AAAA (IPv6 Address) (28)
Class: IN (0x0001)
[Response In: 11]
响应:
Frame 11: 88 bytes on wire (704 bits), 88 bytes captured (704 bits) on interface any, id 0
Linux cooked capture v1
Internet Protocol Version 4, Src: 8.8.8.8, Dst: 192.168.0.94
User Datagram Protocol, Src Port: 53, Dst Port: 48440
Domain Name System (response)
Transaction ID: 0x6f23
Flags: 0x8180 Standard query response, No error
Questions: 1
Answer RRs: 1
Authority RRs: 0
Additional RRs: 0
Queries
google.com: type A, class IN
Name: google.com
[Name Length: 10]
[Label Count: 2]
Type: A (Host Address) (1)
Class: IN (0x0001)
Answers
google.com: type A, class IN, addr 142.250.186.142
Name: google.com
Type: A (Host Address) (1)
Class: IN (0x0001)
Time to live: 300 (5 minutes)
Data length: 4
Address: 142.250.186.142
[Request In: 5]
[Time: 0.023670110 seconds]