]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
According to IRC, this should fix #4621 4622/head
authorMark Schouten <mark@tuxis.nl>
Tue, 25 Oct 2016 08:48:38 +0000 (10:48 +0200)
committerMark Schouten <mark@tuxis.nl>
Tue, 25 Oct 2016 08:48:38 +0000 (10:48 +0200)
pdns/ws-auth.cc

index 370afd7a4ed37f27823380f575a4fa44228737cb..52c73d72cb5712b8c22ed0284c1cccc54d409390 100644 (file)
@@ -1096,7 +1096,7 @@ static void apiServerZones(HttpRequest* req, HttpResponse* resp) {
         throw ApiException("Nameserver is not canonical: '" + nameserver + "'");
       try {
         // ensure the name parses
-        autorr.content = DNSName(nameserver).toStringNoDot();
+        autorr.content = DNSName(nameserver).toStringRootDot();
       } catch (...) {
         throw ApiException("Unable to parse DNS Name for NS '" + nameserver + "'");
       }
@@ -1298,7 +1298,7 @@ static void makePtr(const DNSResourceRecord& rr, DNSResourceRecord* ptr) {
   ptr->qtype = "PTR";
   ptr->ttl = rr.ttl;
   ptr->disabled = rr.disabled;
-  ptr->content = rr.qname.toString();
+  ptr->content = rr.qname.toStringRootDot();
 }
 
 static void storeChangedPTRs(UeberBackend& B, vector<DNSResourceRecord>& new_ptrs) {