From 76a6e60bee5531742cfb0e1cbde37f1511f154da Mon Sep 17 00:00:00 2001 From: Phillip Nicholas Thern Date: Tue, 16 Aug 2022 23:55:27 +0000 Subject: [PATCH] Update 'README.md' Signed-off-by: Phillip Nicholas Thern --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 840474d..9a53948 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,16 @@ # dyndns -Script to update dynamic DNS on Cloudflare, only tested with Fritz.box \ No newline at end of file +Script to update dynamic DNS on Cloudflare, only tested with Fritz.box + +in Fritz.box Internet/Freigaben choose DynDNS, select "custom", and enter the update URL like this: + +http://ip-of-machine-running-script-in-your-network:5555/?d=&ip= + +as username, use your cloudflare email address, and as your password, your Cloudflare API key. I recommend a subdomain of your main domain name looking like this: ddns[x].example.tld, x being an optional iterator if you are supplying multiple routers with dynamic DNS + +since your data will be submitted in the clear, DO NOT run this script on a server outside of your own network (unless you really know what you're doing). I use a raspberry pi for this. + +When your Router's IP changes, it will notify the script of its new data. The Script will query Cloudflare for the List of Zones to get the id of the zone in which your dynamic dns domain lies, and then it will search this zone for the domain record you have designated as dynamic. After these two steps have succeeded, it will either create a new zone record if there is no entry matching the designated domain with an A record containing the new IP of your router, or, if a record exists of type A (likely created by the prior process) or a CNAME (likely designated when you used a 3rd party dynamic DNS), it will change the A content (and also change the type to A if it was CNAME) + +since my ISP only supports ipv4 on my plan, I have not implemented ipv6. +