]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Slightly different approach as suggested by rgacogne: if
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 7 Jan 2020 11:13:01 +0000 (12:13 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 7 Jan 2020 13:35:35 +0000 (14:35 +0100)
qname-minimization is active, force maxqperq to be >= 100.

(cherry picked from commit edea1bf7e1213f9643bd0ce29cb81d4413774d98)

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

index 0c8319e796d31efed5c6132e5b87bfb8b48f5537..c7a2598ead491663dc7fb3c70d99628b12e9af12 100644 (file)
@@ -3970,7 +3970,7 @@ static int serviceMain(int argc, char*argv[])
   if (SyncRes::s_qnameminimization) {
     // With an empty cache, a rev ipv6 query with dnssec enabled takes
     // almost 100 queries. Default maxqperq is 60.
-    SyncRes::s_maxqperq = SyncRes::s_maxqperq * 5 / 3;
+    SyncRes::s_maxqperq = std::max(SyncRes::s_maxqperq, 100);
   }
 
   SyncRes::s_hardenNXD = SyncRes::HardenNXD::DNSSEC;
index d87ae2d35512639ee4c8b79d290f856837cc640a..1ce80982fefc7f984a3827c704659b4f8b03827a 100644 (file)
@@ -915,8 +915,8 @@ Maximum number of Packet Cache entries.
 
 The maximum number of outgoing queries that will be sent out during the resolution of a single client query.
 This is used to limit endlessly chasing CNAME redirections.
-If qname-minimization is enabled, the number will be increased to
-allow for the extra queries qname-minimization generates when the cache is empty.
+If qname-minimization is enabled, the number will be forced to be 100
+at a minimum to allow for the extra queries qname-minimization generates when the cache is empty.
 
 .. _setting-max-negative-ttl: