]> granicus.if.org Git - pdns/commitdiff
add test to catch a powerdns bug with cnames to names which exist, but types that...
authorBert Hubert <bert.hubert@netherlabs.nl>
Mon, 15 Mar 2010 20:20:04 +0000 (20:20 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Mon, 15 Mar 2010 20:20:04 +0000 (20:20 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1541 d19b8d6e-7fed-0310-83ef-9ca221ded41b

regression-tests/cname-but-no-correct-type/command [new file with mode: 0755]
regression-tests/cname-but-no-correct-type/description [new file with mode: 0644]
regression-tests/cname-but-no-correct-type/expected_result [new file with mode: 0644]

diff --git a/regression-tests/cname-but-no-correct-type/command b/regression-tests/cname-but-no-correct-type/command
new file mode 100755 (executable)
index 0000000..9415ebf
--- /dev/null
@@ -0,0 +1,2 @@
+cleandig www.example.com AAAA
+
diff --git a/regression-tests/cname-but-no-correct-type/description b/regression-tests/cname-but-no-correct-type/description
new file mode 100644 (file)
index 0000000..ff65617
--- /dev/null
@@ -0,0 +1,4 @@
+Tries to resolve the AAAA for www.example.com, which is a CNAME to
+outpost.example.com, which has an A record, but no AAAA record. Should show
+CNAME and SOA.
+
diff --git a/regression-tests/cname-but-no-correct-type/expected_result b/regression-tests/cname-but-no-correct-type/expected_result
new file mode 100644 (file)
index 0000000..40d4393
--- /dev/null
@@ -0,0 +1,4 @@
+Reply to question for qname='www.example.com.', qtype=AAAA
+Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
+0      www.example.com.        IN      CNAME   120     outpost.example.com.
+1      example.com.    IN      SOA     120     ns1.example.com. ahu.example.com. 2000081501 28800 7200 604800 86400