From 7f6999b76495965c7ae44d45b0c18caa8d98da56 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Wed, 1 Apr 2026 18:30:06 +0200 Subject: [PATCH] MINOR: acme: add 'dns-timeout' keyword for dns-01 challenge When using the dns-01 challenge method with "challenge-ready dns", HAProxy retries DNS resolution indefinitely at the interval set by "dns-delay". This adds a "dns-timeout" keyword to set a maximum duration for the DNS check phase (default: 600s). If the next resolution attempt would be scheduled beyond that deadline, the renewal is aborted with an explicit error message. A new "dnsstarttime" field is stored in the acme_ctx to record when DNS resolution began, used to evaluate the timeout on each retry. --- doc/configuration.txt | 12 ++++++++++++ include/haproxy/acme-t.h | 2 ++ src/acme.c | 40 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 54 insertions(+) diff --git a/doc/configuration.txt b/doc/configuration.txt index 7d6b1d86e..f579bc157 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -32320,6 +32320,18 @@ dns-delay