No description
Find a file
2025-10-13 10:04:03 -04:00
.gitignore commit 2025-05-08 14:53:41 -04:00
auth.env.example commit 2025-05-08 14:53:41 -04:00
ddns-v4.sh commit 2025-10-13 10:04:03 -04:00
ddns-v6.sh commit 2025-10-13 10:04:03 -04:00
LICENSE commit 2025-05-08 14:53:41 -04:00
README.md commit 2025-05-08 14:58:03 -04:00

Cloudflare-ddns

Set of bash scipts to update ddns with cloudflare's API

usage:

git clone https://codeberg.org/firebadnofire/cloudflare-ddns.git
cd cloudflare-ddns
cp auth.env.example ~/.auth.env
nano ~/.auth.env

Set your credentials and the name you want to update, and you're ready to go. Just set cron to execute them at your desired time. The following crontab line will run every 5 minutes:

*/5 * * * * /home/cloudflare/cloudflare-ddns/ddns-v4.sh >/dev/null 2>&1

You can find the logs in ~/.ddns.log

ddns-v4.sh will update the A record of a target on run

ddns-v6.sh will update the AAAA record of a target on run