]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
add a regression test for wildcard cnames recursor auth
authorbert hubert <bert.hubert@powerdns.com>
Fri, 24 Feb 2017 15:29:00 +0000 (16:29 +0100)
committerbert hubert <bert.hubert@powerdns.com>
Fri, 24 Feb 2017 15:29:00 +0000 (16:29 +0100)
regression-tests.recursor/auth-zone-cname-wildcard/command [new file with mode: 0755]
regression-tests.recursor/auth-zone-cname-wildcard/description [new file with mode: 0644]
regression-tests.recursor/auth-zone-cname-wildcard/expected_result [new file with mode: 0644]

diff --git a/regression-tests.recursor/auth-zone-cname-wildcard/command b/regression-tests.recursor/auth-zone-cname-wildcard/command
new file mode 100755 (executable)
index 0000000..e065224
--- /dev/null
@@ -0,0 +1,2 @@
+cleandig host1.something.auth-zone.example.net. A | sed 's/\(.*\tIN\t[A-Z0-9]\+\t\)\([0-9]\+\)/\13600/'
+cleandig host1.something.auth-zone.example.net. AAAA | sed 's/\(.*\tIN\t[A-Z0-9]\+\t\)\([0-9]\+\)/\13600/'
diff --git a/regression-tests.recursor/auth-zone-cname-wildcard/description b/regression-tests.recursor/auth-zone-cname-wildcard/description
new file mode 100644 (file)
index 0000000..ad02a5f
--- /dev/null
@@ -0,0 +1 @@
+Tries a CNAME wildcard in an authoritative zone in the recursor
diff --git a/regression-tests.recursor/auth-zone-cname-wildcard/expected_result b/regression-tests.recursor/auth-zone-cname-wildcard/expected_result
new file mode 100644 (file)
index 0000000..7789f52
--- /dev/null
@@ -0,0 +1,8 @@
+0      host1.auth-zone.example.net.    IN      A       3600    127.0.0.55
+0      host1.something.auth-zone.example.net.  IN      CNAME   3600    host1.auth-zone.example.net.
+Rcode: 0 (No Error), RD: 1, QR: 1, TC: 0, AA: 0, opcode: 0
+Reply to question for qname='host1.something.auth-zone.example.net.', qtype=A
+0      host1.auth-zone.example.net.    IN      AAAA    3600    2001:db8::1:45ba
+0      host1.something.auth-zone.example.net.  IN      CNAME   3600    host1.auth-zone.example.net.
+Rcode: 0 (No Error), RD: 1, QR: 1, TC: 0, AA: 0, opcode: 0
+Reply to question for qname='host1.something.auth-zone.example.net.', qtype=AAAA