使用Domain Connect的动态DNS的Python客户端库
项目描述
用法
domain-connect-dyndns [-h] [--config CONFIG]
{setup,update,status,remove}
[--ignore-previous-ip]
[--protocols (ipv4, ipv6)]
(--domain DOMAIN | --all)
位置参数
- {setup,update,status,remove} --- 对域的操作
可选参数
--config CONFIG --- config file path
--domain DOMAIN --- domain to keep up to date
--all --- update all domains in config
--ignore-previous-ip --- update the IP even if no change detected.
--protocols --- a space separated list of protocols to set up. Possible values: ipv4, ipv6. Default: ipv4
--backup-file --- file path for backup domains before remove
-h --- display help and exit
安装
pip install domain-connect-dyndns
示例
domain-connect-dyndns setup --domain [domain]
domain-connect-dyndns setup --domain [domain] --protocols ipv4 ipv6
domain-connect-dyndns update --domain [domain]
domain-connect-dyndns status --domain [domain]
domain-connect-dyndns remove --domain [domain] --backup-file settings.bak
domain-connect-dyndns update --all
domain-connect-dyndns status --all
domain-connect-dyndns remove --all
安装问题
- 在某些系统上可能没有
cryptography
包的二进制分发。可能需要额外的安装步骤来从源代码构建此包。请参阅包文档:https://cryptography.io/en/latest/installation/