Kevin De Baerdemaeker

Dynamic IP Addresses with Cloudflare

Modified 2022-05-17

https://developers.cloudflare.com/dns/manage-dns-records/how-to/managing-dynamic-ip-addresses/

Add a scoped API Token

I prefer to scope of the API tokens as much as possible, which is why opt to scope add read/write permissions for DNS of a specific zone.

Setting up the script

Let the script run in the background, and make sure Cloudflare proxy status is set to DNS only.

crontab -e
systemctl restart cron