GNU 的可配置 whois 客户端,按查询对象自动选择 whois 服务器。
jwhois 根据 /etc/jwhois.conf 里的规则,按域名后缀、IP 前缀或 AS 号选择对应的 whois 服务器,再通过 TCP 43 端口取回注册信息。它支持自定义配置和强制指定服务器,适合需要固定查询行为或批量处理的脚本。
项目已多年未更新,默认规则可能落后于注册局调整,也不支持 RDAP/JSON。日常查域名用发行版的 whois 或在线 RDAP 更可靠;jwhois 的价值主要在可配置的服务器映射和旧脚本兼容。
# 查询域名注册信息
jwhois example.com
# 查询 IP 地址的归属
jwhois 192.0.2.10
# 强制使用指定 whois 服务器
jwhois -h whois.verisign-grs.com example.com
# 使用非默认端口
jwhois -h whois.example.net -p 4343 example.com
# 指定配置文件
jwhois -f /etc/jwhois.conf example.com
# 查看可用选项
jwhois --help
合上页面,先回答,再展开对照。
-h 手动跟进。-h 直接指定服务器,不要假设默认配置永远正确。
小程序版
微信扫码,随时查命令