Skip to main content

A dynamic DNS client for Aliyun written in pure Python

Project description

Aliyun DDNS

A dynamic DNS client for Aliyun written in pure Python.

Install

Download and install the aliyunddns package for Python.

pip install aliyunddns

Usage:

There are two ways to pass arguments to the program:

  1. Passing a config file path with -c argument.
  2. Specify information using the command line arguments.

Note: when passing a config file, all the other arguments will be ignored.

Here are the full arguments list:

usage: ddns.py [-h] [-c CONFIG] [--access-key ACCESS_KEY]
               [--secret-key SECRET_KEY] [--domain DOMAIN]
               [--host-record HOST_RECORD] [--line LINE] [--ttl TTL]
               [--log-file LOG_FILE]

Aliyun DDNS Client

optional arguments:
  -h, --help            show this help message and exit
  -c CONFIG             config file path (ignore other arguments)
  --access-key ACCESS_KEY
                        access Key Id
  --secret-key SECRET_KEY
                        secret Key
  --domain DOMAIN       domain name
  --host-record HOST_RECORD
                        host record
  --line LINE           line <default|telecom|unicom|mobile|oversea|edu|drpeng
                        |btvn>
  --ttl TTL             TTL
  --log-file LOG_FILE   log file path

Config

The config file format is JSON. Create a config file with extension .json and convert the dash in command line arguments to underline.

For examples:

{
  "access_key": "abc",
  "secret_key": "abc",
  "domain": "example.com",
  "host_record": "@",
  "line": "default",
  "ttl": 600,
  "log_file": "/var/log/ddns/ddns.log"
}

Examples

  1. Specify a config file.
aliyunddns -c config.json
  1. Using command line arguments.
aliyunddns --access-key=abc --secret-key=abc --domain=example.com --log-file=/var/log/ddns/ddns.log

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

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

Source Distribution

aliyunddns-1.0.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file aliyunddns-1.0.tar.gz.

File metadata

  • Download URL: aliyunddns-1.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for aliyunddns-1.0.tar.gz
Algorithm Hash digest
SHA256 92cdba7e898efa46c3175e89e9be42540c437a3c11651f1699d6ddf8942d1998
MD5 1cb719eb18ba9ac1ba2bc4728157e195
BLAKE2b-256 4d89aa3ad1d517ca5e4188ef56e175371c77622197270692b7db4773eeb92441

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