借助WhoisXML API接口,使用Go语言实现的用于批量检测域名可用性的工具
https://github.com/yanecc/check-domain.git
`` shell
git clone git@github.com:18183883296/check-domain.git
go build check-domain
%%CODEBLOCK0%% shell
check-domain
%%CODEBLOCK1%% toml
# api获取地址:https://user.whoisxmlapi.com/products
apiKey = "apiKey"
accurateMode = true
# 免费账户有500次Whois查询额度及100次/月域名可用性检测额度
useWhois = false
%%CODEBLOCK2%% shell
check-domain
%%CODEBLOCK3%% shell
check-domain -path ./method/domains.txt
%%CODEBLOCK4%% shell
check-domain -suffix app
`
-suffix` 标签用于为待检查域名设定统一后缀,从文件中逐行读取域名前缀。