From 607be52e43821afdfc885d984a059295d5bf15be Mon Sep 17 00:00:00 2001 From: phonedph1 <20867105+phonedph1@users.noreply.github.com> Date: Thu, 12 Oct 2023 09:29:09 -0600 Subject: [PATCH] Update dq.rst --- pdns/dnsdistdist/docs/reference/dq.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pdns/dnsdistdist/docs/reference/dq.rst b/pdns/dnsdistdist/docs/reference/dq.rst index 08bb84cde7..33e209e553 100644 --- a/pdns/dnsdistdist/docs/reference/dq.rst +++ b/pdns/dnsdistdist/docs/reference/dq.rst @@ -463,7 +463,8 @@ DNSResponse object return DNSAction.None end function restartOnServFail(dr) - if dr.rcode == DNSRCode.SERVFAIL then + -- if the query was SERVFAIL and not already tried on the restarted pool + if dr.rcode == DNSRCode.SERVFAIL and dr.pool ~= 'restarted' then -- assign this query to a new pool dr.pool = 'restarted' -- discard the received response and -- 2.47.2