Skip to content

Instantly share code, notes, and snippets.

$TTL 2h;
$ORIGIN domain.example.com.
@ SOA powerdns.example.net. hostmaster.example.com ( 1 12h 15m 3w 2h)
NS powerdns.example.net.
; begin RPZ RR definitions
example.net A 192.168.2.5
*.example.net A 192.168.2.5
lua-config-file=/etc/powerdns/recursorconf.lua
rpzFile("basic.rpz", {})
rpzMaster("192.0.2.1", "rpz.example.net", {policyName="example"})
$ dig www.example.net @::1 +short
192.168.2.5
@rgacogne
rgacogne / test_rfc8020_nodata_bis.diff
Created October 2, 2019 10:00
test_rfc8020_nodata_bis.diff
diff --git a/pdns/recursordist/test-syncres_cc2.cc b/pdns/recursordist/test-syncres_cc2.cc
index 5d165fae7..bd731497e 100644
--- a/pdns/recursordist/test-syncres_cc2.cc
+++ b/pdns/recursordist/test-syncres_cc2.cc
@@ -582,6 +582,78 @@ BOOST_AUTO_TEST_CASE(test_rfc8020_nodata) {
BOOST_CHECK_EQUAL(SyncRes::getNegCacheSize(), 2);
}
+BOOST_AUTO_TEST_CASE(test_rfc8020_nodata_bis) {
+ std::unique_ptr<SyncRes> sr;
sysctl -w net.core.rmem_max=26214400
sysctl -w net.core.rmem_default=26214400
sysctl -w net.core.wmem_max=26214400
sysctl -w net.core.wmem_default=26214400