]> git.kaiwu.me - haproxy.git/commitdiff
MINOR: acme: set the default dns-delay to 30s
authorWilliam Lallemand <wlallemand@haproxy.com>
Thu, 2 Apr 2026 11:29:43 +0000 (13:29 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Thu, 2 Apr 2026 11:47:13 +0000 (13:47 +0200)
Set the default dns-delay to 30s so it can be more efficient with fast
DNS providers. The dns-timeout is set to 600s by default so this does
not have a big impact, it will only do more check and allow the
challenge to be started more quickly.

doc/configuration.txt
src/acme.c

index f579bc157957b2c260833d85de2da4c12a671a4f..f4d57874b0f2cae270c7b60df7f077b32328d3e3 100644 (file)
@@ -32314,7 +32314,7 @@ directory <string>
 dns-delay <time>
   When "challenge-ready" includes "dns", configure the delay before the first
   DNS resolution attempt and between retries. The value is a time expressed in
-  HAProxy time format (e.g. "5m", "300s"). Default is 300 seconds.
+  HAProxy time format (e.g. "5m", "300s"). Default is 30 seconds.
 
   Note that the resolution goes through the configured "default" resolvers
   section, not the authoritative name servers. Results may therefore still be
index a1e88250f576e808c5ae14af5399bd59cafbebc3..bb5d86aa7a16d3074b767699f20676d001165bc3 100644 (file)
@@ -197,7 +197,7 @@ struct acme_cfg *new_acme_cfg(const char *name)
        ret->linenum = 0;
 
        ret->challenge = strdup("http-01"); /* default value */
-       ret->dns_delay = 300; /* default DNS re-trigger delay in seconds */
+       ret->dns_delay = 30; /* default DNS re-trigger delay in seconds */
        ret->dns_timeout = 600; /* default DNS retry timeout */
 
        /* The default generated keys are EC-384 */