]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
getAuth: avoid throwing when no SOA is returned for cached domain
authorChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Sat, 15 May 2021 22:10:42 +0000 (00:10 +0200)
committerChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Sat, 15 May 2021 22:45:45 +0000 (00:45 +0200)
pdns/ueberbackend.cc

index 15e4221e87a85e4248fa3e7d7d513c785ba33fd1..9dd1bcc6c6a2e96186d6c7e32e8bf93dd9daa65f 100644 (file)
@@ -363,7 +363,8 @@ bool UeberBackend::getAuth(const DNSName &target, const QType& qtype, SOAData* s
         DNSZoneRecord zr;
         lookup(QType(QType::SOA), shorter, zoneId, nullptr);
         if (!get(zr)) {
-          throw PDNSException("Backend returned no SOA for existing domain '"+shorter.toLogString()+"'");
+          g_log << Logger::Info << "Backend returned no SOA for domain '" << shorter.toLogString() << "', which it reported as existing " << endl;
+          return false;
         }
         sd->qname = zr.dr.d_name;
         fillSOAData(zr, *sd);