View test_rfc8020_nodata_bis.diff
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; |
View rpz-example-dig
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 |
View rpz-master
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"}) |
View rpz-file
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", {}) |
View lua-config-file
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 |
View example.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
$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 |