2 ; config options go here.
3 forward-zone: name: "." forward-addr: 216.0.0.1
6 SCENARIO_BEGIN Test query and cache with type ANY
9 MATCH opcode qtype qname
11 REPLY QR RD RA NOERROR
15 www.example.com. IN A 10.20.30.40
17 www.example.com. IN NS ns.example.com.
19 ns.example.com. IN A 10.20.30.50
23 MATCH opcode qtype qname
25 REPLY QR RD RA NOERROR
27 www.example.com. IN ANY
29 ;; different type in this answer.
30 www.example.com. IN TXT "text"
34 MATCH opcode qtype qname
36 REPLY QR RD RA NOERROR
38 www.example.com. IN AAAA
40 www.example.com. IN AAAA ::5
44 MATCH opcode qname qtype
46 REPLY QR RD RA NOERROR
50 www.foo.com. IN A 1.2.3.77
51 www.foo.com. IN AAAA ::77
62 ; unneccesary nothing steps.
66 MATCH opcode qname qtype
70 www.example.com. IN A 10.20.30.40
73 ; test cache synthesis
78 www.example.com. IN ANY
83 MATCH opcode qname qtype
85 www.example.com. IN ANY
87 www.example.com. IN A 10.20.30.40
91 ; the synthesized result itself is not added to the cache
96 www.example.com. IN ANY
101 MATCH opcode qname qtype
103 www.example.com. IN ANY
105 www.example.com. IN A 10.20.30.40
108 ; AAAA lookup to add more data in cache
113 www.example.com. IN AAAA
118 MATCH opcode qname qtype
120 www.example.com. IN AAAA
122 www.example.com. IN AAAA ::5
125 ; test cache synthesis of AAAA, and two rrsets.
130 www.example.com. IN ANY
133 STEP 120 CHECK_ANSWER
135 MATCH opcode qname qtype
137 www.example.com. IN ANY
139 www.example.com. IN A 10.20.30.40
140 www.example.com. IN AAAA ::5
143 ; test query that is not synthesized from cache.
151 STEP 150 CHECK_ANSWER
153 MATCH opcode qname qtype
157 www.foo.com. IN A 1.2.3.77
158 www.foo.com. IN AAAA ::77