]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
fix double dot for root MX/SRV in bind slave zone files 2314/head
authorKees Monshouwer <mind04@monshouwer.org>
Wed, 4 Mar 2015 21:12:05 +0000 (22:12 +0100)
committermind04 <mind04@monshouwer.org>
Wed, 4 Mar 2015 21:14:20 +0000 (22:14 +0100)
modules/bindbackend/bindbackend2.cc

index 1ae98afde4ae84f553a46920c73cdbccd05110a4..39abbd30c7d5d3272f63c6890b8b0ce6e09f1fcf 100644 (file)
@@ -278,7 +278,7 @@ bool Bind2Backend::feedRecord(const DNSResourceRecord &r, string *ordername)
   case QType::CNAME:
   case QType::NS:
     if(!stripDomainSuffix(&content, domain))
-      content+=".";
+      content=stripDot(content)+".";
     *d_of<<qname<<"\t"<<r.ttl<<"\t"<<r.qtype.getName()<<"\t"<<content<<endl;
     break;
   default: