/linode-dynamic-dns

Dynamically set the IP of Linode DNS records

Primary LanguagePythonMIT LicenseMIT

linode-dynamic-dns

Version License

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

Environment Variables

Name Description
HOST The host record to update.
DOMAIN The domain the host is a part of.
TOKEN Your Linode API access token.
IPV4_URL The URL which returns your local IPv4 address (default https://ipv4.icanhazip.com/)
IPV6_URL The URL which returns your local IPv6 address (default https://ipv6.icanhazip.com/)

Installation

Systemd Service

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

  1. Copy the .service and .timer files into /etc/systemd/system and the .conf into /etc.

  2. Edit the config file as required.

  3. 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