如果我跑
dig @ns5.laposte.net conversation.ees.labanquepostale.fr A
我得到一个 SERVFAIL,但如果我运行
dig @ns5.laposte.net conversation.ees.labanquepostale.fr CNAME
我得到了我的 CNAME:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48072
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 9
;; WARNING: recursion requested but not available
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;conversation.ees.labanquepostale.fr. IN CNAME
;; ANSWER SECTION:
conversation.ees.labanquepostale.fr. 300 IN CNAME prod-lbpee.web-application-front-customer.as8677.net.
我想知道这种行为有多有效(至少要知道我们是否可以期望这种行为会更频繁地发生),并且从RFC 1034我可以看到:
If a CNAME RR is present at a node, no other data should be present
When a name server fails to find a desired RR in the resource set associated with the domain name, it checks to see if the resource set consists of a CNAME record with a matching class. If so, the name server includes the CNAME record in the response
所以我认为这不是标准行为。我也没有在“常见的 DNS 操作和配置错误”中看到任何建议。有没有人对这类问题有建议或经验?如果名称服务器回复 REFUSED 或 SERVFAIL,我想这里只是为了寻找 CNAME?