From 7d8981e8fc9507036f7873656531092559685a54 Mon Sep 17 00:00:00 2001 From: FoxyHunter Date: Mon, 31 Aug 2026 08:27:24 +0000 Subject: [PATCH] Docs: Fix minor readme wording issues --- README.md | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 793bf8a..42c9528 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,15 @@ # DNS Keeper -A small but robust program to keep DNS records updated with your public _(external)_ IPv4 address. +A small program to keep DNS records updated with your public _(external)_ IPv4 address. Mostly like DDNS but using API driven updates. Currently only gandi's liveDNS API is supported. +## Why? + +I wrote this mainly for my own infrastructure as I was not satisfied with the existing solutions. +I built this to be more redundant and less dependent on spamming public IP API endpoints. + ## How it works Every `POLL_INTERVAL` seconds, DNS Keeper will check if the IPv4 in the domain(s) is still @@ -19,16 +24,16 @@ valid by seeing if `DNS_KEEPER_RECORD`.`DNS_KEEPER_DOMAIN` still points to itsel If DNS Keeper fails to get a response from itself for [3](./src/selfcheck.h#6) times it will check it's cached IP against the response of multiple external -[services](./src/ipcheck.c#8) that return your public IPv4. +[services](./src/ipcheck.c#8) that return your public IPv4 address. If the returned public IP is the same as the cached one, -DNS Keepr will see that as drift. +DNS Keeper will assume the reason for failed response is drift. If this happens too much it will revalidate its own cache against the self-record. If the returned public IP is different from the cached one, DNS Keeper will check the new IP using its own socket again, this time without DNS. -If it proves to be correct it will update all A record of the specified `DOMAINS` +If it proves to be correct it will update all A records of the `DOMAINS` who's value match the old IP to the new IP. The chached IP is only updated after the self-record is updated correctly. @@ -52,7 +57,7 @@ The chached IP is only updated after the self-record is updated correctly. ## Setup -You can the binary using the dynamically linked or static using make. +You can build the binary dynamically linked or static using make. ```sh # Dynamically linked @@ -75,6 +80,6 @@ The [Dockerfile](./Dockerfile) in this repo builds a minimal image with just the docker build -t dns-keeper . ``` -> [!TIP] +> [!NOTE] > Because the image is just the c binary with ca certs, there is no shell to exec into. > `docker exec` will not work for debugging. \ No newline at end of file