]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: Fix the EDNS padding documentation
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 8 Mar 2021 16:13:30 +0000 (17:13 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 8 Mar 2021 16:13:30 +0000 (17:13 +0100)
We actually only pad response to queries coming from the whitelist,
and then you can configure whether we add padding to queries with
the EDNS padding option or not.

pdns/pdns_recursor.cc
pdns/recursordist/docs/settings.rst

index c2288b253abe7c02c23de383bf5c883e3fc453e1..b5feec9cf2b8f8ff550284ae7f4b43f332d9c59a 100644 (file)
@@ -5602,8 +5602,8 @@ int main(int argc, char **argv)
 
     ::arg().setSwitch("aggressive-nsec-cache-size", "The number of records to cache in the aggressive cache. If set to a value greater than 0, and DNSSEC validation is enabled, the recursor will cache NSEC and NSEC3 records to generate negative answers, as defined in rfc8198")="100000";
 
-    ::arg().set("edns-padding-from", "List of netmasks (proxy IP in case of XPF or proxy-protocol presence, client IP otherwise) for which EDNS padding will be enabled in responses to queries containing the EDNS padding option, provided that 'edns-padding-mode' is set")="";
-    ::arg().set("edns-padding-mode", "Whether to add EDNS padding to all responses ('always') or only to responses for queries containing the EDNS padding option and coming from 'edns-padding-from' sources ('padded-queries-only', the default)")="padded-queries-only";
+    ::arg().set("edns-padding-from", "List of netmasks (proxy IP in case of XPF or proxy-protocol presence, client IP otherwise) for which EDNS padding will be enabled in responses, provided that 'edns-padding-mode' is set")="";
+    ::arg().set("edns-padding-mode", "Whether to add EDNS padding to all responses ('always') or only to responses for queries containing the EDNS padding option ('padded-queries-only', the default). In both modes, padding will only be added to responses for queries coming from `edns-padding-from`_ sources")="padded-queries-only";
     ::arg().set("edns-padding-tag", "Packetcache tag associated to responses sent with EDNS padding, to prevent sending these to non-whitelisted clients.")="7830";
 
     ::arg().setCmd("help","Provide a helpful message");
index f47ec3be69282721ffd6278e4e56e7024952e95f..65c4977a4e0a42e7e512a5dccf8d21933746343d 100644 (file)
@@ -619,7 +619,7 @@ Lower this if you experience timeouts.
 -  Comma separated list of netmasks
 -  Default: (none)
 
-List of netmasks (proxy IP in case of XPF or proxy-protocol presence, client IP otherwise) for which EDNS padding will be enabled in responses to queries containing the EDNS padding option, provided that `edns-padding-mode`_ is set.
+List of netmasks (proxy IP in case of XPF or proxy-protocol presence, client IP otherwise) for which EDNS padding will be enabled in responses, provided that `edns-padding-mode`_ is set.
 
 .. _setting-edns-padding-mode:
 
@@ -630,7 +630,8 @@ List of netmasks (proxy IP in case of XPF or proxy-protocol presence, client IP
 -  One of ``always``, ``padded-queries-only``, String
 -  Default: ``padded-queries-only``
 
-Whether to add EDNS padding to all responses (``always``) or only to responses for queries containing the EDNS padding option and coming from `edns-padding-from`_ sources (``padded-queries-only``, the default).
+Whether to add EDNS padding to all responses (``always``) or only to responses for queries containing the EDNS padding option (``padded-queries-only``, the default).
+In both modes, padding will only be added to responses for queries coming from `edns-padding-from`_ sources.
 
 .. _setting-edns-padding-tag: