From: bert hubert Date: Fri, 23 Oct 2015 10:54:09 +0000 (+0200) Subject: Merge branch 'rpz' of github.com:ahupowerdns/pdns into rpz X-Git-Tag: dnsdist-1.0.0-alpha1~252^2~6^2~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=326d39924fb3324aa407cf2c8291a0c9036a7837;p=pdns Merge branch 'rpz' of github.com:ahupowerdns/pdns into rpz Conflicts: pdns/ixplore.cc --- 326d39924fb3324aa407cf2c8291a0c9036a7837 diff --cc pdns/ixplore.cc index c1b692392,c4fea2c76..f694231d8 --- a/pdns/ixplore.cc +++ b/pdns/ixplore.cc @@@ -156,30 -113,7 +156,11 @@@ vector, vectorgetZoneRepresentation()); - if(b.d_content) - rzrp=toLower(b.d_content->getZoneRepresentation()); - auto atype = a.d_type == QType::SOA ? 0 : a.d_type; - auto btype = b.d_type == QType::SOA ? 0 : b.d_type; - - return tie(atype, a.d_class, lzrp) < - tie(btype, b.d_class, rzrp); - } - int main(int argc, char** argv) try { @@@ -205,77 -139,12 +186,76 @@@ shared_ptr sr; uint32_t serial = getSerial(master, zone, sr); - sr->d_st.serial=1445514388; + uint32_t ourSerial = getHighestSerialFromDir(argv[4]); + + cout<<"Our serial: "<d_st.serial= ourSerial; auto deltas = getIXFRDeltas(master, zone, sr); - - + cout<<"Got "<(r.d_content)->d_st.serial; + cout<<"Serial before application: "<< oldserial < toremove; + ofstream report(string(argv[4]) +"/delta."+std::to_string(oldserial)); + for(const auto& rr : remove) { + auto range = records.equal_range(tie(rr.d_name, rr.d_type, rr.d_class, rr.d_content)); + if(range.first == range.second) { + cerr<<"Could not find record "<(rr.d_content)->d_st.serial <getZoneRepresentation()<(rr.d_content)->d_st.serial; + cout<<"Serial to ADD: "<< newserial <getZoneRepresentation()<getZoneRepresentation().c_str()); + } + fclose(fp); + + } + } } catch(PDNSException &e2) { cerr<<"Fatal: "<