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 from child nameserver
12 ; child NS record has longer TTL than A record and is thus valid for prefetch.
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 qtype qname
36 com. IN NS a.gtld-servers.net.
38 a.gtld-servers.net. IN A 192.5.6.30
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 qtype qname
64 example.com. IN NS ns.example.com.
66 ns.example.com. IN A 1.2.3.4
74 MATCH opcode qtype qname
80 example.com. IN NS ns.example.com.
82 ns.example.com. IN A 1.2.3.4
86 MATCH opcode qtype qname
92 www.example.com. 1800 IN A 10.20.30.40
94 example.com. 3600 IN NS ns.example.com.
96 ns.example.com. 3600 IN A 1.2.3.4
104 MATCH opcode qtype qname
110 example.com. IN NS ns.example.com.
112 ns.example.com. IN A 1.2.3.4
116 MATCH opcode qtype qname
120 www.example.com. IN A
122 www.example.com. 1800 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
134 www.example.com. IN A
137 ; recursion happens here.
141 REPLY QR RD RA NOERROR
143 www.example.com. IN A
145 www.example.com. 1800 IN A 10.20.30.40
147 example.com. 3600 IN NS ns.example.com.
149 ns.example.com. 3600 IN A 1.2.3.4
152 ; after 900 secs still the cached answer
153 STEP 20 TIME_PASSES ELAPSE 900
159 www.example.com. IN A
161 ; recursion happens here.
165 REPLY QR RD RA NOERROR
167 www.example.com. IN A
169 www.example.com. 900 IN A 10.20.30.40
171 example.com. 2700 IN NS ns.example.com.
173 ns.example.com. 2700 IN A 1.2.3.4
176 ; after 720 we are 180 seconds before the expiry
177 ; (the authority changes behind the scenes to detect new lookup)
178 STEP 50 TIME_PASSES ELAPSE 720
184 www.example.com. IN A
186 ; recursion happens here.
190 REPLY QR RD RA NOERROR
192 www.example.com. IN A
194 www.example.com. 180 IN A 10.20.30.40
196 example.com. 1980 IN NS ns.example.com.
198 ns.example.com. 1980 IN A 1.2.3.4
201 ; let traffic flow for prefetch to happen
203 ; above a cache reply with 10% of the original TTL
204 ; but the actual cache is changed, try to get that
209 www.example.com. IN A
211 ; recursion happens here.
212 STEP 130 CHECK_ANSWER
215 REPLY QR RD RA NOERROR
217 www.example.com. IN A
219 www.example.com. 1800 IN A 10.20.30.40
221 ; The NS rrset (from the child-side NS) is not updated but keeps counting down
222 example.com. 1980 IN NS ns.example.com.
224 ns.example.com. 1980 IN A 1.2.3.4