From: Ensar Sarajčić Date: Tue, 30 Dec 2025 12:12:39 +0000 (+0100) Subject: dnsdist: update docs for `DNSQuestion::setExtendedDNSError` X-Git-Tag: rec-5.4.0-beta1~67^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F16690%2Fhead;p=thirdparty%2Fpdns.git dnsdist: update docs for `DNSQuestion::setExtendedDNSError` 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ć --- 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="")