From 8f95565346ba5dcc7d26fbd4165da7d9c7faf362 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 --- 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 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) { -- 2.47.2