在 Ubuntu 上查询域名的 WHOIS 信息,有几种常用方法:
sudo apt update
sudo apt install whois
whois example.com
示例:
whois google.com
说明:
- 支持绝大多数通用域名(.com / .net / .org 等)
- 部分国别域名(如 .cn)可能返回信息有限
curl https://who.is/whois/example.com
或 RDAP(现代替代 WHOIS):
curl https://rdap.org/domain/example.com
如果你只是偶尔查:
whois: command not found说明没安装,执行:
sudo apt install whois
whois cnnic.cn
或: https://whois.cnnic.cn
如果你愿意,可以告诉我:
我可以给你更精确的命令。