From: Peter van Dijk Date: Tue, 22 Jan 2013 11:34:10 +0000 (+0000) Subject: also spot trailing dots on CNAME content, thanks jpmens and Ruben d'Arco X-Git-Tag: rec-3.5-rc1~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ef1c4bf0aaf2bfcbb209986125de9eea26d4a99e;p=thirdparty%2Fpdns.git also spot trailing dots on CNAME content, thanks jpmens and Ruben d'Arco git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@3069 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/pdns/pdnssec.cc b/pdns/pdnssec.cc index 875ec87192..dd24aa592d 100644 --- a/pdns/pdnssec.cc +++ b/pdns/pdnssec.cc @@ -344,7 +344,7 @@ int checkZone(DNSSECKeeper &dk, UeberBackend &B, const std::string& zone) if(rr.qtype.getCode() == QType::MX || rr.qtype.getCode() == QType::SRV) rr.content = lexical_cast(rr.priority)+" "+rr.content; - if ( (rr.qtype.getCode() == QType::NS || rr.qtype.getCode() == QType::SRV || rr.qtype.getCode() == QType::MX) && + if ( (rr.qtype.getCode() == QType::NS || rr.qtype.getCode() == QType::SRV || rr.qtype.getCode() == QType::MX || rr.qtype.getCode() == QType::CNAME) && rr.content[rr.content.size()-1] == '.') { cout<<"[Warning] The record "<