"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test-aggressive_nsec_cc.cc" between
pdns-recursor-4.5.5.tar.bz2 and pdns-recursor-4.5.6.tar.bz2

About: PowerDNS - a separate release of the PowerDNS Recursor (without the authoritative nameserver).

test-aggressive_nsec_cc.cc  (pdns-recursor-4.5.5.tar.bz2):test-aggressive_nsec_cc.cc  (pdns-recursor-4.5.6.tar.bz2)
skipping to change at line 777 skipping to change at line 777
addRecordToLW(res, "a.gtld-servers.com.", QType::A, "192.0.2.1", DNSReso urceRecord::ADDITIONAL, 3600); addRecordToLW(res, "a.gtld-servers.com.", QType::A, "192.0.2.1", DNSReso urceRecord::ADDITIONAL, 3600);
return LWResult::Result::Success; return LWResult::Result::Success;
} }
else if (ip == ComboAddress("192.0.2.1:53")) { else if (ip == ComboAddress("192.0.2.1:53")) {
if (domain == target && type == QType::A) { if (domain == target && type == QType::A) {
setLWResult(res, RCode::NoError, true, false, true); setLWResult(res, RCode::NoError, true, false, true);
/* no data */ /* no data */
addRecordToLW(res, DNSName("powerdns.com."), QType::SOA, "powerdns.com . powerdns.com. 2017032301 10800 3600 604800 3600", DNSResourceRecord::AUTHORITY , 3600); addRecordToLW(res, DNSName("powerdns.com."), QType::SOA, "powerdns.com . powerdns.com. 2017032301 10800 3600 604800 3600", DNSResourceRecord::AUTHORITY , 3600);
addRRSIG(keys, res->d_records, DNSName("powerdns.com."), 300); addRRSIG(keys, res->d_records, DNSName("powerdns.com."), 300);
/* first the closest encloser */ /* first the closest encloser */
addNSEC3UnhashedRecordToLW(DNSName("powerdns.com."), DNSName("powerdns .com."), "whatever", {QType::A, QType::TXT, QType::RRSIG}, 600, res->d_records, 10); addNSEC3NoDataNarrowRecordToLW(DNSName("powerdns.com."), DNSName("powe rdns.com."), {QType::A, QType::TXT, QType::RRSIG}, 600, res->d_records, 10);
addRRSIG(keys, res->d_records, DNSName("powerdns.com."), 300); addRRSIG(keys, res->d_records, DNSName("powerdns.com."), 300);
/* then the next closer */ /* then the next closer */
addNSEC3UnhashedRecordToLW(DNSName("+.powerdns.com."), DNSName("powerd ns.com."), "v", {QType::RRSIG}, 600, res->d_records, 10); addNSEC3NarrowRecordToLW(DNSName("a.powerdns.com."), DNSName("powerdns .com."), {QType::RRSIG}, 600, res->d_records, 10);
addRRSIG(keys, res->d_records, DNSName("powerdns.com."), 300); addRRSIG(keys, res->d_records, DNSName("powerdns.com."), 300);
/* a wildcard applies but does not have this type */ /* a wildcard applies but does not have this type */
addNSEC3UnhashedRecordToLW(DNSName("*.powerdns.com."), DNSName("powerd ns.com."), "whatever", {QType::TXT, QType::RRSIG}, 600, res->d_records, 10); addNSEC3NoDataNarrowRecordToLW(DNSName("*.powerdns.com."), DNSName("po werdns.com."), {QType::TXT, QType::RRSIG}, 600, res->d_records, 10);
addRRSIG(keys, res->d_records, DNSName("powerdns.com"), 300, false, bo ost::none, DNSName("*.powerdns.com")); addRRSIG(keys, res->d_records, DNSName("powerdns.com"), 300, false, bo ost::none, DNSName("*.powerdns.com"));
return LWResult::Result::Success; return LWResult::Result::Success;
} }
} }
} }
return LWResult::Result::Timeout; return LWResult::Result::Timeout;
}); });
vector<DNSRecord> ret; vector<DNSRecord> ret;
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)