Make fast-retry more configurable and do exponential backoff.

This commit is contained in:
Simon Kelley
2022-09-14 16:16:08 +01:00
parent 8f2d432799
commit 9a9f6e147c
5 changed files with 40 additions and 18 deletions

View File

@@ -105,11 +105,14 @@ Dnsmasq limits the value of this option to one hour, unless recompiled.
.B --auth-ttl=<time>
Set the TTL value returned in answers from the authoritative server.
.TP
.B --fast-dns-retry=<time in ms>
.B --fast-dns-retry=[<initial retry delay in ms>[,<time to continue retries in ms>]]
Under normal circumstances, dnsmasq relies on DNS clients to do retries; it
does not generate timeouts itself. Setting this option
instructs dnsmasq to generate its own retries after the specified time, which
must be greater than 500ms. Using this option increases memory usage and
instructs dnsmasq to generate its own retries starting after a delay
which defaults to 1000ms. If the second parameter is given this controls
how long the retries will continue for
otherwise this defaults to 10000ms. Retries are repeated with exponential
backoff. Using this option increases memory usage and
network bandwidth.
.TP
.B \-k, --keep-in-foreground