From b8d7db00b1674ede13063366800a0fe0e28a6837 Mon Sep 17 00:00:00 2001 From: Phil Date: Sun, 5 Oct 2025 19:44:41 +0100 Subject: [PATCH] Updated Cloudflare Dynamic DNS updater README.md --- Dynamic_DNS/Cloudflare/README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Dynamic_DNS/Cloudflare/README.md b/Dynamic_DNS/Cloudflare/README.md index 9743a91..d680185 100644 --- a/Dynamic_DNS/Cloudflare/README.md +++ b/Dynamic_DNS/Cloudflare/README.md @@ -20,7 +20,7 @@ This script updates A records in Cloudflare with your current public IP as repor --- ## 📁 Project Structure - +``` . ├── update_cloudflare_ip.sh # Main script ├── zones/ # Folder for per-domain config files @@ -28,7 +28,7 @@ This script updates A records in Cloudflare with your current public IP as repor │ └── another_domain.env └── logs/ # Auto-created daily log files └── update_2025-10-05.log - +``` --- @@ -47,6 +47,8 @@ CLOUDFLARE_API_TOKEN="your_cloudflare_api_token" DNS_NAME="subdomain.domain.com" ``` +--- + ## ✅ Use Cloudflare API Tokens with permission: Zone → DNS → Edit for the required zone. @@ -67,6 +69,8 @@ Check logs: cat logs/update_$(date +%F).log ``` +--- + ## 🕒 Automation (Cron Example) To run the script every 10 minutes, edit your crontab: @@ -85,6 +89,7 @@ Or, if you want to keep logs automatically: */10 * * * * /path/to/update_cloudflare_ip.sh >> /path/to/logs/cron.log 2>&1 ``` +--- ## ✅ Requirements @@ -101,6 +106,8 @@ sudo apt install jq brew install jq ``` +--- + ## 🔐 Security Tip Never share your .env files or commit them to public repositories. They contain sensitive credentials. @@ -113,6 +120,7 @@ zones/*.env logs/ ``` +--- ## 🙋 FAQ