Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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

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.

Files for aliyunddns, version 1.0
Filename, size File type Python version Upload date Hashes
Filename, size aliyunddns-1.0.tar.gz (4.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page