This is a bash script to act as a Cloudflare DDNS client, useful replacement for ddclient.
- Put the
cfupdater
file 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.
The default cfupdate.timer
is set to execute the script every minute.
Please keep in mind not to spam the API or you will be rate limited.
A quote from Cloudflare FAQ:
All calls through the Cloudflare Client API are rate-limited to 1200 every 5 minutes.
-- https://support.cloudflare.com/hc/en-us/articles/200171456