From e894a80f556c318d67823143d1c23334b8d45fec Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Tue, 1 Oct 2019 11:57:57 +0200 Subject: [PATCH] Build Newly Observerd Domain (NOD) support by default. Still disabled by default config. --- pdns/pdns_recursor.cc | 11 ----------- pdns/recursordist/m4/pdns_enable_nod.m4 | 4 ++-- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index 75f2bdf64..3c1be6189 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -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; diff --git a/pdns/recursordist/m4/pdns_enable_nod.m4 b/pdns/recursordist/m4/pdns_enable_nod.m4 index dbca38d40..f298ceecc 100644 --- a/pdns/recursordist/m4/pdns_enable_nod.m4 +++ b/pdns/recursordist/m4/pdns_enable_nod.m4 @@ -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"], -- 2.40.0