]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth: add referral response tests for DS queries
authorKees Monshouwer <mind04@monshouwer.org>
Tue, 26 Mar 2019 23:50:25 +0000 (00:50 +0100)
committermind04 <mind04@monshouwer.org>
Thu, 28 Mar 2019 14:54:04 +0000 (15:54 +0100)
17 files changed:
regression-tests.rootzone/tests/axfr/expected_result
regression-tests.rootzone/tests/axfr/expected_result.dnssec
regression-tests.rootzone/tests/axfr/expected_result.nsec3
regression-tests.rootzone/tests/axfr/expected_result.nsec3-optout
regression-tests.rootzone/tests/ds-at-ent-from-glue/command [new file with mode: 0755]
regression-tests.rootzone/tests/ds-at-ent-from-glue/description [new file with mode: 0644]
regression-tests.rootzone/tests/ds-at-ent-from-glue/expected_result [new file with mode: 0644]
regression-tests.rootzone/tests/ds-at-ent-from-glue/expected_result.dnssec [new file with mode: 0644]
regression-tests.rootzone/tests/ds-at-ent/command [new file with mode: 0755]
regression-tests.rootzone/tests/ds-at-ent/description [new file with mode: 0644]
regression-tests.rootzone/tests/ds-at-ent/expected_result [new file with mode: 0644]
regression-tests.rootzone/tests/ds-at-ent/expected_result.dnssec [new file with mode: 0644]
regression-tests.rootzone/tests/ds-at-glue/command [new file with mode: 0755]
regression-tests.rootzone/tests/ds-at-glue/description [new file with mode: 0644]
regression-tests.rootzone/tests/ds-at-glue/expected_result [new file with mode: 0644]
regression-tests.rootzone/tests/ds-at-glue/expected_result.dnssec [new file with mode: 0644]
regression-tests.rootzone/zones/ROOT

index 0b76cb425d402885dfa7ea8891a3818fda4a7802..29b81b58ad28fa797dd0a5fa37876e2ca9aaee5e 100644 (file)
@@ -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
index f89385cf385a3564e71d964d27099648d43cc055..db244622a2bc07ac658038c12366e49fb767c0e8 100644 (file)
@@ -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] . ...
index aa6d56d3c0f9b38b571415c5f043ab63a0321ca4..28e62f8985adc69ddf116262c753eda5d65bfe73 100644 (file)
@@ -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] . ...
index ed8d610f2cfe949b5520f5a812484cb2dac46a4c..d86c7120534f213636ad8e23a2fb50e2c6b61490 100644 (file)
@@ -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 (executable)
index 0000000..5eb6bf5
--- /dev/null
@@ -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 (file)
index 0000000..f73191c
--- /dev/null
@@ -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 (file)
index 0000000..c6b5050
--- /dev/null
@@ -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 (file)
index 0000000..f714a76
--- /dev/null
@@ -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 (executable)
index 0000000..5eb6bf5
--- /dev/null
@@ -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 (file)
index 0000000..77ce502
--- /dev/null
@@ -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 (file)
index 0000000..c6b5050
--- /dev/null
@@ -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 (file)
index 0000000..f714a76
--- /dev/null
@@ -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 (executable)
index 0000000..37428bf
--- /dev/null
@@ -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 (file)
index 0000000..9ed8708
--- /dev/null
@@ -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 (file)
index 0000000..8bff825
--- /dev/null
@@ -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 (file)
index 0000000..07271b4
--- /dev/null
@@ -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
index b183bdd63f010a6cb0b8eedd2c342d040af49fbb..8fd586e68b11211056f18bfe9f96e67c86f2de41 100644 (file)
@@ -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