From: Chris Hofstaedtler Date: Tue, 18 May 2021 07:56:21 +0000 (+0200) Subject: Treat vanished domains like they were never in the cache X-Git-Tag: auth-4.5.0-alpha1~7^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9c9fbf7f4960a8dd43107a93c678f42cd55541d1;p=thirdparty%2Fpdns.git Treat vanished domains like they were never in the cache --- diff --git a/pdns/ueberbackend.cc b/pdns/ueberbackend.cc index d234e689b9..6a9c9ebe99 100644 --- a/pdns/ueberbackend.cc +++ b/pdns/ueberbackend.cc @@ -363,8 +363,9 @@ bool UeberBackend::getAuth(const DNSName &target, const QType& qtype, SOAData* s DNSZoneRecord zr; lookup(QType(QType::SOA), shorter, zoneId, nullptr); if (!get(zr)) { - g_log << Logger::Info << "Backend returned no SOA for domain '" << shorter.toLogString() << "', which it reported as existing " << endl; - return false; + // domain has somehow vanished + DLOG(g_log << Logger::Info << "Backend returned no SOA for domain '" << shorter.toLogString() << "', which it reported as existing " << endl); + continue; } if (zr.dr.d_name != shorter) { throw PDNSException("getAuth() returned an SOA for the wrong zone. Zone '"+zr.dr.d_name.toLogString()+"' is not equal to looked up zone '"+shorter.toLogString()+"'");