Mac OS 终端中的 WHOIS 未执行任何操作

WHOIS in Mac OS terminal not doing anything

在 macOS 终端中执行简单的 WHOIS 命令时,我根本没有得到任何输出。

刚刚似乎运行然后准备下一个命令。我看到的每篇在线教程或文章都会显示带有 WHOIS 信息的回复。

为什么这对我不起作用?

whois 不知道在哪里查找该域。

您需要提供:

  1. 一个-h <host>到一个寄存器,例如whois.markmonitor.com
  2. 使用-i选项使用传统网络信息中心[link]

来自man whois

-h host

Use the specified host instead of the default. Either a host name or an IP address may be specified.


-i

Use the traditional Network Information Center (InterNIC) (whois.internic.net) database. This now contains only registrations for domain names under .COM, .NET, .EDU. You can specify the type of object to search for like whois -i 'type name' where type can be domain, nameserver, registrar. The name can contain * wildcards.

[man link]


例如,不使用 whois google.com,而是使用

  1. whois -h whois.markmonitor.com google.com
    
  2. whois -i google.com
    

-h-i 都会输出略有不同的结果。

CLI 输出一瞥: