Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Dynamic DNS implementation, that relies on

Project description


Dynamic DNS implementation, that relies on

This is a simple script that updates (and creates, if needed) an ``A`` domain record for any
```` managed domain. It is designed to be run as a hook script right after the
WAN connection.


usage: dnsimple-dyndns [-h] [-v] [-t TTL] [-i IP]

Dynamic DNS implementation, that relies on

positional arguments:
DOMAIN domain controlled by
DOMAIN-TOKEN domain API key.
RECORD-NAME name of the record to be updated.

optional arguments:
-h, --help show this help message and exit
-v, --version show program's version number and exit
-t TTL, --ttl TTL DNS record TTL, defaults to 60
-i IP, --ip IP IP address, defaults to current external address from

Running on Gentoo with OpenRC

To run this script on Gentoo with OpenRC, you should emerge the ``dnsimple-dyndns`` package:

# emerge -av dnsimple-dyndns

Then add the following function to your ``/etc/conf.d/net`` file (or edit your postup function,
if already exists):

postup() {
if [[ "${IFACE}" = "enp3s0" ]]; then
einfo "Updated DNS record: $(dnsimple-dyndns your-domain-token home)"
einfo "Ignoring interface: ${IFACE}"

Replace ``enp3s0`` with your WAN interface, ```` with your managed domain,
``your-domain-token`` with your domain token
(see and ``home`` with your
desired DNS record name.

Project details

Release history Release notifications | RSS feed

This version


Download files

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

Files for dnsimple-dyndns, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size dnsimple-dyndns-0.1.tar.gz (4.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page