为什么我不能使用 whois '.google' 域?

IQA*_*eas 4 domain google domain-name whois

我只知道 TLD 下的两个域google(显然由 Google 拥有):

nic.google
lers.google
Run Code Online (Sandbox Code Playgroud)

但是,当与whois以下一起使用时,它们都不会给出有效的输出:

$ whois nic.google
No whois server is known for this kind of object.
Run Code Online (Sandbox Code Playgroud)

为什么这些域没有出现在whois? 这就引出了一个后续问题,从哪里whois获取数据?

Håk*_*ist 6

对于 WHOIS 客户来说,没有好的、可靠的起点。这或多或少是一种“错觉”,您可以在whois不指定要查询的 whois 服务器的情况下使用它。

我将在此处参考我的回答https://serverfault.com/a/615848/183318,了解为 TLD 找到合适的 WHOIS 服务器的可用方法。
只有查询 IANA(WHOIS 或http)的方法实际上是可靠的,但结果却是一大堆文本,这些文本的获取成本相对较高,并且还需要以可能的半模糊方式进行解析。

例如

$ whois -h whois.iana.org google | grep ^whois
whois:        domain-registry-whois.l.google.com
$
Run Code Online (Sandbox Code Playgroud)


大多数 WHOIS 客户端似乎都依赖于使用“已知”TLD 启动的配置文件,而有些则退回到 DNS 查找example.whois-servers.net(目前还没有条目google.whois-servers.net)。我不知道客户甚至尝试查询_nicname._tcp.example. SRV.