From a1ddd8637e8b28165a679d8ea0c39ea7348d95fd Mon Sep 17 00:00:00 2001 From: bert hubert Date: Fri, 24 Feb 2017 16:29:00 +0100 Subject: [PATCH] add a regression test for wildcard cnames recursor auth --- .../auth-zone-cname-wildcard/command | 2 ++ .../auth-zone-cname-wildcard/description | 1 + .../auth-zone-cname-wildcard/expected_result | 8 ++++++++ 3 files changed, 11 insertions(+) create mode 100755 regression-tests.recursor/auth-zone-cname-wildcard/command create mode 100644 regression-tests.recursor/auth-zone-cname-wildcard/description create mode 100644 regression-tests.recursor/auth-zone-cname-wildcard/expected_result 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 -- 2.47.2