From ec9da6583409f91b19160d707baf4ec457978009 Mon Sep 17 00:00:00 2001 From: Chris Hofstaedtler Date: Sun, 16 May 2021 00:10:42 +0200 Subject: [PATCH] getAuth: avoid throwing when no SOA is returned for cached domain --- pdns/ueberbackend.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.47.2