]> granicus.if.org Git - pdns/commitdiff
pdnsutil: add NS record without trailing dot with create-zone
authorPieter Lexis <pieter.lexis@powerdns.com>
Fri, 18 Mar 2016 11:42:18 +0000 (12:42 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Fri, 18 Mar 2016 11:42:18 +0000 (12:42 +0100)
Closes #3484

pdns/pdnsutil.cc

index db612c21128e88b01e2e6c09e28318bbbc109fb9..be299a0ddb656b2dcf3cc33f8b9e0f6f450ab253 100644 (file)
@@ -1117,7 +1117,7 @@ int createZone(const DNSName &zone, const DNSName& nsname) {
   if(!nsname.empty()) {
     cout<<"Also adding one NS record"<<endl;
     rr.qtype=QType::NS;
-    rr.content=nsname.toString();
+    rr.content=nsname.toStringNoDot();
     di.backend->feedRecord(rr);
   }