This script will check if external IP is changed or not and will update the external IP of A or AAAA record in Cloudflare DNS using API token/ global API key method.
This is a bash script to act as a Cloudflare DDNS client, useful replacement for ddclient.
- Put the
cfupdaterfile to/usr/local/bin chmod +x /usr/local/bin/cfupdater- Create a systemd service unit at
/etc/systemd/system/, thecfupdate.serviceis shown as an example. - Create a systemd timer unit at the same location of the service unit, the
cfupdate.timeris shown as an example.