1 Star 0 Fork 0

ctexthuang / pythonAliyunddnsIpv6

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.en.md

Dynamic resolution of Ali Cloud DNS

Support for multiple parsing of records

git clone https://gitee.com/ctexthuang/python-aliyunddns-ipv6.git

Install the Python SDK

python -m pip install aliyun-python-sdk-core-v3
python -m pip install aliyun-python-sdk-domain
python -m pip install aliyun-python-sdk-alidns
python -m pip install requests

Modify the configuration file app.conf

vi app.conf
[ipv6]
flag = true
# DDNS resolution on ipv6,true on, false off
SLD = ['work','companywin','test']
# The subdomain to be resolved by DDNS for ipv6

[ipv4]
flag = false
# Ipv4 DDNS parsing is enabled. True is on, false is off
SLD = ['domain']
# The subdomain to parse for IPv4 DDNS

[aliyun]
accessKeyId = testxxxx
# Change accessKeyId to your own accessKeyId
accessSecret = testxxxx
# Change accessSecret to your own accessSecret
domain = xxx.com
# Your primary domain name does not contain WWW belongs to the secondary domain name is generally baidu.com rather than www.baidu.com

Access Key

Via ali cloud Access Key management, access_key_id, access_key_secret is obtained.

Crontab runs regularly and records

crontab -e
# Run at every 5 minute
*/5 * * * * /usr/bin/python /path_to/aliyun_ddns.py >> /path_to/run.log 2>&1
# */5 * * * * /usr/bin/python /path_to/aliyun_ddns.py /dev/null 1>/dev/null

Comments ( 0 )

Sign in for post a comment

About

ipv6的ddns自動解析 spread retract
Cancel

Releases

No release

Contributors

All

Activities

load more
can not load any more
Python
1
https://gitee.com/ctexthuang/python-aliyunddns-ipv6.git
git@gitee.com:ctexthuang/python-aliyunddns-ipv6.git
ctexthuang
python-aliyunddns-ipv6
pythonAliyunddnsIpv6
master

Search