From: Remi Gacogne Date: Fri, 21 Aug 2020 15:45:42 +0000 (+0200) Subject: rec: Update tests since we now filter on CNAME chains X-Git-Tag: rec-4.4.0-beta1~1^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0714c2e531bc31bc94e3a4afdbb2de5bcb7659d4;p=thirdparty%2Fpdns.git rec: Update tests since we now filter on CNAME chains --- diff --git a/regression-tests.recursor/RPZ/expected_result b/regression-tests.recursor/RPZ/expected_result index 53fd203f0d..c8a866e80f 100644 --- a/regression-tests.recursor/RPZ/expected_result +++ b/regression-tests.recursor/RPZ/expected_result @@ -20,8 +20,8 @@ Rcode: 3 (Non-Existent domain), RD: 1, QR: 1, TC: 0, AA: 0, opcode: 0 ==> www.trillian.example.net has no RPZ policy attached, so lookup should succeed Reply to question for qname='www.trillian.example.net.', qtype=A Rcode: 0 (No Error), RD: 1, QR: 1, TC: 0, AA: 0, opcode: 0 -0 www.trillian.example.net. IN CNAME 15 www2.arthur.example.net. -0 www2.arthur.example.net. IN A 15 192.0.2.6 +0 www.trillian.example.net. IN CNAME 15 www3.arthur.example.net. +0 www3.arthur.example.net. IN A 15 192.0.2.6 ==> www.hijackme.example.net is served on ns.hijackme.example.net, which should be NXDOMAIN Reply to question for qname='www.hijackme.example.net.', qtype=A Rcode: 3 (Non-Existent domain), RD: 1, QR: 1, TC: 0, AA: 0, opcode: 0 @@ -64,7 +64,9 @@ Rcode: 3 (Non-Existent domain), RD: 1, QR: 1, TC: 0, AA: 0, opcode: 0 Reply to question for qname='not-rpz.example.net.', qtype=A Rcode: 3 (Non-Existent domain), RD: 1, QR: 1, TC: 0, AA: 0, opcode: 0 0 not-rpz.example.net. IN CNAME 5 rpz-not.com. +1 . IN SOA 15 ns.example.net. hostmaster.example.net. 1 3600 1800 1209600 300 ==> echo-me.wildcard-target.example.net is an RPZ wildcard target Reply to question for qname='echo-me.wildcard-target.example.net.', qtype=A Rcode: 3 (Non-Existent domain), RD: 1, QR: 1, TC: 0, AA: 0, opcode: 0 0 echo-me.wildcard-target.example.net. IN CNAME 7200 echo-me.wildcard-target.example.net.walled-garden.example.net. +1 example.net. IN SOA 15 ns.example.net. hostmaster.example.net. 1 3600 1800 1209600 300 diff --git a/regression-tests.recursor/config.sh b/regression-tests.recursor/config.sh index aad5387c45..5e2b46dd1e 100755 --- a/regression-tests.recursor/config.sh +++ b/regression-tests.recursor/config.sh @@ -137,6 +137,7 @@ ns.arthur.example.net. 3600 IN A $PREFIX.12 ns2.arthur.example.net. 3600 IN A $PREFIX.13 www.arthur.example.net. 3600 IN A 192.0.2.2 www2.arthur.example.net. 3600 IN A 192.0.2.6 +www3.arthur.example.net. 3600 IN A 192.0.2.6 mail.arthur.example.net. 3600 IN A 192.0.2.3 big.arthur.example.net. 3600 IN TXT "the quick brown fox jumps over the lazy dog" big.arthur.example.net. 3600 IN TXT "The quick brown fox jumps over the lazy dog" @@ -243,7 +244,7 @@ cat > $PREFIX.16/trillian.example.net.zone < $PREFIX.16/prequery.lua < recursor-service3/rpz.zone <