]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
also spot trailing dots on CNAME content, thanks jpmens and Ruben d'Arco
authorPeter van Dijk <peter.van.dijk@netherlabs.nl>
Tue, 22 Jan 2013 11:34:10 +0000 (11:34 +0000)
committerPeter van Dijk <peter.van.dijk@netherlabs.nl>
Tue, 22 Jan 2013 11:34:10 +0000 (11:34 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@3069 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/pdnssec.cc

index 875ec871925fe73785da8657c47d10e0b018b2db..dd24aa592d0d8afb79fa66923af0915ff7ea4eeb 100644 (file)
@@ -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<string>(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 "<<rr.qname<<" with type "<<rr.qtype.getName()<<" has a trailing dot in the content ("<<rr.content<<"). Your backend might not work well with this."<<endl;
       numwarnings++;