From c4156afde9ce73681b7257f7c9c0220baf79a313 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Tue, 30 Dec 2025 13:12:39 +0100 Subject: [PATCH] dnsdist: update docs for `DNSQuestion::setExtendedDNSError` MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit PR #16680 introduced new parameter for `setExtendedDNSError` - `clearExistingEntries`. Docs were added for actions, but not for the lua function, which was changed together with the actions. Related: https://github.com/PowerDNS/pdns/pull/16680 Signed-off-by: Ensar Sarajčić --- pdns/dnsdistdist/docs/reference/dq.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pdns/dnsdistdist/docs/reference/dq.rst b/pdns/dnsdistdist/docs/reference/dq.rst index b7a35c2301..dfdbfa89b9 100644 --- a/pdns/dnsdistdist/docs/reference/dq.rst +++ b/pdns/dnsdistdist/docs/reference/dq.rst @@ -315,14 +315,18 @@ This state can be modified from the various hooks. :param int code: The EDNS option code :param string data: The EDNS option raw data - .. method:: DNSQuestion:setExtendedDNSError(infoCode [, extraText]) + .. method:: DNSQuestion:setExtendedDNSError(infoCode [, extraText [, clearExistingEntries]]) .. versionadded:: 1.9.0 + .. versionchanged:: 2.1.0 + ``clearExistingEntries`` optional parameter added. + Set an Extended DNS Error status that will be added to the response corresponding to the current query. :param int infoCode: The EDNS Extended DNS Error code :param string extraText: The optional EDNS Extended DNS Error extra text + :param bool clearExistingEntries: Whether to clear existing EDNS Extended DNS Error codes, default true .. method:: DNSQuestion:setHTTPResponse(status, body, contentType="") -- 2.47.3