Skip to main content

A Python module to renew public IP address associated with a Dynu domain.

Project description

GitHub release (latest by date) PyPI PyPI - Status

PyPI - Python Version PyPI - Implementation

GitHub license

GitHub issues

dynu-renew

A Python module to renew public IP address associated with a Dynu domain.

This Python module, through the "renew_domains_ip" function, retrieves the current public IP address, stores it in a local SQLite database, and communicates it to Dynu.

Quick Start

First you need to download the "dynu-renew" package, for example via pip:

pip install dynu-renew

At this point you need to create the "instance" folder:

mkdir instance

And create the "config.py" file inside, taking inspiration from what you can find inside the "configs" folder of this repo.

In the "DYNU_PASSWORD" field I recommend you enter the Dynu IP Update Password instead of the Dynu account access password, because the Dynu IP Update Password has limited privileges.

Finally, to start it via CLI simply send the command:

python -m dynu_renew

If the output is empty, then the IP renewal was successful, otherwise the error received from the Dynu API is returned.

I recommend you add scheduled execution of dynu-renew by adding it to the crontab, as follows:

crontab -e

Then inserting a new line like this:

*/5 * * * * python -m dynu_renew >> ~/dynu_renew.log 2>&1

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

dynu_renew-1.0.3.tar.gz (7.1 kB view hashes)

Uploaded Source

Built Distribution

dynu_renew-1.0.3-py3-none-any.whl (8.0 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