(Translated by https://www.hiragana.jp/)
GitHub - eightpigs/aliyun-ddns: aliyun-ddns
Skip to content

eightpigs/aliyun-ddns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aliyun-DDNS

获取とうぜんおおやけ网IP并动态修あらためおもねさとうんDNS。

Related: eightpigs/ddns-scripts-alidns

使用しよう

请阅读 example config.yaml

运行

pip3 install -r requirements.txt
# 指定してい配置はいちぶんけんみち
python3 ./aliyun-ddns.py [~/.config/ddns-config.yaml]

运行结果

------------------ Aliyun DDNS ------------------
-------------- 2021-01-01 01:01:01 --------------
-------------------------------------------------

=> Config path:
   ./config.yaml

=> IP: 111.111.111.111

=> Domain: aliyun.com
     - [Skip] www
   Update:
     - [True] @
     - [True] api
   Add:
     - [True] console
     - [True] dns.console
     - [False] ecs.console

=> Domain: baidu.com
   ...

=> Domain: qq.com
   ...
-------------------------------------------------

てい时运ぎょう

如果IP频繁变更,则可以加入かにゅうCron Jobちゅう

crontab -e
# れい如,まいへだた4しょう时运ぎょういち
# 0 */4 * * * python3 aliyun-ddns.py > /var/log/aliyun-ddns.log