Skip to content

SpareSimian/LinodeDDNS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LinodeDDNS

Update dynamic DNS records at Linode.com using the Linode v4 Python library.

Usage: linode-ddns.py foo.example.com

Sets the A and AAAA records for foo in example.com.

Installation

Install the Linode API:

pip3 install linode_api4

Use the Linode control panel to create a personal access token. The token should have the domain write privilege. The script assumes the Linode personal access token can be found in file ~/.ssh/linode_api_token_ddns.

systemd installation and configuration

Copy or link the systemd unit files to /etc/systemd/system. The systemd unit files assume the script is cloned to /usr/local/bin/LinodeDDNS. Edit the service unit with "systemctl edit linode-ddns.service" to set the desired hostname record to update. This will create an override file without changing the original file.

Implementation notes

A hack is needed to force use of IPv4 or IPv6 connections:

psf/requests#1691 https://stackoverflow.com/questions/33046733/force-requests-to-use-ipv4-ipv6

About

Dynamic DNS for domain records hosted at Linode

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages