From 459e09feec77d35729d072a55a92418a28c95e6a Mon Sep 17 00:00:00 2001 From: bert hubert Date: Tue, 17 Apr 2018 21:45:15 +0200 Subject: [PATCH] Improve logging a bit --- tdns/tdns.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tdns/tdns.cc b/tdns/tdns.cc index 00bb0a5..93a2d1a 100644 --- a/tdns/tdns.cc +++ b/tdns/tdns.cc @@ -143,7 +143,7 @@ bool processQuestion(const DNSNode& zones, DNSMessageReader& dm, const ComboAddr vector additional; // first we always check for a CNAME, which should be the only RRType at a node if present if(iter = node->rrsets.find(DNSType::CNAME), iter != node->rrsets.end()) { - + cout<<"\tNo CNAME"<second; response.putRR(DNSSection::Answer, lastnode+zonename, DNSType::CNAME, rrset.ttl, rrset.contents[0]); DNSName target=dynamic_cast(rrset.contents[0].get())->d_name; @@ -169,6 +169,7 @@ bool processQuestion(const DNSNode& zones, DNSMessageReader& dm, const ComboAddr for(auto i2 = range.first; i2 != range.second; ++i2) { const auto& rrset = i2->second; for(const auto& rr : rrset.contents) { + cout<<"\tAdding a " << i2->first <<" RR\n"; response.putRR(DNSSection::Answer, lastnode+zonename, i2->first, rrset.ttl, rr); if(i2->first == DNSType::MX) additional.push_back(dynamic_cast(rr.get())->d_name);