From: Remi Gacogne Date: Tue, 12 Dec 2023 15:05:41 +0000 (+0100) Subject: dnsdist: Clarify that `TCResponseAction` removes all records X-Git-Tag: dnsdist-1.9.0-alpha4~4^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F13564%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Clarify that `TCResponseAction` removes all records --- 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]]])