From 74bf221f2a98b4ba41395739dabc3da0c7f81319 Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Fri, 27 Mar 2015 20:19:36 +0100 Subject: [PATCH] pdnssec: warn for insecure wildcards in opt-out zones --- pdns/pdnssec.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pdns/pdnssec.cc b/pdns/pdnssec.cc index bac88672e..12015f9d9 100644 --- a/pdns/pdnssec.cc +++ b/pdns/pdnssec.cc @@ -408,7 +408,15 @@ int checkZone(DNSSECKeeper &dk, UeberBackend &B, const std::string& zone) cout<<"Checked 0 records of '"<list(zone, sd.domain_id, true); DNSResourceRecord rr; uint64_t numrecords=0, numerrors=0, numwarnings=0; @@ -494,6 +502,12 @@ int checkZone(DNSSECKeeper &dk, UeberBackend &B, const std::string& zone) continue; } + if (isSecure && isOptOut && (rr.qname.size() && rr.qname[0] == '*') && (rr.qname.size() < 2 || rr.qname[1] == '.' )) { + cout<<"[Warning] wildcard record '"<