From: Mark Schouten Date: Tue, 25 Oct 2016 08:48:38 +0000 (+0200) Subject: According to IRC, this should fix #4621 X-Git-Tag: auth-4.0.4-rc1~25^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44d08f4901d354644dc48aee01fc9089c06fc1b4;p=thirdparty%2Fpdns.git According to IRC, this should fix #4621 (cherry picked from commit 8f95565346ba5dcc7d26fbd4165da7d9c7faf362) --- diff --git a/pdns/ws-auth.cc b/pdns/ws-auth.cc index a8201d31d4..7437a91e29 100644 --- a/pdns/ws-auth.cc +++ b/pdns/ws-auth.cc @@ -725,7 +725,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 + "'"); } @@ -927,7 +927,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) {