From: Kees Monshouwer Date: Tue, 26 Mar 2019 23:50:25 +0000 (+0100) Subject: auth: add referral response tests for DS queries X-Git-Tag: rec-4.2.0-rc1~36^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=84a0889a52a6053238dddf35e96c5bad8fae0d74;p=thirdparty%2Fpdns.git auth: add referral response tests for DS queries --- diff --git a/regression-tests.rootzone/tests/axfr/expected_result b/regression-tests.rootzone/tests/axfr/expected_result index 0b76cb425d..29b81b58ad 100644 --- a/regression-tests.rootzone/tests/axfr/expected_result +++ b/regression-tests.rootzone/tests/axfr/expected_result @@ -5,6 +5,11 @@ a.gtld-servers.net. 172800 IN A 192.5.6.30 a.gtld-servers.net. 172800 IN AAAA 2001:503:a83e::2:30 a.root-servers.net. 518400 IN A 198.41.0.4 a.root-servers.net. 518400 IN AAAA 2001:503:ba3e::2:30 +barney.advsys.co.uk. 172800 IN A 217.23.160.50 net. 172800 IN NS a.gtld-servers.net. net. 86400 IN DS 35886 8 2 7862b27f5f516ebe19680444d4ce5e762981931842c465f00236401d8bd973ee +nsa.nic.uk. 172800 IN A 156.154.100.3 +nsa.nic.uk. 172800 IN AAAA 2001:502:ad09::3 org. 172800 IN NS a.gtld-servers.net. +uk. 172800 IN NS nsa.nic.uk. +uk. 86400 IN DS 43876 8 2 a107ed2ac1bd14d924173bc7e827a1153582072394f9272ba37e2353bc659603 diff --git a/regression-tests.rootzone/tests/axfr/expected_result.dnssec b/regression-tests.rootzone/tests/axfr/expected_result.dnssec index f89385cf38..db244622a2 100644 --- a/regression-tests.rootzone/tests/axfr/expected_result.dnssec +++ b/regression-tests.rootzone/tests/axfr/expected_result.dnssec @@ -11,11 +11,19 @@ a.gtld-servers.net. 172800 IN A 192.5.6.30 a.gtld-servers.net. 172800 IN AAAA 2001:503:a83e::2:30 a.root-servers.net. 518400 IN A 198.41.0.4 a.root-servers.net. 518400 IN AAAA 2001:503:ba3e::2:30 +barney.advsys.co.uk. 172800 IN A 217.23.160.50 net. 172800 IN NS a.gtld-servers.net. net. 86400 IN DS 35886 8 2 7862b27f5f516ebe19680444d4ce5e762981931842c465f00236401d8bd973ee net. 86400 IN NSEC org. NS DS RRSIG NSEC net. 86400 IN RRSIG DS 13 1 86400 [expiry] [inception] [keytag] . ... net. 86400 IN RRSIG NSEC 13 1 86400 [expiry] [inception] [keytag] . ... +nsa.nic.uk. 172800 IN A 156.154.100.3 +nsa.nic.uk. 172800 IN AAAA 2001:502:ad09::3 org. 172800 IN NS a.gtld-servers.net. -org. 86400 IN NSEC . NS RRSIG NSEC +org. 86400 IN NSEC uk. NS RRSIG NSEC org. 86400 IN RRSIG NSEC 13 1 86400 [expiry] [inception] [keytag] . ... +uk. 172800 IN NS nsa.nic.uk. +uk. 86400 IN DS 43876 8 2 a107ed2ac1bd14d924173bc7e827a1153582072394f9272ba37e2353bc659603 +uk. 86400 IN NSEC . NS DS RRSIG NSEC +uk. 86400 IN RRSIG DS 13 1 86400 [expiry] [inception] [keytag] . ... +uk. 86400 IN RRSIG NSEC 13 1 86400 [expiry] [inception] [keytag] . ... diff --git a/regression-tests.rootzone/tests/axfr/expected_result.nsec3 b/regression-tests.rootzone/tests/axfr/expected_result.nsec3 index aa6d56d3c0..28e62f8985 100644 --- a/regression-tests.rootzone/tests/axfr/expected_result.nsec3 +++ b/regression-tests.rootzone/tests/axfr/expected_result.nsec3 @@ -13,11 +13,19 @@ a.gtld-servers.net. 172800 IN A 192.5.6.30 a.gtld-servers.net. 172800 IN AAAA 2001:503:a83e::2:30 a.root-servers.net. 518400 IN A 198.41.0.4 a.root-servers.net. 518400 IN AAAA 2001:503:ba3e::2:30 +barney.advsys.co.uk. 172800 IN A 217.23.160.50 net. 172800 IN NS a.gtld-servers.net. net. 86400 IN DS 35886 8 2 7862b27f5f516ebe19680444d4ce5e762981931842c465f00236401d8bd973ee net. 86400 IN NSEC3 1 0 1 abcd [next owner] NS DS RRSIG net. 86400 IN RRSIG DS 13 1 86400 [expiry] [inception] [keytag] . ... net. 86400 IN RRSIG NSEC3 13 1 86400 [expiry] [inception] [keytag] . ... +nsa.nic.uk. 172800 IN A 156.154.100.3 +nsa.nic.uk. 172800 IN AAAA 2001:502:ad09::3 org. 172800 IN NS a.gtld-servers.net. org. 86400 IN NSEC3 1 0 1 abcd [next owner] NS org. 86400 IN RRSIG NSEC3 13 1 86400 [expiry] [inception] [keytag] . ... +uk. 172800 IN NS nsa.nic.uk. +uk. 86400 IN DS 43876 8 2 a107ed2ac1bd14d924173bc7e827a1153582072394f9272ba37e2353bc659603 +uk. 86400 IN NSEC3 1 0 1 abcd [next owner] NS DS RRSIG +uk. 86400 IN RRSIG DS 13 1 86400 [expiry] [inception] [keytag] . ... +uk. 86400 IN RRSIG NSEC3 13 1 86400 [expiry] [inception] [keytag] . ... diff --git a/regression-tests.rootzone/tests/axfr/expected_result.nsec3-optout b/regression-tests.rootzone/tests/axfr/expected_result.nsec3-optout index ed8d610f2c..d86c712053 100644 --- a/regression-tests.rootzone/tests/axfr/expected_result.nsec3-optout +++ b/regression-tests.rootzone/tests/axfr/expected_result.nsec3-optout @@ -13,9 +13,17 @@ a.gtld-servers.net. 172800 IN A 192.5.6.30 a.gtld-servers.net. 172800 IN AAAA 2001:503:a83e::2:30 a.root-servers.net. 518400 IN A 198.41.0.4 a.root-servers.net. 518400 IN AAAA 2001:503:ba3e::2:30 +barney.advsys.co.uk. 172800 IN A 217.23.160.50 net. 172800 IN NS a.gtld-servers.net. net. 86400 IN DS 35886 8 2 7862b27f5f516ebe19680444d4ce5e762981931842c465f00236401d8bd973ee net. 86400 IN NSEC3 1 1 1 abcd [next owner] NS DS RRSIG net. 86400 IN RRSIG DS 13 1 86400 [expiry] [inception] [keytag] . ... net. 86400 IN RRSIG NSEC3 13 1 86400 [expiry] [inception] [keytag] . ... +nsa.nic.uk. 172800 IN A 156.154.100.3 +nsa.nic.uk. 172800 IN AAAA 2001:502:ad09::3 org. 172800 IN NS a.gtld-servers.net. +uk. 172800 IN NS nsa.nic.uk. +uk. 86400 IN DS 43876 8 2 a107ed2ac1bd14d924173bc7e827a1153582072394f9272ba37e2353bc659603 +uk. 86400 IN NSEC3 1 1 1 abcd [next owner] NS DS RRSIG +uk. 86400 IN RRSIG DS 13 1 86400 [expiry] [inception] [keytag] . ... +uk. 86400 IN RRSIG NSEC3 13 1 86400 [expiry] [inception] [keytag] . ... diff --git a/regression-tests.rootzone/tests/ds-at-ent-from-glue/command b/regression-tests.rootzone/tests/ds-at-ent-from-glue/command new file mode 100755 index 0000000000..5eb6bf5cd5 --- /dev/null +++ b/regression-tests.rootzone/tests/ds-at-ent-from-glue/command @@ -0,0 +1 @@ +cleandig co.uk DS diff --git a/regression-tests.rootzone/tests/ds-at-ent-from-glue/description b/regression-tests.rootzone/tests/ds-at-ent-from-glue/description new file mode 100644 index 0000000000..f73191c974 --- /dev/null +++ b/regression-tests.rootzone/tests/ds-at-ent-from-glue/description @@ -0,0 +1,2 @@ +A DS query at empty non-terminal (derived from glue) level. +Should result in a referral response. diff --git a/regression-tests.rootzone/tests/ds-at-ent-from-glue/expected_result b/regression-tests.rootzone/tests/ds-at-ent-from-glue/expected_result new file mode 100644 index 0000000000..c6b505054f --- /dev/null +++ b/regression-tests.rootzone/tests/ds-at-ent-from-glue/expected_result @@ -0,0 +1,5 @@ +1 uk. IN NS 172800 nsa.nic.uk. +2 nsa.nic.uk. IN A 172800 156.154.100.3 +2 nsa.nic.uk. IN AAAA 172800 2001:502:ad09::3 +Rcode: 0 (No Error), RD: 0, QR: 1, TC: 0, AA: 0, opcode: 0 +Reply to question for qname='co.uk.', qtype=DS diff --git a/regression-tests.rootzone/tests/ds-at-ent-from-glue/expected_result.dnssec b/regression-tests.rootzone/tests/ds-at-ent-from-glue/expected_result.dnssec new file mode 100644 index 0000000000..f714a769c8 --- /dev/null +++ b/regression-tests.rootzone/tests/ds-at-ent-from-glue/expected_result.dnssec @@ -0,0 +1,6 @@ +1 uk. IN DS 86400 43876 8 2 a107ed2ac1bd14d924173bc7e827a1153582072394f9272ba37e2353bc659603 +1 uk. IN NS 172800 nsa.nic.uk. +2 nsa.nic.uk. IN A 172800 156.154.100.3 +2 nsa.nic.uk. IN AAAA 172800 2001:502:ad09::3 +Rcode: 0 (No Error), RD: 0, QR: 1, TC: 0, AA: 0, opcode: 0 +Reply to question for qname='co.uk.', qtype=DS diff --git a/regression-tests.rootzone/tests/ds-at-ent/command b/regression-tests.rootzone/tests/ds-at-ent/command new file mode 100755 index 0000000000..5eb6bf5cd5 --- /dev/null +++ b/regression-tests.rootzone/tests/ds-at-ent/command @@ -0,0 +1 @@ +cleandig co.uk DS diff --git a/regression-tests.rootzone/tests/ds-at-ent/description b/regression-tests.rootzone/tests/ds-at-ent/description new file mode 100644 index 0000000000..77ce502b19 --- /dev/null +++ b/regression-tests.rootzone/tests/ds-at-ent/description @@ -0,0 +1 @@ +A DS query at empty non-terminal level. Should result in a referral response. diff --git a/regression-tests.rootzone/tests/ds-at-ent/expected_result b/regression-tests.rootzone/tests/ds-at-ent/expected_result new file mode 100644 index 0000000000..c6b505054f --- /dev/null +++ b/regression-tests.rootzone/tests/ds-at-ent/expected_result @@ -0,0 +1,5 @@ +1 uk. IN NS 172800 nsa.nic.uk. +2 nsa.nic.uk. IN A 172800 156.154.100.3 +2 nsa.nic.uk. IN AAAA 172800 2001:502:ad09::3 +Rcode: 0 (No Error), RD: 0, QR: 1, TC: 0, AA: 0, opcode: 0 +Reply to question for qname='co.uk.', qtype=DS diff --git a/regression-tests.rootzone/tests/ds-at-ent/expected_result.dnssec b/regression-tests.rootzone/tests/ds-at-ent/expected_result.dnssec new file mode 100644 index 0000000000..f714a769c8 --- /dev/null +++ b/regression-tests.rootzone/tests/ds-at-ent/expected_result.dnssec @@ -0,0 +1,6 @@ +1 uk. IN DS 86400 43876 8 2 a107ed2ac1bd14d924173bc7e827a1153582072394f9272ba37e2353bc659603 +1 uk. IN NS 172800 nsa.nic.uk. +2 nsa.nic.uk. IN A 172800 156.154.100.3 +2 nsa.nic.uk. IN AAAA 172800 2001:502:ad09::3 +Rcode: 0 (No Error), RD: 0, QR: 1, TC: 0, AA: 0, opcode: 0 +Reply to question for qname='co.uk.', qtype=DS diff --git a/regression-tests.rootzone/tests/ds-at-glue/command b/regression-tests.rootzone/tests/ds-at-glue/command new file mode 100755 index 0000000000..37428bf160 --- /dev/null +++ b/regression-tests.rootzone/tests/ds-at-glue/command @@ -0,0 +1 @@ +cleandig barney.advsys.co.uk DS diff --git a/regression-tests.rootzone/tests/ds-at-glue/description b/regression-tests.rootzone/tests/ds-at-glue/description new file mode 100644 index 0000000000..9ed8708277 --- /dev/null +++ b/regression-tests.rootzone/tests/ds-at-glue/description @@ -0,0 +1 @@ +A DS query at glue level. Should result in a referral response. diff --git a/regression-tests.rootzone/tests/ds-at-glue/expected_result b/regression-tests.rootzone/tests/ds-at-glue/expected_result new file mode 100644 index 0000000000..8bff825784 --- /dev/null +++ b/regression-tests.rootzone/tests/ds-at-glue/expected_result @@ -0,0 +1,5 @@ +1 uk. IN NS 172800 nsa.nic.uk. +2 nsa.nic.uk. IN A 172800 156.154.100.3 +2 nsa.nic.uk. IN AAAA 172800 2001:502:ad09::3 +Rcode: 0 (No Error), RD: 0, QR: 1, TC: 0, AA: 0, opcode: 0 +Reply to question for qname='barney.advsys.co.uk.', qtype=DS diff --git a/regression-tests.rootzone/tests/ds-at-glue/expected_result.dnssec b/regression-tests.rootzone/tests/ds-at-glue/expected_result.dnssec new file mode 100644 index 0000000000..07271b4037 --- /dev/null +++ b/regression-tests.rootzone/tests/ds-at-glue/expected_result.dnssec @@ -0,0 +1,6 @@ +1 uk. IN DS 86400 43876 8 2 a107ed2ac1bd14d924173bc7e827a1153582072394f9272ba37e2353bc659603 +1 uk. IN NS 172800 nsa.nic.uk. +2 nsa.nic.uk. IN A 172800 156.154.100.3 +2 nsa.nic.uk. IN AAAA 172800 2001:502:ad09::3 +Rcode: 0 (No Error), RD: 0, QR: 1, TC: 0, AA: 0, opcode: 0 +Reply to question for qname='barney.advsys.co.uk.', qtype=DS diff --git a/regression-tests.rootzone/zones/ROOT b/regression-tests.rootzone/zones/ROOT index b183bdd63f..8fd586e68b 100644 --- a/regression-tests.rootzone/zones/ROOT +++ b/regression-tests.rootzone/zones/ROOT @@ -11,3 +11,9 @@ org. 172800 IN NS a.gtld-servers.net. a.gtld-servers.net. 172800 IN A 192.5.6.30 a.gtld-servers.net. 172800 IN AAAA 2001:503:a83e:0:0:0:2:30 + +uk. 86400 IN DS 43876 8 2 A107ED2AC1BD14D924173BC7E827A1153582072394F9272BA37E2353BC659603 +uk. 172800 IN NS nsa.nic.uk. +nsa.nic.uk. 172800 IN AAAA 2001:502:ad09::3 +nsa.nic.uk. 172800 IN A 156.154.100.3 +barney.advsys.co.uk. 172800 IN A 217.23.160.50