Skip to content

Commit cc7b2ac

Browse files
committed
fix double dot for root MX/SRV in bind slave zone files
1 parent d38cfb6 commit cc7b2ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/bindbackend/bindbackend2.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ bool Bind2Backend::feedRecord(const DNSResourceRecord &r, string *ordername)
278278
case QType::CNAME:
279279
case QType::NS:
280280
if(!stripDomainSuffix(&content, domain))
281-
content+=".";
281+
content=stripDot(content)+".";
282282
*d_of<<qname<<"\t"<<r.ttl<<"\t"<<r.qtype.getName()<<"\t"<<content<<endl;
283283
break;
284284
default:

0 commit comments

Comments
 (0)