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 from child nameserver
14 ; child NS record has longer TTL than A record and is thus valid for prefetch.
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 qtype qname
38 com. IN NS a.gtld-servers.net.
40 a.gtld-servers.net. IN A 192.5.6.30
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 qtype qname
66 example.com. IN NS ns.example.com.
68 ns.example.com. IN A 1.2.3.4
76 MATCH opcode qtype qname
82 example.com. IN NS ns.example.com.
84 ns.example.com. IN A 1.2.3.4
88 MATCH opcode qtype qname
94 www.example.com. 1800 IN A 10.20.30.40
96 example.com. 3600 IN NS ns.example.com.
98 ns.example.com. 3600 IN A 1.2.3.4
106 MATCH opcode qtype qname
112 example.com. IN NS ns.example.com.
114 ns.example.com. IN A 1.2.3.4
118 MATCH opcode qtype qname
122 www.example.com. IN A
124 www.example.com. 1800 IN A 10.20.30.40
126 example.com. 3600 IN NS ns.example.com.
128 ns.example.com. 3600 IN A 1.2.3.4
136 www.example.com. IN A
139 ; recursion happens here.
143 REPLY QR RD RA NOERROR
145 www.example.com. IN A
147 www.example.com. 1800 IN A 10.20.30.40
149 example.com. 3600 IN NS ns.example.com.
151 ns.example.com. 3600 IN A 1.2.3.4
154 ; after 900 secs still the cached answer
155 STEP 20 TIME_PASSES ELAPSE 900
161 www.example.com. IN A
163 ; recursion happens here.
167 REPLY QR RD RA NOERROR
169 www.example.com. IN A
171 www.example.com. 900 IN A 10.20.30.40
173 example.com. 2700 IN NS ns.example.com.
175 ns.example.com. 2700 IN A 1.2.3.4
178 ; after 720 we are 180 seconds before the expiry
179 ; (the authority changes behind the scenes to detect new lookup)
180 STEP 50 TIME_PASSES ELAPSE 720
186 www.example.com. IN A
188 ; recursion happens here.
192 REPLY QR RD RA NOERROR
194 www.example.com. IN A
196 www.example.com. 180 IN A 10.20.30.40
198 example.com. 1980 IN NS ns.example.com.
200 ns.example.com. 1980 IN A 1.2.3.4
203 ; let traffic flow for prefetch to happen
205 ; above a cache reply with 10% of the original TTL
206 ; but the actual cache is changed, try to get that
211 www.example.com. IN A
213 ; recursion happens here.
214 STEP 130 CHECK_ANSWER
217 REPLY QR RD RA NOERROR
219 www.example.com. IN A
221 www.example.com. 1800 IN A 10.20.30.40
223 ; The NS rrset (from the child-side NS) is not updated but keeps counting down
224 example.com. 1980 IN NS ns.example.com.
226 ns.example.com. 1980 IN A 1.2.3.4