大网数据广告活动
服务器运维问答

AAAA with no ANSWER section

· 52CE 我爱测

When I do dig whoami.akamai.net AAAA on my computer, I got ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32160 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, f…

问题原文

原帖链接 · vinz · CC BY-SA 4.0

When I do dig whoami.akamai.net AAAA on my computer, I got

;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32160
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4000
;; QUESTION SECTION:
;whoami.akamai.net.     IN  AAAA

But if I try from @1.1.1.1 or @8.8.8.8 or even OpenDNS, I can get a AAAA RR.

What prevent my local dig not to get a result?

According to the RFC4074 (https://www.rfc-editor.org/rfc/rfc4074#section-3):

Suppose that an authoritative server has an A RR but has no AAAA RR for a host name. Then, the server should return a response to a query for an AAAA RR of the name with the response code (RCODE) being 0 (indicating no error) and with an empty answer section (see Sections 4.3.2 and 6.2.4 of RFC 1034). Such a response indicates that there is at least one RR of a different type than AAAA for the queried name, and the stub resolver can then look for A RRs.

I thought it was what happening, but it looks like the domain has an existing AAAA record (since the major dns resolver have it). I do not get what is happening here.

已采纳解答

原帖链接 · Michael Hampton · CC BY-SA 4.0

Akamai is a very large CDN and as such it uses geographically split DNS, so that DNS queries will (at least most of the time) return an IP address that is close to the user on the network. But that's not what is happening here.

whoami.akamai.net is a special tool. Its purpose is to return the IP address of the DNS server that sent the DNS request to Akamai's authoritative nameservers.

It is also deprecated and if this is a tool you rely on, you should move to its replacement.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2020-11-17)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。