This is a bash script to act as a Cloudflare DDNS client, useful replacement for ddclient.
- Put the
cfupdater
files to/usr/local/bin
chmod +x /usr/local/bin/cfupdater
- Create a systemd service unit at
/etc/systemd/system/
, thecfupdate.service
is shown as an example. - Create a systemd timer unit at the same location of the service unit, the
cfupdate.timer
is shown as an example. sudo systemctl enable cfupdate.timer
sudo systemctl start cfupdate.timer
An advantage of using this script over others is that this one supports usage of Cloudflare API tokens.
The default cfupdate.timer
is set to execute the script hourly.
hi,
how can we make this work with more than 1 dns record (subdomains, some proxied, some not, etc.)?