3 target-fetch-policy: "0 0 0 0 0"
7 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
10 SCENARIO_BEGIN Test resolver with a domain sale and NS changes
11 ; and the old operator is nasty, keeps running his server with the old data.
12 ; and lots of lookups keep going towards the domain.
13 ; and the old server is changing the NS record of the old domain.
19 MATCH opcode qtype qname
25 . IN NS K.ROOT-SERVERS.NET.
27 K.ROOT-SERVERS.NET. IN A 193.0.14.129
31 MATCH opcode subdomain
32 ADJUST copy_id copy_query
37 com. IN NS a.gtld-servers.net.
39 a.gtld-servers.net. IN A 192.5.6.30
43 ; a.gtld-servers.net. (before sale of domain)
47 MATCH opcode qtype qname
53 com. IN NS a.gtld-servers.net.
55 a.gtld-servers.net. IN A 192.5.6.30
59 MATCH opcode subdomain
60 ADJUST copy_id copy_query
65 example.com. IN NS ns.example.com.
67 ns.example.com. IN A 1.2.3.4
71 ; a.gtld-servers.net. (after sale of domain)
75 MATCH opcode qtype qname
81 com. IN NS a.gtld-servers.net.
83 a.gtld-servers.net. IN A 192.5.6.30
87 MATCH opcode subdomain
88 ADJUST copy_id copy_query
93 example.com. IN NS ns.example.com.
95 ns.example.com. IN A 8.8.8.8
99 ; ns.example.com. first owner
103 MATCH opcode qtype qname
109 example.com. IN NS ns.example.com.
111 ns.example.com. IN A 1.2.3.4
116 ADJUST copy_id copy_query
119 www.example.com. IN A
121 www.example.com. 3600 IN A 10.20.30.40
123 example.com. 3600 IN NS ns.example.com.
125 ns.example.com. 3600 IN A 1.2.3.4
128 ; nxdomains for any name,type
129 ; last in RANGE so that it matches everything left over.
130 ; it includes the NS record.
133 ADJUST copy_id copy_query
136 www.example.com. IN A
139 example.com. 3600 IN SOA a. b. 1 2 3 4 5
140 example.com. 3600 IN NS ns.example.com.
142 ns.example.com. 3600 IN A 1.2.3.4
146 ; ns.example.com. first owner, NS changed
150 MATCH opcode qtype qname
156 example.com. IN NS nsb.example.com.
158 nsb.example.com. IN A 1.2.3.4
163 ADJUST copy_id copy_query
166 www.example.com. IN A
168 www.example.com. 3600 IN A 10.20.30.40
170 example.com. 3600 IN NS nsb.example.com.
172 nsb.example.com. 3600 IN A 1.2.3.4
175 ; nxdomains for any name,type
176 ; last in RANGE so that it matches everything left over.
177 ; it includes the NS record.
180 ADJUST copy_id copy_query
183 www.example.com. IN A
186 example.com. 3600 IN SOA a. b. 1 2 3 4 5
187 example.com. 3600 IN NS nsb.example.com.
189 nsb.example.com. 3600 IN A 1.2.3.4
193 ; ns.example.com. new owner
197 MATCH opcode qtype qname
203 example.com. IN NS ns.example.com.
205 ns.example.com. IN A 8.8.8.8
209 MATCH opcode qtype qname
213 www.example.com. IN A
215 www.example.com. 3600 IN A 88.88.88.88
217 example.com. 3600 IN NS ns.example.com.
219 ns.example.com. 3600 IN A 8.8.8.8
223 ; Fetch the old record from the old owner.
228 www.example.com. IN A
230 ; recursion happens here.
234 REPLY QR RD RA NOERROR
236 www.example.com. IN A
238 www.example.com. 3600 IN A 10.20.30.40
240 example.com. 3600 IN NS ns.example.com.
242 ns.example.com. 3600 IN A 1.2.3.4
245 ; the domain is sold (right at this time).
246 ; but the information stays in the cache.
248 ; after 1800 secs still the cached answer
249 STEP 20 TIME_PASSES ELAPSE 1800
255 www.example.com. IN A
257 ; recursion happens here.
261 REPLY QR RD RA NOERROR
263 www.example.com. IN A
265 www.example.com. 1800 IN A 10.20.30.40
267 example.com. 1800 IN NS ns.example.com.
269 ns.example.com. 1800 IN A 1.2.3.4
272 ; and ask another query
277 nx1.example.com. IN A
279 ; recursion happens here.
283 REPLY QR RD RA NXDOMAIN
285 nx1.example.com. IN A
288 ; at TTL 5 because TTL capped at ttl of minttl in rdata of SOA.
289 example.com. 5 IN SOA a. b. 1 2 3 4 5
290 example.com. 3600 IN NS nsb.example.com.
292 nsb.example.com. 3600 IN A 1.2.3.4
299 nx1.example.com. IN A
301 ; recursion happens here.
305 REPLY QR RD RA NXDOMAIN
307 nx1.example.com. IN A
310 ; at TTL 5 because TTL capped at ttl of minttl in rdata of SOA.
311 example.com. 5 IN SOA a. b. 1 2 3 4 5
312 example.com. 1800 IN NS nsb.example.com.
314 nsb.example.com. 3600 IN A 1.2.3.4
317 ; after another 1900 seconds the domain must have timed out.
318 STEP 70 TIME_PASSES ELAPSE 1900
320 ; the NS record should have timed out.
325 www.example.com. IN A
327 ; recursion happens here.
331 REPLY QR RD RA NOERROR
333 www.example.com. IN A
335 www.example.com. 3600 IN A 88.88.88.88
337 example.com. 3600 IN NS ns.example.com.
339 ns.example.com. 3600 IN A 8.8.8.8