From 44d08f4901d354644dc48aee01fc9089c06fc1b4 Mon Sep 17 00:00:00 2001 From: Mark Schouten Date: Tue, 25 Oct 2016 10:48:38 +0200 Subject: [PATCH] According to IRC, this should fix #4621 (cherry picked from commit 8f95565346ba5dcc7d26fbd4165da7d9c7faf362) --- pdns/ws-auth.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.47.2