From: Chris Hofstaedtler Date: Sat, 15 May 2021 22:10:42 +0000 (+0200) Subject: getAuth: avoid throwing when no SOA is returned for cached domain X-Git-Tag: auth-4.5.0-alpha1~7^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ec9da6583409f91b19160d707baf4ec457978009;p=thirdparty%2Fpdns.git getAuth: avoid throwing when no SOA is returned for cached domain --- diff --git a/pdns/ueberbackend.cc b/pdns/ueberbackend.cc index 15e4221e87..9dd1bcc6c6 100644 --- a/pdns/ueberbackend.cc +++ b/pdns/ueberbackend.cc @@ -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);