问题原文
原帖链接 · mehdi nejjari · CC BY-SA 4.0
Suppose that test.example.com don't exists and gives NXDOMAIN when runnning dig on it , but i know that subdomain.test.example.com exists and gives NOERROR when doing the same, is there a way to check that a deep subdomain exists even though the intermediate subdomain may not be there necessarily. Specifically, I'm looking for hints when probing or querying subdomain.test.example.com that points to the existance of the deep subdomain?
已采纳解答
原帖链接 · Patrick Mevzek · CC BY-SA 4.0
Suppose that test.example.com don't exists and gives NXDOMAIN when runnning dig on it , but i know that subdomain.test.example.com exists
This is not possible, per DNS specifications. Or said differently: it means the authoritative nameserver for this zone is broken.
See RFC 8020: NXDOMAIN: There Really Is Nothing Underneath
When an iterative caching DNS resolver receives an NXDOMAIN response, it SHOULD store it in its cache and then all names and resource record sets (RRsets) at or below that node SHOULD be considered unreachable. Subsequent queries for such names SHOULD elicit an NXDOMAIN response.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
