From: Otto Moerbeek Date: Wed, 3 Apr 2019 14:24:09 +0000 (+0200) Subject: Better logging, so the operator knows where to look. X-Git-Tag: rec-4.2.0-rc1~42^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F7662%2Fhead;p=thirdparty%2Fpdns.git Better logging, so the operator knows where to look. --- diff --git a/pdns/communicator.hh b/pdns/communicator.hh index 831b2cecf5..c63534dc23 100644 --- a/pdns/communicator.hh +++ b/pdns/communicator.hh @@ -251,7 +251,7 @@ private: class FindNS { public: - vector lookup(const DNSName &name, UeberBackend *b) + vector lookup(const DNSName &name, UeberBackend *b, const DNSName& zone) { vector addresses; @@ -269,11 +269,11 @@ public: } // After an exception, b can be inconsistent so break catch (PDNSException &ae) { - g_log << Logger::Error << "Skipping record(s): " << ae.reason << endl; + g_log << Logger::Error << "Could not lookup address for nameserver " << name << " in zone " << zone << ", cannot notify: " << ae.reason << endl; break; } catch (std::exception &e) { - g_log << Logger::Error << "Skipping record(s): " << e.what() << endl; + g_log << Logger::Error << "Could not lookup address for nameserver " << name << " in zone " << zone << ", cannot notify: " << e.what() << endl; break; } } diff --git a/pdns/mastercommunicator.cc b/pdns/mastercommunicator.cc index b5841132cf..0480347499 100644 --- a/pdns/mastercommunicator.cc +++ b/pdns/mastercommunicator.cc @@ -56,7 +56,7 @@ void CommunicatorClass::queueNotifyDomain(const DomainInfo& di, UeberBackend* B) nsset.insert(getRR(rr.dr)->getNS().toString()); for(set::const_iterator j=nsset.begin();j!=nsset.end();++j) { - vector nsips=fns.lookup(DNSName(*j), B); + vector nsips=fns.lookup(DNSName(*j), B, di.zone); if(nsips.empty()) g_log< q) while(B->get(rr)) nsset.insert(DNSName(rr.content)); for(const auto & j: nsset) { - vector nsips=fns.lookup(j, s_P->getBackend()); + vector nsips=fns.lookup(j, s_P->getBackend(),q->qdomain); for(vector::const_iterator k=nsips.begin();k!=nsips.end();++k) { // cerr<<"got "<<*k<<" from AUTO-NS"<getRemote().toString())