From: Bert Hubert Date: Mon, 15 Mar 2010 20:20:04 +0000 (+0000) Subject: add test to catch a powerdns bug with cnames to names which exist, but types that... X-Git-Tag: rec-3.3~161 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7103eeffedc3074f16988c4afd13229fe82c147a;p=pdns add test to catch a powerdns bug with cnames to names which exist, but types that don't. impacts the wikipedia. git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1541 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/regression-tests/cname-but-no-correct-type/command b/regression-tests/cname-but-no-correct-type/command new file mode 100755 index 000000000..9415ebfc6 --- /dev/null +++ b/regression-tests/cname-but-no-correct-type/command @@ -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 index 000000000..ff65617d1 --- /dev/null +++ b/regression-tests/cname-but-no-correct-type/description @@ -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 index 000000000..40d4393b4 --- /dev/null +++ b/regression-tests/cname-but-no-correct-type/expected_result @@ -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