No description
| src | ||
| .gitignore | ||
| auth.env.example | ||
| Cargo.lock | ||
| Cargo.toml | ||
| LICENSE | ||
| README.md | ||
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