From: bert hubert Date: Fri, 24 Feb 2017 15:29:00 +0000 (+0100) Subject: add a regression test for wildcard cnames recursor auth X-Git-Tag: rec-4.1.0-alpha1~248^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1ddd8637e8b28165a679d8ea0c39ea7348d95fd;p=thirdparty%2Fpdns.git add a regression test for wildcard cnames recursor auth --- diff --git a/regression-tests.recursor/auth-zone-cname-wildcard/command b/regression-tests.recursor/auth-zone-cname-wildcard/command new file mode 100755 index 0000000000..e065224f99 --- /dev/null +++ b/regression-tests.recursor/auth-zone-cname-wildcard/command @@ -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 index 0000000000..ad02a5f03a --- /dev/null +++ b/regression-tests.recursor/auth-zone-cname-wildcard/description @@ -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 index 0000000000..7789f52444 --- /dev/null +++ b/regression-tests.recursor/auth-zone-cname-wildcard/expected_result @@ -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