aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/README.md b/README.md
index 3e1ffe8..05fc30e 100644
--- a/README.md
+++ b/README.md
@@ -62,6 +62,7 @@ Other configuration sections will be ignored.
```
usage: he-dyndns [-h] [--v4 | --v6] [--addr4 ADDR4 | --addr6 ADDR6]
[--check-url CHECK_URL] [--state-file STATE_FILE]
+ [--initialize-state]
[--keyfile KEYFILE] [--key KEY] [--timeout TIMEOUT] [--debug]
record
@@ -78,6 +79,8 @@ options:
--addr6 ADDR6 Use this IPv6 address; bypass discovery/state comparison
--check-url URL Public address service (default https://ip.mfamily.org/)
--state-file FILE Local comparison state (default /var/lib/he-dyndns/state.json)
+ --initialize-state Discover and store the current IPv4 and IPv6 addresses,
+ then exit without updating HE
--keyfile KEYFILE Key config file (default /etc/he-dyndns.conf)
--key KEY HE DDNS key for record; overrides --keyfile
--timeout SECONDS Network timeout in seconds (default 10)
@@ -89,6 +92,15 @@ options:
Returns 0 on success (successful change or no change) or 1 on failure.
Failures also include a single line error message.
+To seed both address families without reading an HE key or attempting an HE
+update:
+
+```
+he-dyndns --initialize-state home.example.com
+```
+
+Both discoveries must succeed before the state file is changed.
+
For example, two cron entries can check both families while sharing the state
file: