Docs: Fix minor readme wording issues
This commit is contained in:
@@ -1,10 +1,15 @@
|
|||||||
# DNS Keeper
|
# 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.
|
Mostly like DDNS but using API driven updates.
|
||||||
Currently only gandi's liveDNS API is supported.
|
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
|
## How it works
|
||||||
|
|
||||||
Every `POLL_INTERVAL` seconds, DNS Keeper will check if the IPv4 in the domain(s) is still
|
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)
|
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
|
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,
|
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 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,
|
If the returned public IP is different from the cached one,
|
||||||
DNS Keeper will check the new IP using its own socket again,
|
DNS Keeper will check the new IP using its own socket again,
|
||||||
this time without DNS.
|
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.
|
who's value match the old IP to the new IP.
|
||||||
The chached IP is only updated after the self-record is updated correctly.
|
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
|
## 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
|
```sh
|
||||||
# Dynamically linked
|
# Dynamically linked
|
||||||
@@ -75,6 +80,6 @@ The [Dockerfile](./Dockerfile) in this repo builds a minimal image with just the
|
|||||||
docker build -t dns-keeper .
|
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.
|
> 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.
|
> `docker exec` will not work for debugging.
|
||||||
Reference in New Issue
Block a user