From b2e37c01e2ce6e39e63bac07ec0245da304d8f30 Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Sun, 31 Jul 2016 01:43:55 +0200 Subject: [PATCH] strip trailing dot in PTR content --- pdns/dnsrecords.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pdns/dnsrecords.cc b/pdns/dnsrecords.cc index 60eab9cef8..0d7e82dadc 100644 --- a/pdns/dnsrecords.cc +++ b/pdns/dnsrecords.cc @@ -38,6 +38,7 @@ void DNSResourceRecord::setContent(const string &cont) { case QType::CNAME: case QType::DNAME: case QType::NS: + case QType::PTR: if(!content.empty()) boost::erase_tail(content, 1); } @@ -51,6 +52,7 @@ string DNSResourceRecord::getZoneRepresentation(bool noDot) const { case QType::CNAME: case QType::DNAME: case QType::NS: + case QType::PTR: if (*(content.rbegin()) != '.') { ret<