From 87a4484d6339ed74ec399ac32c00ffb4735eea4a Mon Sep 17 00:00:00 2001 From: Phil Date: Fri, 16 Oct 2026 23:23:44 +0100 Subject: [PATCH] Updated README --- Dynamic_DNS/Dynamic_DNS_Cloudflare/README.md | 30 ++++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Dynamic_DNS/Dynamic_DNS_Cloudflare/README.md b/Dynamic_DNS/Dynamic_DNS_Cloudflare/README.md index d680185..400efa6 100644 --- a/Dynamic_DNS/Dynamic_DNS_Cloudflare/README.md +++ b/Dynamic_DNS/Dynamic_DNS_Cloudflare/README.md @@ -1,4 +1,4 @@ -# ๐Ÿ” Dynamic DNS Updater for Cloudflare with Mullvad IP +# Dynamic DNS Updater for Cloudflare with Mullvad IP This script updates A records in Cloudflare with your current public IP as reported by [Mullvad](https://mullvad.net)'s IP check service. It supports: @@ -9,17 +9,17 @@ This script updates A records in Cloudflare with your current public IP as repor --- -## ๐Ÿš€ Features +## Features -- โœ… Fetches current public IP from Mullvad API (`https://ipv4.am.i.mullvad.net/json`) -- โœ… Uses `.env` files to manage multiple Cloudflare DNS records -- โœ… Supports **API Tokens** (safer than global keys) -- โœ… Skips unnecessary updates if IP hasn't changed -- โœ… Logs every run to `logs/update_YYYY-MM-DD.log` +- Fetches current public IP from Mullvad API (`https://ipv4.am.i.mullvad.net/json`) +- Uses `.env` files to manage multiple Cloudflare DNS records +- Supports **API Tokens** (safer than global keys) +- Skips unnecessary updates if IP hasn't changed +- Logs every run to `logs/update_YYYY-MM-DD.log` --- -## ๐Ÿ“ Project Structure +## Project Structure ``` . โ”œโ”€โ”€ update_cloudflare_ip.sh # Main script @@ -33,7 +33,7 @@ This script updates A records in Cloudflare with your current public IP as repor --- -## โš™๏ธ Configuration +## Configuration 1. Create a `zones/` folder (already included in repo). 2. Add one `.env` file per domain/zone, named descriptively. Example: @@ -49,10 +49,10 @@ DNS_NAME="subdomain.domain.com" --- -## โœ… Use Cloudflare API Tokens with permission: +## Use Cloudflare API Tokens with permission: Zone โ†’ DNS โ†’ Edit for the required zone. -๐Ÿงช Usage +Usage Make the script executable: ``` @@ -71,7 +71,7 @@ cat logs/update_$(date +%F).log --- -## ๐Ÿ•’ Automation (Cron Example) +## Automation (Cron Example) To run the script every 10 minutes, edit your crontab: ``` @@ -91,7 +91,7 @@ Or, if you want to keep logs automatically: --- -## โœ… Requirements +## Requirements * bash (scripted for Linux/macOS) * curl @@ -108,7 +108,7 @@ brew install jq --- -## ๐Ÿ” Security Tip +## Security Tip Never share your .env files or commit them to public repositories. They contain sensitive credentials. @@ -122,7 +122,7 @@ logs/ --- -## ๐Ÿ™‹ FAQ +## FAQ Q: What happens if the IP hasn't changed? A: The script detects it and skips the update.