Skip to main content

Dynamically set the IP of Linode DNS records

Project description

linode-dynamic-dns

PyPI - Version

Update Linode DNS records with your local IPv4 and IPv6 addresses.

Environment Variables

Name Description
IPV4_ADDRESS IPv4 address to use in the A record
IPV4_DISABLE Disable IPv4 updates.
IPV4_URL The URL which returns your local IPv4 address (default https://ipv4.icanhazip.com/)
IPV6_ADDRESS IPv6 address to use in the A record
IPV6_DISABLE Disable IPv6 updates.
IPV6_URL The URL which returns your local IPv6 address (default https://ipv6.icanhazip.com/)
LINODE_ACCESS_TOKEN Your Linode API access token.
LINODE_DNS_DOMAIN The domain the host is a part of.
LINODE_DNS_HOSTNAME The host record to update. set to empty string for the base domain, * for wildcard subdomains (default is empty)
LINODE_DNS_TTL Record TTL in seconds (default 300)
UPDATE_INTERVAL Run continuously and update the DNS record every UPDATE_INTERVAL-seconds (default disabled)

Installation

Systemd Service

Example files for a systemd service and timer are in the systemd directory.

  • Copy the .service and .timer files into /etc/systemd/system and the .conf into /etc.
  • Edit the config file as required.
  • Run the following to enable the service:
systemctl daemon-reload
systemctl enable linode-dynamic-dns.timer
systemctl start linode-dynamic-dns.timer
systemctl start linode-dynamic-dns.service

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

linode_dynamic_dns-0.7.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

linode_dynamic_dns-0.7.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file linode_dynamic_dns-0.7.0.tar.gz.

File metadata

  • Download URL: linode_dynamic_dns-0.7.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.7

File hashes

Hashes for linode_dynamic_dns-0.7.0.tar.gz
Algorithm Hash digest
SHA256 9348732573146142c581b91def76f8e6404d658b431042dbb8d426db40f5fd8f
MD5 f9f65e14e62d15862e24221f78552f83
BLAKE2b-256 9749f44d5b43870a1eadd69291ab9757f09d661e7ddcc456f30fb9782552d1f5

See more details on using hashes here.

File details

Details for the file linode_dynamic_dns-0.7.0-py3-none-any.whl.

File metadata

File hashes

Hashes for linode_dynamic_dns-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 af6eed346775fd9bd63b0b2967023ca653c04ae89ea95fdc49bd179e4563f7e3
MD5 d107def883698ded3cb6bccaeeb16ead
BLAKE2b-256 b535e865e88f934004f476ee266a7acd8b5dc63b9744367966960b387e38bb5b

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