From: Mark Schouten Date: Tue, 25 Oct 2016 08:48:38 +0000 (+0200) Subject: According to IRC, this should fix #4621 X-Git-Tag: dnsdist-1.1.0-beta2~32^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4622%2Fhead;p=thirdparty%2Fpdns.git According to IRC, this should fix #4621 --- diff --git a/pdns/ws-auth.cc b/pdns/ws-auth.cc index 370afd7a4e..52c73d72cb 100644 --- a/pdns/ws-auth.cc +++ b/pdns/ws-auth.cc @@ -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& new_ptrs) {