This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lua-config-file=/etc/powerdns/recursorconf.lua |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rpzFile("basic.rpz", {}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rpzMaster("192.0.2.1", "rpz.example.net", {policyName="example"}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ dig www.example.net @::1 +short | |
192.168.2.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |