3 target-fetch-policy: "0 0 0 0 0"
6 trust-anchor-signaling: no
9 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
10 ; initial content (say from dig example.com DNSKEY > example.com.key)
11 AUTOTRUST_FILE example.com
12 example.com. 10800 IN DNSKEY 257 3 5 AwEAAc3Z5DQDJpH4oPdNtC4BUQHk50XMD+dHr4r8psHmivIa83hxR5CRgCtd9sENCW9Ae8OIO19xw9t/RPaEAqQa+OE= ;{id = 55582 (ksk), size = 512b}
13 example.com. 10800 IN DNSKEY 256 3 5 AQPQ41chR9DEHt/aIzIFAqanbDlRflJoRs5yz1jFsoRIT7dWf0r+PeDuewdxkszNH6wnU4QL8pfKFRh5PIYVBLK3 ;{id = 30899 (zsk), size = 512b}
17 SCENARIO_BEGIN Test autotrust with algorithm rollover to unknown algo
18 ; from RSASHA1(5) to 'unknown' (157)
19 ; 157 is really the algocode for HMACMD5, which is not used for DNSSEC.
20 ; the signatures are made with a DSA key (02855) but the algorithm is
21 ; edited (afterwards) to be 157. So the RRSIGs do not verify.
27 MATCH opcode qname qtype
28 ADJUST copy_id copy_query
33 . IN NS k.root-servers.net.
35 k.root-servers.net IN A 193.0.14.129
39 MATCH opcode subdomain
40 ADJUST copy_id copy_query
45 com. IN NS a.gtld-servers.net.
47 a.gtld-servers.net. IN A 192.5.6.30
55 MATCH opcode subdomain
56 ADJUST copy_id copy_query
61 example.com. IN NS ns.example.com.
63 ns.example.com. IN A 1.2.3.4
67 ; ns.example.com. KSK 55582
71 MATCH opcode qname qtype
77 www.example.com. 3600 IN A 10.20.30.40
78 www.example.com. 3600 IN RRSIG A 5 3 3600 20090924111500 20090821111500 30899 example.com. pYGxVLsWUvOp1wSf0iwPap+JnECfC5GAm1lRqy3YEqecNGld7U7x/5Imo3CerbdZrVptUQs2oH0lcjwYJXMnsw== ;{id = 30899}
80 example.com. 3600 IN NS ns.example.com.
81 example.com. 3600 IN RRSIG NS 5 2 3600 20090924111500 20090821111500 30899 example.com. J5wxRq0jgwQL6yy530kvo9cHqNAUHV8IF4dvaYZL0bNraO2Oe6dVXqlJl4+cxNHI2TMsstwFPr2Zz8tv6Az2mQ== ;{id = 30899}
83 ns.example.com. 3600 IN A 1.2.3.4
84 ns.example.com. 3600 IN RRSIG A 5 3 3600 20090924111500 20090821111500 30899 example.com. JsXbS18oyc0zkVaOWGSFdIQuOsZKflT0GraT9afDPoWLCgH4ApF7jNgfJV7Pqy1sTBRajME5IUAhpANwGBuW4A== ;{id = 30899}
88 MATCH opcode qname qtype
92 example.com. IN DNSKEY
95 example.com. 10800 IN DNSKEY 257 3 5 AwEAAc3Z5DQDJpH4oPdNtC4BUQHk50XMD+dHr4r8psHmivIa83hxR5CRgCtd9sENCW9Ae8OIO19xw9t/RPaEAqQa+OE= ;{id = 55582 (ksk), size = 512b}
97 example.com. 10800 IN DNSKEY 256 3 5 AQPQ41chR9DEHt/aIzIFAqanbDlRflJoRs5yz1jFsoRIT7dWf0r+PeDuewdxkszNH6wnU4QL8pfKFRh5PIYVBLK3 ;{id = 30899 (zsk), size = 512b}
99 example.com. 10800 IN RRSIG DNSKEY 5 2 10800 20090924111500 20090821111500 30899 example.com. b/HK231jIQLX8IhlZfup3r0yhpXaasbPE6LzxoEVVvWaTZWcLmeV8jDIcn0qO7Yvs7bIJN20lwVAV0GcHH3hWQ== ;{id = 30899}
100 example.com. 10800 IN RRSIG DNSKEY 5 2 10800 20090924111500 20090821111500 55582 example.com. PCHme1QLoULxqjhg5tMlpR0qJlBfstEUVq18TtNoKQe9le1YhJ9caheXcTWoK+boLhXxg9u6Yyvq8FboQh0OjA== ;{id = 55582}
104 ; ns.example.com. KSK 55582 and 02855
108 MATCH opcode qname qtype
112 example.com. IN DNSKEY
115 example.com. 10800 IN DNSKEY 257 3 5 AwEAAc3Z5DQDJpH4oPdNtC4BUQHk50XMD+dHr4r8psHmivIa83hxR5CRgCtd9sENCW9Ae8OIO19xw9t/RPaEAqQa+OE= ;{id = 55582 (ksk), size = 512b}
117 example.com. 10800 IN DNSKEY 257 3 157 ALXLUsWqUrY3JYER3T4TBJIIs70j+sDS/UT2QRp61SE7S3EEXopNXoFE73JLRmvpi/UrOO/Vz4Se6wXv/CYCKjGw06U4WRgRYXcpEhJROyNapmdIKSxhOzfLVE1gqA0PweZR8dtY3aNQSRn3sPpwJr6Mi/PqQKAMMrZ9ckJpf1+bQMOOvxgzz2U1GS18b3yZKcgTMEaJzd/GZYzi/BN2DzQ0MsrSwYXfsNLFOBbs8PJMW4LYIxeeOe6rUgkWOF7CC9Dh/dduQ1QrsJhmZAEFfd6ByYV+ ;{id = 2855 (ksk), size = 1688b}
118 ; and two ZSKs (omitted) for both algorithms.
120 example.com. 10800 IN RRSIG DNSKEY 5 2 10800 20091024111500 20090921111500 55582 example.com. Wp40P+Odx5gh1Zpjwa1YBwwKnqhobPSkv55sEb21vvKpLE2NNt7B6vZqRLg+bBiW0T/vRdo4w+7whKANVuPrtA== ;{id = 55582}
121 example.com. 10800 IN RRSIG DNSKEY 157 2 10800 20091024111500 20090921111500 2855 example.com. AKdhmjqEbe0STsFNq/UxOidElaWHWCy2hSPQ7oN0Tsq56w6Hsk72PpM= ;{id = 2855}
125 ; ns.example.com. KSK 55582 and 02855 (signatures updated)
129 MATCH opcode qname qtype
133 example.com. IN DNSKEY
136 example.com. 10800 IN DNSKEY 257 3 5 AwEAAc3Z5DQDJpH4oPdNtC4BUQHk50XMD+dHr4r8psHmivIa83hxR5CRgCtd9sENCW9Ae8OIO19xw9t/RPaEAqQa+OE= ;{id = 55582 (ksk), size = 512b}
138 example.com. 10800 IN DNSKEY 257 3 157 ALXLUsWqUrY3JYER3T4TBJIIs70j+sDS/UT2QRp61SE7S3EEXopNXoFE73JLRmvpi/UrOO/Vz4Se6wXv/CYCKjGw06U4WRgRYXcpEhJROyNapmdIKSxhOzfLVE1gqA0PweZR8dtY3aNQSRn3sPpwJr6Mi/PqQKAMMrZ9ckJpf1+bQMOOvxgzz2U1GS18b3yZKcgTMEaJzd/GZYzi/BN2DzQ0MsrSwYXfsNLFOBbs8PJMW4LYIxeeOe6rUgkWOF7CC9Dh/dduQ1QrsJhmZAEFfd6ByYV+ ;{id = 2855 (ksk), size = 1688b}
140 example.com. 10800 IN RRSIG DNSKEY 5 2 10800 20091124111500 20091018111500 55582 example.com. FXY4N99Udr/2Q+9oU4Dil9B8XQCBcaU0NlqJ9HnwZoLqzKiPhtxNlldU2Ab5TmuXfnkTT1bTYvsq5Dz6P3ezbw== ;{id = 55582}
141 example.com. 10800 IN RRSIG DNSKEY 157 2 10800 20091124111500 20091018111500 2855 example.com. ABJyZ97htJyBFk5wsKml3YAz81FpXkQKdJeC++fB5ysvl3i+zKJFzTo= ;{id = 2855}
145 ; ns.example.com. KSK 55582-REVOKED and 02855
149 MATCH opcode qname qtype
153 example.com. IN DNSKEY
156 example.com. 10800 IN DNSKEY 385 3 5 AwEAAc3Z5DQDJpH4oPdNtC4BUQHk50XMD+dHr4r8psHmivIa83hxR5CRgCtd9sENCW9Ae8OIO19xw9t/RPaEAqQa+OE= ;{id = 55710 (ksk), size = 512b}
158 example.com. 10800 IN DNSKEY 257 3 157 ALXLUsWqUrY3JYER3T4TBJIIs70j+sDS/UT2QRp61SE7S3EEXopNXoFE73JLRmvpi/UrOO/Vz4Se6wXv/CYCKjGw06U4WRgRYXcpEhJROyNapmdIKSxhOzfLVE1gqA0PweZR8dtY3aNQSRn3sPpwJr6Mi/PqQKAMMrZ9ckJpf1+bQMOOvxgzz2U1GS18b3yZKcgTMEaJzd/GZYzi/BN2DzQ0MsrSwYXfsNLFOBbs8PJMW4LYIxeeOe6rUgkWOF7CC9Dh/dduQ1QrsJhmZAEFfd6ByYV+ ;{id = 2855 (ksk), size = 1688b}
160 example.com. 10800 IN RRSIG DNSKEY 5 2 10800 20091224111500 20091118111500 55710 example.com. w5hXwGyeLHWTzdStx4yjB7LNzt86u9A+Qpl3rtQlTKN/qkWIT+Hxa3M32P6jhFTpf+Iq1K9T06mKM21L3TQAOg== ;{id = 55710}
161 example.com. 10800 IN RRSIG DNSKEY 157 2 10800 20091224111500 20091118111500 2855 example.com. AFAbqLJsTDBfwAipE84ETdFTfzKHs7pzdyzjTKHR2VXygGvHY4QsBaA= ;{id = 2855}
162 ; wrong keytag: 55582
166 ; ns.example.com. KSK 02855
170 MATCH opcode qname qtype
174 example.com. IN DNSKEY
177 example.com. 10800 IN DNSKEY 257 3 157 ALXLUsWqUrY3JYER3T4TBJIIs70j+sDS/UT2QRp61SE7S3EEXopNXoFE73JLRmvpi/UrOO/Vz4Se6wXv/CYCKjGw06U4WRgRYXcpEhJROyNapmdIKSxhOzfLVE1gqA0PweZR8dtY3aNQSRn3sPpwJr6Mi/PqQKAMMrZ9ckJpf1+bQMOOvxgzz2U1GS18b3yZKcgTMEaJzd/GZYzi/BN2DzQ0MsrSwYXfsNLFOBbs8PJMW4LYIxeeOe6rUgkWOF7CC9Dh/dduQ1QrsJhmZAEFfd6ByYV+ ;{id = 2855 (ksk), size = 1688b}
179 example.com. 10800 IN RRSIG DNSKEY 157 2 10800 20101224111500 20101118111500 2855 example.com. AJv9ujre3iUykHlhJpLYPqsXq12lmQp+AHUPSPpE5zuUhXAPjbnbewk= ;{id = 2855}
183 ; set date/time to Aug 24 07:46:40 (2009).
184 STEP 5 TIME_PASSES ELAPSE 1251100000
185 STEP 6 TRAFFIC ; the initial probe
186 STEP 7 ASSIGN t0 = ${time}
187 STEP 8 ASSIGN probe0 = ${range 4800 ${timeout} 5400}
189 ; the auto probing should have been done now.
190 STEP 10 CHECK_AUTOTRUST example.com
192 ; autotrust trust anchor file
194 ;;last_queried: ${$t0} ;;${ctime $t0}
195 ;;last_success: ${$t0} ;;${ctime $t0}
196 ;;next_probe_time: ${$t0 + $probe0} ;;${ctime $t0 + $probe0}
198 ;;query_interval: 5400
200 example.com. 10800 IN DNSKEY 257 3 5 AwEAAc3Z5DQDJpH4oPdNtC4BUQHk50XMD+dHr4r8psHmivIa83hxR5CRgCtd9sENCW9Ae8OIO19xw9t/RPaEAqQa+OE= ;{id = 55582 (ksk), size = 512b} ;;state=2 [ VALID ] ;;count=0 ;;lastchange=${$t0} ;;${ctime $t0}
203 ; key prepublished. First poll. 30 days later
204 STEP 11 TIME_PASSES EVAL ${30*24*3600}
206 STEP 13 ASSIGN t1 = ${time}
207 STEP 14 ASSIGN probe1 = ${range 4800 ${timeout} 5400}
208 STEP 15 CHECK_AUTOTRUST example.com
210 ; autotrust trust anchor file
212 ;;last_queried: ${$t1} ;;${ctime $t1}
213 ;;last_success: ${$t1} ;;${ctime $t1}
214 ;;next_probe_time: ${$t1 + $probe1} ;;${ctime $t1 + $probe1}
216 ;;query_interval: 5400
218 example.com. 10800 IN DNSKEY 257 3 5 AwEAAc3Z5DQDJpH4oPdNtC4BUQHk50XMD+dHr4r8psHmivIa83hxR5CRgCtd9sENCW9Ae8OIO19xw9t/RPaEAqQa+OE= ;{id = 55582 (ksk), size = 512b} ;;state=2 [ VALID ] ;;count=0 ;;lastchange=${$t0} ;;${ctime $t0}
221 ; Second poll. 10 days later
222 STEP 21 TIME_PASSES EVAL ${10*24*3600}
224 STEP 23 ASSIGN t2 = ${time}
225 STEP 24 ASSIGN probe2 = ${range 4800 ${timeout} 5400}
226 STEP 25 CHECK_AUTOTRUST example.com
228 ; autotrust trust anchor file
230 ;;last_queried: ${$t2} ;;${ctime $t2}
231 ;;last_success: ${$t2} ;;${ctime $t2}
232 ;;next_probe_time: ${$t2 + $probe2} ;;${ctime $t2 + $probe2}
234 ;;query_interval: 5400
236 example.com. 10800 IN DNSKEY 257 3 5 AwEAAc3Z5DQDJpH4oPdNtC4BUQHk50XMD+dHr4r8psHmivIa83hxR5CRgCtd9sENCW9Ae8OIO19xw9t/RPaEAqQa+OE= ;{id = 55582 (ksk), size = 512b} ;;state=2 [ VALID ] ;;count=0 ;;lastchange=${$t0} ;;${ctime $t0}
239 ; Third poll. 10 days later
240 STEP 31 TIME_PASSES EVAL ${10*24*3600}
242 STEP 33 ASSIGN t3 = ${time}
243 STEP 34 ASSIGN probe3 = ${range 4800 ${timeout} 5400}
244 STEP 35 CHECK_AUTOTRUST example.com
246 ; autotrust trust anchor file
248 ;;last_queried: ${$t3} ;;${ctime $t3}
249 ;;last_success: ${$t3} ;;${ctime $t3}
250 ;;next_probe_time: ${$t3 + $probe3} ;;${ctime $t3 + $probe3}
252 ;;query_interval: 5400
254 example.com. 10800 IN DNSKEY 257 3 5 AwEAAc3Z5DQDJpH4oPdNtC4BUQHk50XMD+dHr4r8psHmivIa83hxR5CRgCtd9sENCW9Ae8OIO19xw9t/RPaEAqQa+OE= ;{id = 55582 (ksk), size = 512b} ;;state=2 [ VALID ] ;;count=0 ;;lastchange=${$t0} ;;${ctime $t0}
257 ; 11 days later, hold down has lapsed.
258 STEP 41 TIME_PASSES EVAL ${11*24*3600}
260 STEP 43 ASSIGN t4 = ${time}
261 STEP 44 ASSIGN probe4 = ${range 4800 ${timeout} 5400}
262 STEP 45 CHECK_AUTOTRUST example.com
264 ; autotrust trust anchor file
266 ;;last_queried: ${$t4} ;;${ctime $t4}
267 ;;last_success: ${$t4} ;;${ctime $t4}
268 ;;next_probe_time: ${$t4 + $probe4} ;;${ctime $t4 + $probe4}
270 ;;query_interval: 5400
272 example.com. 10800 IN DNSKEY 257 3 5 AwEAAc3Z5DQDJpH4oPdNtC4BUQHk50XMD+dHr4r8psHmivIa83hxR5CRgCtd9sENCW9Ae8OIO19xw9t/RPaEAqQa+OE= ;{id = 55582 (ksk), size = 512b} ;;state=2 [ VALID ] ;;count=0 ;;lastchange=${$t0} ;;${ctime $t0}
275 ; 30 days later, the old key is revoked
276 STEP 51 TIME_PASSES EVAL ${30*24*3600}
278 STEP 53 ASSIGN t5 = ${time}
280 STEP 54 ASSIGN probe5 = ${range 0 ${timeout} 0}
281 STEP 55 CHECK_AUTOTRUST example.com
283 ; autotrust trust anchor file
285 ; The zone has all keys revoked, and is
286 ; considered as if it has no trust anchors.
287 ; the remainder of the file is the last probe.
288 ; to restart the trust anchor, overwrite this file.
289 ; with one containing valid DNSKEYs or DSes.
291 ;;last_queried: ${$t5} ;;${ctime $t5}
292 ;;last_success: ${$t5} ;;${ctime $t5}
293 ;;next_probe_time: 0 ;;${ctime 0}
295 ;;query_interval: 5400
297 example.com. 10800 IN DNSKEY 385 3 5 AwEAAc3Z5DQDJpH4oPdNtC4BUQHk50XMD+dHr4r8psHmivIa83hxR5CRgCtd9sENCW9Ae8OIO19xw9t/RPaEAqQa+OE= ;{id = 55710 (ksk), size = 512b} ;;state=4 [ REVOKED ] ;;count=0 ;;lastchange=${$t5} ;;${ctime $t5}
300 ; 370 days later, the old key is removed from storage
301 STEP 61 TIME_PASSES EVAL ${370*24*3600}
303 STEP 63 ASSIGN t6 = ${time}
304 STEP 64 ASSIGN probe6 = ${range 0 ${timeout} 0}
305 STEP 65 CHECK_AUTOTRUST example.com
307 ; autotrust trust anchor file
309 ; The zone has all keys revoked, and is
310 ; considered as if it has no trust anchors.
311 ; the remainder of the file is the last probe.
312 ; to restart the trust anchor, overwrite this file.
313 ; with one containing valid DNSKEYs or DSes.
315 ;;last_queried: ${$t5} ;;${ctime $t5}
316 ;;last_success: ${$t5} ;;${ctime $t5}
317 ;;next_probe_time: 0 ;;${ctime 0}
319 ;;query_interval: 5400
321 example.com. 10800 IN DNSKEY 385 3 5 AwEAAc3Z5DQDJpH4oPdNtC4BUQHk50XMD+dHr4r8psHmivIa83hxR5CRgCtd9sENCW9Ae8OIO19xw9t/RPaEAqQa+OE= ;{id = 55710 (ksk), size = 512b} ;;state=4 [ REVOKED ] ;;count=0 ;;lastchange=${$t5} ;;${ctime $t5}