Skip to main content

DDNS client for aliyun

Project description

Aliyun DDNS Client

Preface

Forked from rfancn/aliyun-ddns-client. But seems the author seems does not want to accept PRs, so this repo will be independent from the original one.

Usage

Prepare DDNS

Required options need to be set in /etc/ddns.conf:

  • access_id
  • access_key
  • domain
  • sub_domain

Optional options:

  • type
  • debug
[DEFAULT]
# access id obtains from aliyun
access_id=
# access key obtains from aliyun
access_key=
# it is not used at this moment, you can just ignore it
interval=600
# turn on debug mode or not
debug=true

[DomainRecord1]
# domain name, like google.com
domain=
# subdomain name, like www, blog, bbs, *, @, ...
sub_domain=
# resolve type, 'A', 'AAAA'..., currently it only supports 'A'
type=A

[feature_public_ip_from_nic]
enable=false
interface=eth0

Run with docker

docker run -it --rm -v $YOUR_CONF_FILE_PATH:/etc/ddns.conf tsingjyujing/aliyun-ddns-client

Install from PIP

You can install/update the command line tool from PIP:

pip3 install -U aliyun-ddns-client
# You can also install from github if you want
pip3 install -U git+https://github.com/TsingJyujing/aliyun-ddns-client.git

Save your config file to $(pwd)/ddns.conf or /etc/ddns.conf, and run aliyun-ddns directly.

Limitations

This version of DDNS client only supports auto updating 'A' type DomainRecord with IPV4 address.

Other types are not supported because they need following value format other than IP address:

  • 'NS', 'MX', 'CNAME' types DomainRecord need domain name format value
  • 'AAAA' type DomainRecord need IPV6 address format value
  • 'SRV' type DomainRecord need name.protocal format value
  • 'Explicit URL' and 'Implicit URL' need URL format value

References

Project details


Release history Release notifications | RSS feed

This version

0.4

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aliyun-ddns-client-0.4.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

aliyun_ddns_client-0.4-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file aliyun-ddns-client-0.4.tar.gz.

File metadata

  • Download URL: aliyun-ddns-client-0.4.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for aliyun-ddns-client-0.4.tar.gz
Algorithm Hash digest
SHA256 63cd45f5d5e3720436cd40b2999f7b0b288d7097adc4f5e8e5765fb932f1600e
MD5 9370f881eb9cd208c1960616eb1b4658
BLAKE2b-256 77fad7db85851710c81e56b16346478ef42e20ff7a93e8b8222893b557951317

See more details on using hashes here.

File details

Details for the file aliyun_ddns_client-0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for aliyun_ddns_client-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 96fbabff50835d1cc89f1f41f24d71d3497f6f7fb696b3497ab6d79110e5618a
MD5 73f56f9bd9e09200ac65e04455fb2682
BLAKE2b-256 feaf11cf8bae633070df8d7f8dcb9ac1bcdda7bbcb881d1f86608b0accad13f1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page