From 84a0d08cfbb9c63b1a713143bebb32045155a02a Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Sun, 29 Sep 2013 18:58:52 +0200 Subject: [PATCH] pdnssec check-zone, improve SOA content check --- pdns/pdnssec.cc | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/pdns/pdnssec.cc b/pdns/pdnssec.cc index e585a5b97..90552ee51 100644 --- a/pdns/pdnssec.cc +++ b/pdns/pdnssec.cc @@ -343,7 +343,6 @@ int checkZone(DNSSECKeeper &dk, UeberBackend &B, const std::string& zone) DNSResourceRecord rr; uint64_t numrecords=0, numerrors=0, numwarnings=0; - bool hasNsAtApex = false; set records, cnames, noncnames; map ttl; @@ -361,10 +360,16 @@ int checkZone(DNSSECKeeper &dk, UeberBackend &B, const std::string& zone) continue; } - if(rr.qtype.getCode() == QType::SOA) - { - fillSOAData(rr.content, sd); - rr.content = serializeSOAData(sd); + if(rr.qtype.getCode() == QType::SOA) { + vectorparts; + stringtok(parts, rr.content); + + ostringstream o; + o<