多支持多运营商的 DNS 命令行 客户端。
DNSx 配置管理 DNS 解析
Usage:
dnsx [command]
Available Commands:
add 添加域名解析
configure 管理配置文件
delete 删除解析记录
help Help about any command
search 查询记录信息
switch 切换域名状态
Flags:
-c, --config string config file (default "$HOME/.dnsx/dnsx.json")
-h, --help help for dnsx
-p, --profile string profile (default "default")
Use "dnsx [command] --help" for more information about a command.多后台的 dns 解析配置命令行
-
使用
interface方法实现多backend接入 -
使用
cobra创建子命令-
add -
delete: 交互确认。 -
update -
enable,disable -
search -
configure
-
-
使用
cobra实现config.json的配置- 增加
- 更新
- 优化
LoadConfig()加载位置
-
完成
auto-completefor zsh: 支持子命令补全,config.json中的域名列表补全source /path/to/dnsx.completion.bash -
支持多后台
-
qcloud cns -
aliyun alidns -
dnspod
-