]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: better describe the mechanics of outgoing.edns_subnet_allow_list 17334/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 12 May 2026 10:04:08 +0000 (12:04 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 12 May 2026 10:11:29 +0000 (12:11 +0200)
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
pdns/recursordist/rec-rust-lib/table.py

index 9e571d8d74e5e9d6a698d2b14063d9f732de7f20..a94f132b5003dbf9623fb6c92cf2a0762c370512 100644 (file)
@@ -955,10 +955,21 @@ effectively divides the packet cache in two when :ref:`setting-edns-padding-from
         "type": LType.ListStrings,
         "default": "",
         "help": "List of netmasks and domains that we should enable EDNS subnet for",
+        "doc-new": """
+List of netmasks and suffix-matched domains that :rfc:`EDNS Client Subnet <7871>` should be enabled for in outgoing queries.
+
+For example, with a value of ``['192.0.2.0/24', 'example.com']`` an EDNS Client Subnet option containing the address of the initial requestor (but see :ref:`setting-ecs-add-for`) will be added to an outgoing query sent to a server having an address that is in the ``192.0.2.0/24`` network, or if the name queried has a suffix match with ``example.com``.
+The initial requestor address will be truncated to 24 bits for IPv4 (see :ref:`setting-ecs-ipv4-bits`) and to 56 bits for IPv6 (see :ref:`setting-ecs-ipv6-bits`), as recommended in the privacy section of RFC 7871.
+
+
+Note that this setting describes the destination of outgoing queries, not the sources of incoming queries, nor the subnets described in the EDNS Client Subnet option.
+
+By default, this option is empty, meaning no EDNS Client Subnet information is sent.
+ """,
         "doc": """
-List of netmasks and domains that :rfc:`EDNS Client Subnet <7871>` should be enabled for in outgoing queries.
+List of netmasks and suffix-matched domains that :rfc:`EDNS Client Subnet <7871>` should be enabled for in outgoing queries.
 
-For example, an EDNS Client Subnet option containing the address of the initial requestor (but see :ref:`setting-ecs-add-for`) will be added to an outgoing query sent to server 192.0.2.1 for domain X if 192.0.2.1 matches one of the supplied netmasks, or if X matches one of the supplied domains.
+For example, with a value of ``192.0.2.0/24, example.com`` an EDNS Client Subnet option containing the address of the initial requestor (but see :ref:`setting-ecs-add-for`) will be added to an outgoing query sent to a server having an address that is in the ``192.0.2.0/24`` network, or if the name queried has a suffix match with ``example.com``.
 The initial requestor address will be truncated to 24 bits for IPv4 (see :ref:`setting-ecs-ipv4-bits`) and to 56 bits for IPv6 (see :ref:`setting-ecs-ipv6-bits`), as recommended in the privacy section of RFC 7871.