class FindNS
{
public:
- vector<string> lookup(const DNSName &name, UeberBackend *b, const DNSName& zone)
+ vector<string> lookup(const DNSName &name, UeberBackend *b)
{
vector<string> addresses;
}
// After an exception, b can be inconsistent so break
catch (PDNSException &ae) {
- g_log << Logger::Error << "Could not lookup address for nameserver " << name << " in zone " << zone << ", cannot notify: " << ae.reason << endl;
+ g_log << Logger::Error << "Skipping record(s): " << ae.reason << endl;
break;
}
catch (std::exception &e) {
- g_log << Logger::Error << "Could not lookup address for nameserver " << name << " in zone " << zone << ", cannot notify: " << e.what() << endl;
+ g_log << Logger::Error << "Skipping record(s): " << e.what() << endl;
break;
}
}
nsset.insert(getRR<NSRecordContent>(rr.dr)->getNS().toString());
for(set<string>::const_iterator j=nsset.begin();j!=nsset.end();++j) {
- vector<string> nsips=fns.lookup(DNSName(*j), B, di.zone);
+ vector<string> nsips=fns.lookup(DNSName(*j), B);
if(nsips.empty())
g_log<<Logger::Warning<<"Unable to queue notification of domain '"<<di.zone<<"': nameservers do not resolve!"<<endl;
else
while(B->get(rr))
nsset.insert(DNSName(rr.content));
for(const auto & j: nsset) {
- vector<string> nsips=fns.lookup(j, s_P->getBackend(),q->qdomain);
+ vector<string> nsips=fns.lookup(j, s_P->getBackend());
for(vector<string>::const_iterator k=nsips.begin();k!=nsips.end();++k) {
// cerr<<"got "<<*k<<" from AUTO-NS"<<endl;
if(*k == q->getRemote().toString())