wacky'6 second iteration for CloudFlare DDNS.
Key features:
- IPv6 DDNS support
- Network interface address detection
- Daemon (as a service) or One-Shot (as a command line tool)
- [ More to come ]
CF_KEY=abcdef [email protected] cf-ddns -6 hostname.example.com -D
CF_KEY
is the CloudFlare access keyCF_EMAIL
is the CloudFlare account email address-6 hostname.example.com
instructs the program to set DNS AAAA record for hostname.example.com-D
instructs the progrma to run like a command line tool, instead of going into daemon mode- By default, the program detects IPv6 address by looking at the network interface IP addresses
- Download (or build) the binary, put it to
/usr/local/bin/cf-ddns
- Add executable permission
chmod +x /usr/local/bin/cf-ddns
- Modify and add the sample systemd unit file to OS
- Sample file:
etc/systemd/system/cf-ddns.service
- Set
CF_KEY
andCF_EMAIL
environment variable to your Cloudflare access key and email address - Set desired hostname (
V6_HOST
)
- Sample file:
- Enable the cf-ddns service in systemd