]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth: prevent bind-hybrid+zone-cache, fixes #10658 11068/head
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Fri, 3 Dec 2021 11:51:10 +0000 (12:51 +0100)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Fri, 3 Dec 2021 13:03:13 +0000 (14:03 +0100)
modules/bindbackend/bindbackend2.cc

index 2922798a9ed56805a8637816beb9ef314834bccd..c7a2a007ed3d4f8f0547fce6a37c25c3fae7e598 100644 (file)
@@ -745,6 +745,10 @@ Bind2Backend::Bind2Backend(const string& suffix, bool loadZones)
   setArgPrefix("bind" + suffix);
   d_logprefix = "[bind" + suffix + "backend]";
   d_hybrid = mustDo("hybrid");
+  if (d_hybrid && g_zoneCache.isEnabled()) {
+    throw PDNSException("bind-hybrid and the zone cache currently interoperate badly. Please disable the zone cache or stop using bind-hybrid");
+  }
+
   d_transaction_id = 0;
   s_ignore_broken_records = mustDo("ignore-broken-records");
   d_upgradeContent = ::arg().mustDo("upgrade-unknown-types");