]> granicus.if.org Git - pdns/commitdiff
Build Newly Observerd Domain (NOD) support by default.
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 1 Oct 2019 09:57:57 +0000 (11:57 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 1 Oct 2019 09:57:57 +0000 (11:57 +0200)
Still disabled by default config.

pdns/pdns_recursor.cc
pdns/recursordist/m4/pdns_enable_nod.m4

index 75f2bdf648cfc5d87a91fe8963dc2364c26d3145..3c1be618995b33fbb34735ba62036cb0410dc328 100644 (file)
@@ -1077,17 +1077,6 @@ static bool nodCheckNewDomain(const DNSName& dname)
   return ret;
 }
 
-static void nodAddDomain(const DNSName& dname)
-{
-  // Don't bother adding domains on the nod whitelist
-  if (!g_nodDomainWL.check(dname)) {  
-    if (t_nodDBp) {
-      // This keeps the nod info up to date
-      t_nodDBp->addDomain(dname);
-    }
-  }
-}
-
 static bool udrCheckUniqueDNSRecord(const DNSName& dname, uint16_t qtype, const DNSRecord& record)
 {
   bool ret = false;
index dbca38d40e95e1416219d1b5b4c8d1fcf4e9d64d..f298ceecc34c8e0111b6d128cf386cd3598fd74e 100644 (file)
@@ -3,10 +3,10 @@ AC_DEFUN([PDNS_ENABLE_NOD],[
 
   AC_ARG_ENABLE([nod],
     AS_HELP_STRING([--enable-nod],
-      [enable newly observed domains @<:@default=no@:>@]
+      [enable newly observed domains @<:@default=yes@:>@]
     ),
     [enable_nod=$enableval],
-    [enable_nod=no]
+    [enable_nod=yes]
   )
 
   AS_IF([test "x$enable_nod" != "xno"],