]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Clarify that `TCResponseAction` removes all records 13564/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 12 Dec 2023 15:05:41 +0000 (16:05 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 12 Dec 2023 15:07:43 +0000 (16:07 +0100)
pdns/dnsdistdist/docs/reference/constants.rst
pdns/dnsdistdist/docs/rules-actions.rst

index da6dfc9b66335f03fa91915106a73b671f2e743f..576acce0fae07faef53a5332154fffcd9d27a729 100755 (executable)
@@ -165,4 +165,4 @@ These constants represent an Action that can be returned from :func:`LuaResponse
  * ``DNSResponseAction.HeaderModify``: indicate that the query has been turned into a response
  * ``DNSResponseAction.None``: continue to the next rule
  * ``DNSResponseAction.ServFail``: return a response with a ServFail rcode
- * ``DNSResponseAction.Truncate``: truncate the response
+ * ``DNSResponseAction.Truncate``: truncate the response, removing all records from the answer, authority and additional sections if any
index bfd59b44785c42ab116480f3b12d5eee645f9e17..a2bbbb02ec43bcaba30dc36191778b489a8d82a3 100644 (file)
@@ -1901,6 +1901,7 @@ The following actions exist.
   .. versionadded:: 1.9.0
 
   Truncate an existing answer, to force the client to TCP. Only applied to answers that will be sent to the client over TCP.
+  In addition to the TC bit being set, all records are removed from the answer, authority and additional sections.
 
 .. function:: TeeAction(remote[, addECS[, local [, addProxyProtocol]]])