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 with a domain sale
12 ; and the old operator is nasty, keeps running his server with the old data.
13 ; and lots of lookups keep going towards the domain.
14 ; eventually, the NS record has to timeout.
20 MATCH opcode qtype qname
26 . IN NS K.ROOT-SERVERS.NET.
28 K.ROOT-SERVERS.NET. IN A 193.0.14.129
32 MATCH opcode subdomain
33 ADJUST copy_id copy_query
38 com. IN NS a.gtld-servers.net.
40 a.gtld-servers.net. IN A 192.5.6.30
44 ; a.gtld-servers.net. (before sale of domain)
48 MATCH opcode qtype qname
54 com. IN NS a.gtld-servers.net.
56 a.gtld-servers.net. IN A 192.5.6.30
60 MATCH opcode subdomain
61 ADJUST copy_id copy_query
66 example.com. IN NS ns.example.com.
68 ns.example.com. IN A 1.2.3.4
72 ; a.gtld-servers.net. (after sale of domain)
76 MATCH opcode qtype qname
82 com. IN NS a.gtld-servers.net.
84 a.gtld-servers.net. IN A 192.5.6.30
88 MATCH opcode subdomain
89 ADJUST copy_id copy_query
94 example.com. IN NS ns.example.com.
96 ns.example.com. IN A 8.8.8.8
100 ; ns.example.com. first owner
104 MATCH opcode qtype qname
110 example.com. IN NS ns.example.com.
112 ns.example.com. IN A 1.2.3.4
117 ADJUST copy_id copy_query
120 www.example.com. IN A
122 www.example.com. 3600 IN A 10.20.30.40
124 example.com. 3600 IN NS ns.example.com.
126 ns.example.com. 3600 IN A 1.2.3.4
129 ; nxdomains for any name,type
130 ; last in RANGE so that it matches everything left over.
131 ; it includes the NS record.
134 ADJUST copy_id copy_query
137 www.example.com. IN A
140 example.com. 3600 IN SOA a. b. 1 2 3 4 5
141 example.com. 3600 IN NS ns.example.com.
143 ns.example.com. 3600 IN A 1.2.3.4
147 ; ns.example.com. new owner
151 MATCH opcode qtype qname
157 example.com. IN NS ns.example.com.
159 ns.example.com. IN A 8.8.8.8
163 MATCH opcode qtype qname
167 www.example.com. IN A
169 www.example.com. 3600 IN A 88.88.88.88
171 example.com. 3600 IN NS ns.example.com.
173 ns.example.com. 3600 IN A 8.8.8.8
177 ; Fetch the old record from the old owner.
182 www.example.com. IN A
184 ; recursion happens here.
188 REPLY QR RD RA NOERROR
190 www.example.com. IN A
192 www.example.com. 3600 IN A 10.20.30.40
194 example.com. 3600 IN NS ns.example.com.
196 ns.example.com. 3600 IN A 1.2.3.4
199 ; the domain is sold (right at this time).
200 ; but the information stays in the cache.
202 ; after 1800 secs still the cached answer
203 STEP 20 TIME_PASSES ELAPSE 1800
209 www.example.com. IN A
211 ; recursion happens here.
215 REPLY QR RD RA NOERROR
217 www.example.com. IN A
219 www.example.com. 1800 IN A 10.20.30.40
221 example.com. 1800 IN NS ns.example.com.
223 ns.example.com. 1800 IN A 1.2.3.4
226 ; and ask another query
231 nx1.example.com. IN A
233 ; recursion happens here.
237 REPLY QR RD RA NXDOMAIN
239 nx1.example.com. IN A
242 ; at TTL 5 because TTL is capped at min-ttl of 5 in rdata of SOA
243 example.com. 5 IN SOA a. b. 1 2 3 4 5
244 ;example.com. 1800 IN NS ns.example.com.
246 ;ns.example.com. 1800 IN A 1.2.3.4
249 ; after another 1900 seconds the domain must have timed out.
250 STEP 70 TIME_PASSES ELAPSE 1900
252 ; the NS record should have timed out.
257 www.example.com. IN A
259 ; recursion happens here.
263 REPLY QR RD RA NOERROR
265 www.example.com. IN A
267 www.example.com. 3600 IN A 88.88.88.88
269 example.com. 3600 IN NS ns.example.com.
271 ns.example.com. 3600 IN A 8.8.8.8