From cc1b38389babca781bf20cdbfc4e379c5cd3a57c Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Tue, 12 Dec 2023 16:05:41 +0100 Subject: [PATCH] dnsdist: Clarify that `TCResponseAction` removes all records --- pdns/dnsdistdist/docs/reference/constants.rst | 2 +- pdns/dnsdistdist/docs/rules-actions.rst | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pdns/dnsdistdist/docs/reference/constants.rst b/pdns/dnsdistdist/docs/reference/constants.rst index da6dfc9b66..576acce0fa 100755 --- a/pdns/dnsdistdist/docs/reference/constants.rst +++ b/pdns/dnsdistdist/docs/reference/constants.rst @@ -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 diff --git a/pdns/dnsdistdist/docs/rules-actions.rst b/pdns/dnsdistdist/docs/rules-actions.rst index bfd59b4478..a2bbbb02ec 100644 --- a/pdns/dnsdistdist/docs/rules-actions.rst +++ b/pdns/dnsdistdist/docs/rules-actions.rst @@ -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]]]) -- 2.47.2