From: Wouter Wijngaards Date: Fri, 5 Nov 2010 15:45:53 +0000 (+0000) Subject: Test DS and CNAME in cache. X-Git-Tag: release-1.4.7^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c140638659921929498b6a690c4881efbd3ead33;p=thirdparty%2Funbound.git Test DS and CNAME in cache. git-svn-id: file:///svn/unbound/trunk@2336 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/testdata/val_unsec_cname.rpl b/testdata/val_unsec_cname.rpl index 3650f18ec..a1871401b 100644 --- a/testdata/val_unsec_cname.rpl +++ b/testdata/val_unsec_cname.rpl @@ -256,6 +256,16 @@ a.b.sub.example.com. IN A SECTION ANSWER a.b.sub.example.com. IN CNAME c.c.example.com. ENTRY_END + +ENTRY_BEGIN +MATCH opcode qtype qname +ADJUST copy_id +REPLY QR AA NOERROR +SECTION QUESTION +a.b.sub.example.com. IN DS +SECTION AUTHORITY +b.sub.example.com. IN SOA B-EXAMPLE. b-example. 1 2 3 7 7 +ENTRY_END RANGE_END ; server ns.c.example.com. @@ -294,6 +304,16 @@ c.c.example.com. IN A SECTION ANSWER c.c.example.com. IN A 11.11.11.11 ENTRY_END + +ENTRY_BEGIN +MATCH opcode qtype qname +ADJUST copy_id +REPLY QR AA NOERROR +SECTION QUESTION +c.c.example.com. IN DS +SECTION AUTHORITY +c.example.com. IN SOA C-EXAMPLE. c-example. 1 2 3 4 5 +ENTRY_END RANGE_END STEP 1 QUERY @@ -317,4 +337,23 @@ SECTION AUTHORITY SECTION ADDITIONAL ENTRY_END +; test that a DS query does not get CNAME redirected, but instead +; asked to the right server that has to respond to it. +STEP 20 QUERY +ENTRY_BEGIN +REPLY RD DO +SECTION QUESTION +a.b.sub.example.com. IN DS +ENTRY_END + +STEP 30 CHECK_ANSWER +ENTRY_BEGIN +MATCH all +REPLY QR RD RA NOERROR +SECTION QUESTION +a.b.sub.example.com. IN DS +SECTION AUTHORITY +b.sub.example.com. IN SOA B-EXAMPLE. b-example. 1 2 3 7 7 +ENTRY_END + SCENARIO_END