]> granicus.if.org Git - pdns/commitdiff
remove .. in pdnsutil list-zone - thanks Sander Smeenk for noticing
authorbert hubert <bert.hubert@netherlabs.nl>
Mon, 14 Dec 2015 19:34:42 +0000 (20:34 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Mon, 14 Dec 2015 19:34:42 +0000 (20:34 +0100)
pdns/pdnsutil.cc

index 0b80dbe589ac6f68991f40a6782a485d63ab49af..ad8a2c55a254fc460fbbaafaafc7a5b0737d54e4 100644 (file)
@@ -874,7 +874,7 @@ int listZone(const DNSName &zone) {
       if ( (rr.qtype.getCode() == QType::NS || rr.qtype.getCode() == QType::SRV || rr.qtype.getCode() == QType::MX || rr.qtype.getCode() == QType::CNAME) && !rr.content.empty() && rr.content[rr.content.size()-1] != '.') 
        rr.content.append(1, '.');
        
-      cout<<rr.qname.toString()<<".\t"<<rr.ttl<<"\tIN\t"<<rr.qtype.getName()<<"\t"<<rr.content<<endl;
+      cout<<rr.qname.toString()<<"\t"<<rr.ttl<<"\tIN\t"<<rr.qtype.getName()<<"\t"<<rr.content<<endl;
     }
   }
   return 0;