Permalink
Browse files

fix double dot for root MX/SRV in bind slave zone files

  • Loading branch information...
1 parent d38cfb6 commit cc7b2ac5890d6901d3676e51e45bc1bc30ea3e11 @mind04 mind04 committed with mind04 Mar 4, 2015
Showing with 1 addition and 1 deletion.
  1. +1 −1 modules/bindbackend/bindbackend2.cc
@@ -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:

0 comments on commit cc7b2ac

Please sign in to comment.