]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Test DS and CNAME in cache. release-1.4.7
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 5 Nov 2010 15:45:53 +0000 (15:45 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 5 Nov 2010 15:45:53 +0000 (15:45 +0000)
git-svn-id: file:///svn/unbound/trunk@2336 be551aaa-1e26-0410-a405-d3ace91eadb9

testdata/val_unsec_cname.rpl

index 3650f18ec01f7ef29e2c831899dfca9144d9fbf4..a1871401bad23988d1579b84b922524ddb3947ff 100644 (file)
@@ -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