No description
Find a file
2025-10-13 12:35:29 -04:00
src commit 2025-10-13 12:35:29 -04:00
.gitignore commit 2025-10-13 12:35:29 -04:00
auth.env.example commit 2025-10-13 11:57:48 -04:00
Cargo.lock commit 2025-10-13 12:35:29 -04:00
Cargo.toml commit 2025-10-13 12:35:29 -04:00
LICENSE commit 2025-10-13 11:57:48 -04:00
README.md commit 2025-10-13 11:57:48 -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