]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Merge pull request #10780 from Habbie/remove-attodot auth-4.6.0-alpha1
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Wed, 6 Oct 2021 11:06:17 +0000 (13:06 +0200)
committerGitHub <noreply@github.com>
Wed, 6 Oct 2021 11:06:17 +0000 (13:06 +0200)
auth: remove attodot feature; fixes #10254

1  2 
pdns/dnsbackend.cc
pdns/pdnsutil.cc

Simple merge
index 879fb816d110a106751f877424af23813d8bb87c,ea8e305536e67d13a628a89d654491b8cbcb745d..a92b19e86186a48e174339b9027e063e9bb749cf
@@@ -376,9 -367,16 +376,16 @@@ static int checkZone(DNSSECKeeper &dk, 
        stringtok(parts, rr.content);
  
        if(parts.size() < 7) {
 -        cout<<"[Warning] SOA autocomplete is deprecated, missing field(s) in SOA content: "<<rr.qname<<" IN " <<rr.qtype.toString()<< " '" << rr.content<<"'"<<endl;
 +        cout << "[Info] SOA autocomplete is deprecated, missing field(s) in SOA content: " << rr.qname << " IN " << rr.qtype.toString() << " '" << rr.content << "'" << endl;
        }
  
+       if(parts.size() >= 2) {
+         if(parts[1].find('@') != string::npos) {
+           cout<<"[Warning] Found @-sign in SOA RNAME, should probably be a dot (.): "<<rr.qname<<" IN " <<rr.qtype.toString()<< " '" << rr.content<<"'"<<endl;
+           numwarnings++;
+         }
+       }
        ostringstream o;
        o<<rr.content;
        for(int pleft=parts.size(); pleft < 7; ++pleft) {