]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
pdnsutil remove unnecessary check, the parse test above will catch trailing dots 4261/head
authorKees Monshouwer <mind04@monshouwer.org>
Mon, 1 Aug 2016 20:53:50 +0000 (22:53 +0200)
committermind04 <mind04@monshouwer.org>
Mon, 1 Aug 2016 20:53:50 +0000 (22:53 +0200)
pdns/pdnsutil.cc

index 5e44126f512fc4816d82fb5f488afba73c3325d6..c2d72f86a1a6d072808a239085485c2386d5dac8 100644 (file)
@@ -622,17 +622,6 @@ int checkZone(DNSSECKeeper &dk, UeberBackend &B, const DNSName& zone, const vect
       }
     }
 
-    // if (rr.qname[rr.qname.size()-1] == '.') {
-    //   cout<<"[Error] Record '"<<rr.qname<<"' has a trailing dot. PowerDNS will ignore this record!"<<endl;
-    //   numerrors++;
-    // }
-
-    if ( (rr.qtype.getCode() == QType::NS || rr.qtype.getCode() == QType::SRV || rr.qtype.getCode() == QType::MX || rr.qtype.getCode() == QType::CNAME || rr.qtype.getCode() == QType::DNAME) &&
-         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++;
-    }
-
     if(rr.auth == 0 && rr.qtype.getCode()!=QType::NS && rr.qtype.getCode()!=QType::A && rr.qtype.getCode()!=QType::AAAA)
     {
       cout<<"[Error] Following record is auth=0, run pdnsutil rectify-zone?: "<<rr.qname<<" IN " <<rr.qtype.getName()<< " " << rr.content<<endl;