From: Kees Monshouwer Date: Fri, 26 Jun 2015 19:09:33 +0000 (+0200) Subject: log zonenames with trailing dot X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~58^2~21^2~5^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3cd692b388f6507891c29a099fb504914f34331b;p=pdns log zonenames with trailing dot --- diff --git a/modules/bindbackend/bindbackend2.cc b/modules/bindbackend/bindbackend2.cc index 97d87e644..ac8cb7444 100644 --- a/modules/bindbackend/bindbackend2.cc +++ b/modules/bindbackend/bindbackend2.cc @@ -211,7 +211,7 @@ bool Bind2Backend::startTransaction(const DNSName &qname, int id) } *d_of<<"; Written by PowerDNS, don't edit!"<&parts, Utility::pid safePutBBDomainInfo(bbd); - L<type!="master" && i->type!="slave") { - L<type<<"' zone '"<name.toStringNoDot()<<"'"<type<<"' zone '"<name.toString()<<"'"<name.toStringNoDot()<<"' from file '"<filename<<"'"<name.toString()<<"' from file '"<filename<<"'"<name.toStringNoDot()<<"' from file '"<filename<<"': "<name.toString()<<"' from file '"<filename<<"': "<name.toStringNoDot()<<"' from file '"<filename<<"': "<name.toString()<<"' from file '"<filename<<"': "<size()<<" available in total!"<size()<<" available in total!"<qtype==qtype.getCode())) { - DLOG(L<qtype).getName()<<": '"<content<<"'"<qtype).getName()<<": '"<content<<"'"<ttl; //if(!d_iter->auth && r.qtype.getCode() != QType::A && r.qtype.getCode()!=QType::AAAA && r.qtype.getCode() != QType::NS) - // cerr<<"Warning! Unauth response for qtype "<< r.qtype.getName() << " for '"<auth; d_iter++; @@ -1282,7 +1282,7 @@ bool Bind2Backend::createSlaveDomain(const string &ip, const DNSName& domain, co string filename = getArg("supermaster-destdir")+'/'+domain.toStringNoDot(); L << Logger::Warning << d_logprefix - << " Writing bind config zone statement for superslave zone '" << domain.toStringNoDot() + << " Writing bind config zone statement for superslave zone '" << domain.toString() << "' from supermaster " << ip << endl; { @@ -1295,7 +1295,7 @@ bool Bind2Backend::createSlaveDomain(const string &ip, const DNSName& domain, co } c_of << endl; - c_of << "# Superslave zone " << domain.toStringNoDot() << " (added: " << nowTime() << ") (account: " << account << ')' << endl; + c_of << "# Superslave zone '" << domain.toString() << "' (added: " << nowTime() << ") (account: " << account << ')' << endl; c_of << "zone \"" << domain.toStringNoDot() << "\" {" << endl; c_of << "\ttype slave;" << endl; c_of << "\tfile \"" << filename << "\";" << endl; diff --git a/pdns/zone2json.cc b/pdns/zone2json.cc index 09bed5a6e..af3a4504f 100644 --- a/pdns/zone2json.cc +++ b/pdns/zone2json.cc @@ -161,7 +161,7 @@ try ++i) { if(i->type!="master" && i->type!="slave") { - cerr<<" Warning! Skipping '"<type<<"' zone '"<name.toStringNoDot()<<"'"<type<<"' zone '"<name.toString()<<"'"<type!="master" && i->type!="slave") { - cerr<<" Warning! Skipping '"<type<<"' zone '"<name.toStringNoDot()<<"'"<type<<"' zone '"<name.toString()<<"'"<