]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Change spoof-nearmiss-max default to 1.
authorOtto <otto.moerbeek@open-xchange.com>
Wed, 10 Feb 2021 14:10:18 +0000 (15:10 +0100)
committerOtto <otto.moerbeek@open-xchange.com>
Wed, 10 Feb 2021 14:10:18 +0000 (15:10 +0100)
Fixes #9845.

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

index 3e4348caff457ea3fff97bc1b5f072bf6bf42b29..23cbb4169a3eec22fd099aa1ad1ec494bc997def 100644 (file)
@@ -5374,7 +5374,7 @@ int main(int argc, char **argv)
     ::arg().set("dont-query", "If set, do not query these netmasks for DNS data")=DONT_QUERY;
     ::arg().set("max-tcp-per-client", "If set, maximum number of TCP sessions per client (IP address)")="0";
     ::arg().set("max-tcp-queries-per-connection", "If set, maximum number of TCP queries in a TCP connection")="0";
-    ::arg().set("spoof-nearmiss-max", "If non-zero, assume spoofing after this many near misses")="20";
+    ::arg().set("spoof-nearmiss-max", "If non-zero, assume spoofing after this many near misses")="1";
     ::arg().set("single-socket", "If set, only use a single socket for outgoing queries")="off";
     ::arg().set("auth-zones", "Zones for which we have authoritative data, comma separated domain=file pairs ")="";
     ::arg().set("lua-config-file", "More powerful configuration options")="";
index acb792ed09de843a809dd198763b1f34568d882e..cb4f4c83810bb843083c94cb71d5762f3363b16f 100644 (file)
@@ -1612,8 +1612,11 @@ Owner and group can be specified by name, mode is in octal.
 
 ``spoof-nearmiss-max``
 ----------------------
+.. versionchanged:: 4.5.0
+  Old versions used default 20.
+
 -  Integer
--  Default: 20
+-  Default: 1
 
 If set to non-zero, PowerDNS will assume it is being spoofed after seeing this many answers with the wrong id.
 
index f5f82935e414cdcbe863c1b2a79b2a922e69c057..b60b479fd4ee27dab0e8ae4f9983380dce5c4f20 100644 (file)
@@ -29,7 +29,7 @@ trouble.
 Deprecated and changed settings
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - The :ref:`setting-minimum-ttl-override` and :ref:`setting-ecs-minimum-ttl-override` defaults have ben changed from 0 to 1.
-
+- The :ref:`setting-spoof-nearmiss-max` default has been changed from 20 to 1.
 
 4.3.x to 4.4.0
 --------------