3 harden-referral-path: no
4 target-fetch-policy: "0 0 0 0 0"
8 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
11 SCENARIO_BEGIN Test scrub of insecure DNAME in answer section
21 STEP 20 CHECK_OUT_QUERY
23 MATCH qname qtype opcode
29 MATCH opcode qtype qname
35 . IN NS K.ROOT-SERVERS.NET.
37 K.ROOT-SERVERS.NET. IN A 193.0.14.129
40 ; query sent to root server
41 STEP 40 CHECK_OUT_QUERY
43 MATCH qname qtype opcode
49 MATCH opcode qtype qname
55 com. IN NS a.gtld-servers.net.
57 a.gtld-servers.net. IN A 192.5.6.30
60 ; query sent to .com server
61 STEP 60 CHECK_OUT_QUERY
63 MATCH qname qtype opcode
68 ; STEP 62 CHECK_OUT_QUERY
70 ; MATCH qname qtype opcode
76 ; MATCH opcode qtype qname
82 ; com. IN NS a.gtld-servers.net.
84 ; a.gtld-servers.net. IN A 192.5.6.30
89 MATCH opcode qtype qname
95 example.com. IN NS ns1.example.com.
97 ns1.example.com. IN A 168.192.2.2
100 STEP 80 CHECK_OUT_QUERY
102 MATCH qname qtype opcode
104 x.y.example.com. IN A
107 ; STEP 82 CHECK_OUT_QUERY
109 ; MATCH qname qtype opcode
115 ; MATCH opcode qtype qname
121 ; example.com. IN NS ns1.example.com.
123 ; ns1.example.com. IN A 168.192.2.2
128 MATCH opcode qtype qname
132 x.y.example.com. IN A
134 y.example.com. DNAME z.example.com.
135 x.y.example.com. IN CNAME x.z.example.com.
136 x.z.example.com. IN A 10.20.30.0
138 example.com. IN NS ns1.example.com.
140 ns1.example.com. IN A 168.192.2.2
143 STEP 100 CHECK_OUT_QUERY
145 MATCH qname qtype opcode
147 x.z.example.com. IN A
151 MATCH opcode qtype qname
155 x.z.example.com. IN A
157 x.z.example.com. IN A 10.20.30.40
159 example.com. IN NS ns1.example.com.
161 ns1.example.com. IN A 168.192.2.2
164 ; answer to first query (simply puts DNAME in cache)
165 STEP 120 CHECK_ANSWER
170 x.y.example.com. IN A
172 y.example.com. DNAME z.example.com.
173 x.y.example.com. IN CNAME x.z.example.com.
174 x.z.example.com. IN A 10.20.30.40
176 example.com. IN NS ns1.example.com.
178 ns1.example.com. IN A 168.192.2.2
181 ; now, DNAME insecure from cache should not be used.
187 other.y.example.com. IN A
190 STEP 210 CHECK_OUT_QUERY
192 MATCH qname qtype opcode
194 other.y.example.com. IN A
198 MATCH opcode qtype qname
202 other.y.example.com. IN A
204 y.example.com. DNAME z.example.com.
205 other.y.example.com. IN CNAME other.z.example.com.
206 other.z.example.com. IN A 50.60.70.0
208 example.com. IN NS ns1.example.com.
210 ns1.example.com. IN A 168.192.2.2
213 STEP 230 CHECK_OUT_QUERY
215 MATCH qname qtype opcode
217 other.z.example.com. IN A
221 MATCH opcode qtype qname
225 other.z.example.com. IN A
227 other.z.example.com. IN A 50.60.70.80
229 example.com. IN NS ns1.example.com.
231 ns1.example.com. IN A 168.192.2.2
234 STEP 250 CHECK_ANSWER
239 other.y.example.com. IN A
241 y.example.com. DNAME z.example.com.
242 other.y.example.com. IN CNAME other.z.example.com.
243 other.z.example.com. IN A 50.60.70.80
245 example.com. IN NS ns1.example.com.
247 ns1.example.com. IN A 168.192.2.2