Permalink
Browse files

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
  • Loading branch information...
1 parent e06f9f1 commit ef1c4bf0aaf2bfcbb209986125de9eea26d4a99e @Habbie Habbie committed Jan 22, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 pdns/pdnssec.cc
View
@@ -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++;

0 comments on commit ef1c4bf

Please sign in to comment.