3 target-fetch-policy: "0 0 0 0 0"
4 qname-minimisation: "no"
10 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
13 SCENARIO_BEGIN Test resolver prefetch of almost expired data
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 qtype qname
37 com. IN NS a.gtld-servers.net.
39 a.gtld-servers.net. IN A 192.5.6.30
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 qtype qname
65 example.com. IN NS ns.example.com.
67 ns.example.com. IN A 1.2.3.4
75 MATCH opcode qtype qname
81 example.com. IN NS ns.example.com.
83 ns.example.com. IN A 1.2.3.4
87 MATCH opcode qtype qname
93 www.example.com. 3600 IN A 10.20.30.40
95 example.com. 3600 IN NS ns.example.com.
97 ns.example.com. 3600 IN A 1.2.3.4
105 MATCH opcode qtype qname
111 example.com. IN NS ns.example.com.
113 ns.example.com. IN A 1.2.3.4
117 MATCH opcode qtype qname
121 www.example.com. IN A
123 www.example.com. 3600 IN A 10.20.30.40
125 example.com. 3600 IN NS ns.example.com.
127 ns.example.com. 3600 IN A 1.2.3.4
135 www.example.com. IN A
138 ; recursion happens here.
142 REPLY QR RD RA NOERROR
144 www.example.com. IN A
146 www.example.com. 3600 IN A 10.20.30.40
148 example.com. 3600 IN NS ns.example.com.
150 ns.example.com. 3600 IN A 1.2.3.4
153 ; after 1800 secs still the cached answer
154 STEP 20 TIME_PASSES ELAPSE 1800
160 www.example.com. IN A
162 ; recursion happens here.
166 REPLY QR RD RA NOERROR
168 www.example.com. IN A
170 www.example.com. 1800 IN A 10.20.30.40
172 example.com. 1800 IN NS ns.example.com.
174 ns.example.com. 1800 IN A 1.2.3.4
177 ; after 1440 we are 360 seconds before the expiry
178 ; (the authority changes behind the scenes to detect new lookup)
179 STEP 50 TIME_PASSES ELAPSE 1440
185 www.example.com. IN A
187 ; recursion happens here.
191 REPLY QR RD RA NOERROR
193 www.example.com. IN A
195 www.example.com. 360 IN A 10.20.30.40
197 example.com. 360 IN NS ns.example.com.
199 ns.example.com. 360 IN A 1.2.3.4
202 ; let traffic flow for prefetch to happen
204 ; above a cache reply with 10% of the original TTL
205 ; but the actual cache is changed, try to get that
210 www.example.com. IN A
212 ; recursion happens here.
213 STEP 130 CHECK_ANSWER
216 REPLY QR RD RA NOERROR
218 www.example.com. IN A
220 www.example.com. 3600 IN A 10.20.30.40
222 ; NS rrset picked up from parent-NS (the child-NS timed out at now+prefetch)
223 example.com. 3600 IN NS ns.example.com.
225 ns.example.com. 3600 IN A 1.2.3.4