3 target-fetch-policy: "0 0 0 0 0"
8 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
11 SCENARIO_BEGIN Test resolver prefetch and a moved domain 2.
12 ; for slightly different query pattern.
18 MATCH opcode qtype qname
24 . IN NS K.ROOT-SERVERS.NET.
26 K.ROOT-SERVERS.NET. IN A 193.0.14.129
30 MATCH opcode subdomain
31 ADJUST copy_id copy_query
36 com. IN NS a.gtld-servers.net.
38 a.gtld-servers.net. IN A 192.5.6.30
42 ; a.gtld-servers.net. (before sale of domain)
46 MATCH opcode qtype qname
52 com. IN NS a.gtld-servers.net.
54 a.gtld-servers.net. IN A 192.5.6.30
58 MATCH opcode subdomain
59 ADJUST copy_id copy_query
64 example.com. 86400 IN NS old-ns.example.com.
66 old-ns.example.com. 86400 IN A 192.168.0.1
70 ; a.gtld-servers.net. (after sale of domain)
74 MATCH opcode qtype qname
80 com. IN NS a.gtld-servers.net.
82 a.gtld-servers.net. IN A 192.5.6.30
86 MATCH opcode subdomain
87 ADJUST copy_id copy_query
92 example.com. 86400 IN NS new-ns.example.com.
94 new-ns.example.com. 86400 IN A 172.16.0.1
98 ; ns.example.com. first owner
102 MATCH opcode qtype qname
108 example.com. 300 IN NS old-ns.example.com.
110 old-ns.example.com. 300 IN A 192.168.0.1
114 MATCH opcode qtype qname
118 www.example.com. IN A
120 www.example.com. 300 IN A 10.1.1.1
122 example.com. 300 IN NS old-ns.example.com.
124 old-ns.example.com. 300 IN A 192.168.0.1
128 ; ns.example.com. new owner
132 MATCH opcode qtype qname
138 example.com. 86400 IN NS new-ns.example.com.
140 new-ns.example.com. 86400 IN A 172.16.0.1
144 MATCH opcode qtype qname
148 old-ns.example.com. IN A
150 old-ns.example.com. 86400 IN A 172.16.0.1
152 example.com. 86400 IN NS new-ns.example.com.
154 new-ns.example.com. 86400 IN A 172.16.0.1
158 MATCH opcode qtype qname
162 www.example.com. IN A
164 www.example.com. 86400 IN A 10.2.2.2
166 example.com. 86400 IN NS new-ns.example.com.
168 new-ns.example.com. 86400 IN A 172.16.0.1
176 www.example.com. IN A
178 ; recursion happens here.
182 REPLY QR RD RA NOERROR
184 www.example.com. IN A
186 www.example.com. 300 IN A 10.1.1.1
188 example.com. 300 IN NS old-ns.example.com.
190 old-ns.example.com. 300 IN A 192.168.0.1
193 ; after 40 secs still the cached answer
194 STEP 20 TIME_PASSES ELAPSE 40
200 www.example.com. IN A
202 ; recursion happens here.
206 REPLY QR RD RA NOERROR
208 www.example.com. IN A
210 www.example.com. 260 IN A 10.1.1.1
212 example.com. 260 IN NS old-ns.example.com.
214 old-ns.example.com. 260 IN A 192.168.0.1
217 ; after 230 we are 30 seconds before expiry, prefetch happens.
218 STEP 50 TIME_PASSES ELAPSE 230
224 www.example.com. IN A
226 ; recursion happens here.
230 REPLY QR RD RA NOERROR
232 www.example.com. IN A
234 www.example.com. 30 IN A 10.1.1.1
236 example.com. 30 IN NS old-ns.example.com.
238 old-ns.example.com. 30 IN A 192.168.0.1
242 ; let traffic flow for prefetch to happen
244 ; we updated from the old-ns.
249 www.example.com. IN A
251 ; recursion happens here.
252 STEP 100 CHECK_ANSWER
255 REPLY QR RD RA NOERROR
257 www.example.com. IN A
259 www.example.com. 86400 IN A 10.2.2.2
261 example.com. 86400 IN NS new-ns.example.com.
263 new-ns.example.com. 86400 IN A 172.16.0.1
266 ; the NS record times out after 31 seconds.
267 STEP 160 TIME_PASSES ELAPSE 31
274 www.example.com. IN A
276 ; recursion happens here.
277 STEP 180 CHECK_ANSWER
280 REPLY QR RD RA NOERROR
282 www.example.com. IN A
284 www.example.com. 86369 IN A 10.2.2.2
286 example.com. 86369 IN NS new-ns.example.com.
288 new-ns.example.com. 86369 IN A 172.16.0.1
296 www.example.com. IN A
298 ; recursion happens here.
299 STEP 200 CHECK_ANSWER
302 REPLY QR RD RA NOERROR
304 www.example.com. IN A
306 www.example.com. 86369 IN A 10.2.2.2
308 example.com. 86369 IN NS new-ns.example.com.
310 new-ns.example.com. 86369 IN A 172.16.0.1