覆盖 RDAP / WHOIS / DNS / SSL / 子域名枚举的域名信息全面研究工具。
运行脚本前安装依赖:
bash
pip install dnspython python-whois requests cryptography
推荐使用清华镜像加速:
bash
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ dnspython python-whois requests cryptography
确定用户要查询什么:
--type all (默认)--type rdap 或 --type whois--type dns,可指定 --dns-types--type ssl--type availability--batch domains.txt使用 scripts/domain_lookup.py 执行查询。
单域名完整研究:
bash
python scripts/domain_lookup.py example.com --type all --output result.json
批量域名分析:
bash
python scripts/domain_lookup.py --batch domains.txt --output batch_results.json
仅 DNS 查询(指定记录类型):
bash
python scripts/domain_lookup.py example.com --type dns --dns-types A,MX,TXT,NS
SSL 证书检查:
bash
python scripts/domain_lookup.py example.com --type ssl
域名可用性检查:
bash
python scripts/domain_lookup.py example.com --type availability
子域名枚举:
bash
python scripts/domain_lookup.py example.com --type subdomains
多解析器 DNS 传播检测:
bash
python scripts/domain_lookup.py example.com --type multi-dns
反向 DNS(IP → 域名):
bash
python scripts/domain_lookup.py 8.8.8.8 --type reverse
将查询结果转换为交互式 HTML 报告:
bash
python scripts/generate_report.py result.json --output report.html
或从 stdin 流水线处理:
bash
python scripts/domain_lookup.py example.com | python scripts/generate_report.py --stdin --output report.html
查询类型--type 值说明RDAPrdapRFC 7480-7484 结构化域名注册数据,现代化 WHOIS 替代方案WHOISwhois传统域名 WHOIS 查询DNSdnsDNS 记录查询,默认 A/AAAA/MX/NS/TXT/CNAME/SOASSLsslTLS/SSL 证书详情、到期时间、SAN 列表可用性availability综合 RDAP+WHOIS+DNS 多源判断域名是否可注册反查reverse给定 IP 地址,查询 PTR 记录子域名subdomains枚举 70+ 常见子域名并检查是否解析多解析器multi-dns通过 Cloudflare/Google/Quad9/AliDNS 对比 DNS 结果全部all运行所有上述检查
通过 --dns-types 参数指定,逗号分隔:
类型说明AIPv4 地址AAAAIPv6 地址MX邮件服务器NS域名服务器TXT文本记录(SPF/DKIM 等)CNAME别名记录SOA授权起始记录CAA证书颁发机构授权SRV服务定位记录PTR反向指针记录
RDAP(Registration Data Access Protocol)是 IETF 定义的 WHOIS 现代化替代协议。 本工具预配置了以下 TLD 的 RDAP 服务器:
对于未预配置的 TLD,工具会自动通过 IANA RDAP Bootstrap 寻找对应的 RDAP 服务器。
生成的 HTML 报告包含:
批量文件格式(每行一个域名, # 开头为注释):
text
example.com
google.com
# 这是注释
github.com
myshopify.com