Skip to main content

A dynamic DNS update client

Project description

Dynamic DNS Updater

version py whl license

DDNSU is a Python 3 script for updating dynamic DNS records. It can keep track of your last known IP address and detect your current one to determine if updating records is necessary. Currently, only Namecheap's DDNS is supported.

Installation

The recommended way to install ddnsu is to use pip and install from PyPI:

python -m pip install ddnsu

You can also install from Wheel files available here:

python -m pip install './ddnsu-0.0.0.whl'

Usage

Once installed, the ddnsu command should be available from the command line. At minimum, the domain and hosts to be updated and the DDNS password must be specified. This can be done via command line options:

ddnsu --domain example.com --hosts www forum blog --pswd 1234

Alternatively, they can be specified in a JSON config file named ddnsu_config.json placed in the working directory:

{
    "schema": 1,
    "config": {
        "pswd": "1234",
        "domain": "example.com",
        "hosts": [
            "www",
            "forum",
            "blog"
        ]
    }
}
# `domain`, `hosts`, and `pswd` supplied by config file
ddnsu --log_level debug

All options except --working_dir and --log_level can be used in the config file instead of the command line. If an option is used in both the command line and the config file, the command line value takes precedence.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Project details


Download files

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

Source Distribution

ddnsu-0.1.0.tar.gz (6.8 kB view hashes)

Uploaded Source

Built Distribution

ddnsu-0.1.0-py3-none-any.whl (7.1 kB view hashes)

Uploaded Python 3

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