From ef1c4bf0aaf2bfcbb209986125de9eea26d4a99e Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Tue, 22 Jan 2013 11:34:10 +0000 Subject: [PATCH] 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 --- pdns/pdnssec.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 "<