diff options
| author | Jason McCormick <jason@mfamily.org> | 2026-11-02 20:57:55 -0500 |
|---|---|---|
| committer | Jason McCormick <jason@mfamily.org> | 2026-11-02 20:57:55 -0500 |
| commit | ed407ffb6111e6bef9b93ebbadbfe0bbda3f6437 (patch) | |
| tree | bfefdfb305ca6aa0079a5314a7e2e6a94c11cbd0 /README.md | |
| parent | c333e4c76d42dc5c813a52b22fbe5328304a8ae8 (diff) | |
add --initialize-state
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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: |
