From: Bert Hubert Date: Sat, 19 Jun 2010 13:20:30 +0000 (+0000) Subject: implement 'check-zone' for phibs, plus make powerdns crash violently if a non-dnssec... X-Git-Tag: rec-3.3~54 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d2e58b0613e1375cbe65025109a0fbb2084d7bc;p=pdns implement 'check-zone' for phibs, plus make powerdns crash violently if a non-dnssec backend tries to do dnssec git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1648 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/pdns/dnsbackend.hh b/pdns/dnsbackend.hh index eb30b06d4..4514b061e 100644 --- a/pdns/dnsbackend.hh +++ b/pdns/dnsbackend.hh @@ -77,6 +77,7 @@ public: virtual bool getBeforeAndAfterNamesAbsolute(uint32_t id, const std::string& qname, std::string& unhashed, std::string& before, std::string& after) { std::cerr<<"Default beforeAndAfterAbsolute called!"<getSOA(zone, sd)) { + cerr<<"No SOA!"<list(zone, sd.domain_id); + DNSResourceRecord rr; + uint64_t numrecords=0, numerrors=0; + + while(sd.db->get(rr)) { + if(rr.qtype.getCode() == QType::MX) + rr.content = lexical_cast(rr.priority)+" "+rr.content; + + try { + shared_ptr drc(DNSRecordContent::mastermake(rr.qtype.getCode(), 1, rr.content)); + string tmp=drc->serialize(rr.qname); + } + catch(std::exception& e) + { + cerr<<"Following record had a problem: "<