]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Treat vanished domains like they were never in the cache
authorChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Tue, 18 May 2021 07:56:21 +0000 (09:56 +0200)
committerChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Tue, 18 May 2021 07:56:21 +0000 (09:56 +0200)
pdns/ueberbackend.cc

index d234e689b9567afe597ccec2b6b3c247963a7c8a..6a9c9ebe99fd5d273a7805a8bc2f88bb7b22d530 100644 (file)
@@ -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()+"'");