]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Ensure serve-rfc1918 is enabled when doing serve-rfc6303 14693/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 7 Oct 2024 10:26:11 +0000 (12:26 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 7 Oct 2024 10:26:11 +0000 (12:26 +0200)
pdns/recursordist/reczones.cc
pdns/recursordist/settings/table.py

index c54f537ad371880707247fedde044a37690a9782..1fa8361fbfe1ba01d2b661e439f73688bef49b7e 100644 (file)
@@ -516,6 +516,9 @@ static void processServeRFC6303(std::shared_ptr<SyncRes::domainmap_t>& newMap, L
   if (!::arg().mustDo("serve-rfc6303")) {
     return;
   }
+  if (!::arg().mustDo("serve-rfc1918")) {
+    return;
+  }
   SLOG(g_log << Logger::Warning << "Inserting rfc 6303 private space zones" << endl,
        log->info(Logr::Notice, "Inserting rfc 6303 private space zones"));
   // Section 4.2
index ecb240391563584758386103c63bdbfafa3b455c..7c2db986a976867995c99bf7bfb1ccdcdae42855 100644 (file)
@@ -2394,6 +2394,7 @@ Individual parts of these zones can still be loaded or forwarded.
         'doc' : '''
 This makes the server authoritatively aware of the zones in RFC 6303 not covered by RFC 1918.
 Individual parts of these zones can still be loaded or forwarded.
+:ref:`setting-serve-rfc1918` must be enabled for this option to take effect.
 ''',
         'versionadded': ['5.1.3', '5.2.0'],
     },