From: Remi Gacogne Date: Fri, 11 Jul 2025 08:05:34 +0000 (+0200) Subject: dnsdist: The ability to use RCode names in YAML will be backported to 2.0 X-Git-Tag: rec-5.4.0-alpha0~36^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f593ec1327e74c6916502c4d2ad9039e1342d7ee;p=thirdparty%2Fpdns.git dnsdist: The ability to use RCode names in YAML will be backported to 2.0 Signed-off-by: Remi Gacogne --- diff --git a/pdns/dnsdistdist/dnsdist-actions-definitions.yml b/pdns/dnsdistdist/dnsdist-actions-definitions.yml index 1a254a6e22..32e36556bf 100644 --- a/pdns/dnsdistdist/dnsdist-actions-definitions.yml +++ b/pdns/dnsdistdist/dnsdist-actions-definitions.yml @@ -53,9 +53,6 @@ - name: "ERCode" description: "Reply immediately by turning the query into a response with the specified EDNS extended rcode" skip-cpp: true - changes: - - version: 2.1.0 - content: "The ``rcode`` parameter used to be an unsigned integer and is now a string" parameters: - name: "rcode" type: "RCode" @@ -257,9 +254,6 @@ The function will be invoked in a per-thread Lua state, without access to the gl description: "Whether subsequent rules should be executed after this one" - name: "RCode" description: "Reply immediately by turning the query into a response with the specified rcode" - changes: - - version: 2.1.0 - content: "The ``rcode`` parameter used to be an unsigned integer and is now a string" skip-cpp: true parameters: - name: "rcode" diff --git a/pdns/dnsdistdist/dnsdist-selectors-definitions.yml b/pdns/dnsdistdist/dnsdist-selectors-definitions.yml index 3c189eac77..b957f42984 100644 --- a/pdns/dnsdistdist/dnsdist-selectors-definitions.yml +++ b/pdns/dnsdistdist/dnsdist-selectors-definitions.yml @@ -42,9 +42,6 @@ description: "The EDNS version to match on" - name: "ERCode" description: "Matches queries or responses with the specified rcode. The full 16bit RCode will be matched. If no EDNS OPT RR is present, the upper 12 bits are treated as 0" - changes: - - version: 2.1.0 - content: "The ``rcode`` parameter used to be an unsigned integer and is now a string" parameters: - name: "rcode" type: "RCode" @@ -349,9 +346,6 @@ Set the ``source`` parameter to ``false`` to match against destination address i description: "The qtype, as a numerical value" - name: "RCode" description: "Matches queries or responses with the specified rcode" - changes: - - version: 2.1.0 - content: "The ``rcode`` parameter used to be an unsigned integer and is now a string" parameters: - name: "rcode" type: "RCode" diff --git a/pdns/dnsdistdist/docs/upgrade_guide.rst b/pdns/dnsdistdist/docs/upgrade_guide.rst index 6c336b1f1a..b33aeeb69b 100644 --- a/pdns/dnsdistdist/docs/upgrade_guide.rst +++ b/pdns/dnsdistdist/docs/upgrade_guide.rst @@ -1,11 +1,6 @@ Upgrade Guide ============= -2.0.x to 2.1.0 --------------- - -Since 2.1.0, ``rcode``s in the ``YAML`` configuration can be specified either by their case-insensitive names (e.g. ``refused``), or by their numerical values (e.g. ``"5"``). Unfortunately in some contexts (:func:`RCodeRule`, :func:`ERCodeRule`, :func:`RCodeAction` and :func:`ERCodeAction`) this has the side-effect that a numerical value (``5``) is no longer accepted and has to be converted to a string (``"5"``). - 1.9.x to 2.0.0 --------------