Simple DDNS script using Cloudflare API to update a domain's IPv4 and IPv6 addresses.
Download the ddns script (ddns.sh), download .env.example and rename it to .env (in the same folder)
Run chmod +x ddns.sh to make the script executable
Run the script
Reccomended: Add the script to your cronjobs for automatic updating.
How to get API token: Cloudflare Documentation
How to get Account and Zone ID: Cloudflare Documentation