]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: update docs for `DNSQuestion::setExtendedDNSError` 16690/head
authorEnsar Sarajčić <dev@ensarsarajcic.com>
Tue, 30 Dec 2025 12:12:39 +0000 (13:12 +0100)
committerEnsar Sarajčić <dev@ensarsarajcic.com>
Tue, 30 Dec 2025 12:12:39 +0000 (13:12 +0100)
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ć <dev@ensarsarajcic.com>
pdns/dnsdistdist/docs/reference/dq.rst

index b7a35c2301b2130e14e57c6e732788c729aac69f..dfdbfa89b9eda1dc4c684ef57424a2b802c18025 100644 (file)
@@ -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="")