]> granicus.if.org Git - pdns/commitdiff
improve logging somewhat for #2758 and #2760.
authorbert hubert <bert.hubert@netherlabs.nl>
Thu, 24 Sep 2015 08:31:24 +0000 (10:31 +0200)
committerbert hubert <bert.hubert@netherlabs.nl>
Thu, 24 Sep 2015 08:31:24 +0000 (10:31 +0200)
pdns/dnsrecords.hh
pdns/syncres.cc

index 685f28d2fe7b515f10c43cefc907541d52ee8f43..50e15081735d05e874a642a3fa5e4f83069fd636 100644 (file)
@@ -597,7 +597,7 @@ RNAME##RecordContent::RNAME##RecordContent(const string& zoneData) : DNSRecordCo
     xfrPacket(rtr);                                                                                \
   }                                                                                                \
   catch(RecordTextException& rtr) {                                                                \
-    throw MOADNSException("Parsing record content: "+string(rtr.what()));                          \
+    throw MOADNSException("Parsing record content (try 'pdnssec check-zone'): "+string(rtr.what()));  \
   }                                                                                               \
 }                                                                                                  \
                                                                                                    \
index b0994a3120cef3ca46b20ae364093d64f7259ee3..acaab1ba71d24c1aa807a86fd90141a80e195bd9 100644 (file)
@@ -879,7 +879,7 @@ int SyncRes::doResolveAt(set<DNSName> nameservers, DNSName auth, bool flawedNSSe
       }
       // this line needs to identify the 'self-resolving' behaviour, but we get it wrong now
       if(pdns_iequals(qname, *tns) && qtype.getCode()==QType::A && rnameservers.size() > (unsigned)(1+1*s_doIPv6)) {
-        LOG(prefix<<qname.toString()<<": Not using NS to resolve itself!"<<endl);
+        LOG(prefix<<qname.toString()<<": Not using NS to resolve itself! ("<<(1+tns-rnameservers.begin())<<"/"<<rnameservers.size()<<")"<<endl);
         continue;
       }