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

How to check for the existence of deep subdomains even if the intermediate ones don't exist?

· 52CE 我爱测

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…

问题原文

原帖链接 · 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.

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

资料来源与适用范围

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

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

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