3 target-fetch-policy: "0 0 0 0 0"
7 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
8 ; initial content (say from dig example.com DNSKEY > example.com.key)
9 AUTOTRUST_FILE example.com
10 example.com. 10800 IN DNSKEY 257 3 5 AwEAAc3Z5DQDJpH4oPdNtC4BUQHk50XMD+dHr4r8psHmivIa83hxR5CRgCtd9sENCW9Ae8OIO19xw9t/RPaEAqQa+OE= ;{id = 55582 (ksk), size = 512b}
11 example.com. 10800 IN DNSKEY 256 3 5 AQPQ41chR9DEHt/aIzIFAqanbDlRflJoRs5yz1jFsoRIT7dWf0r+PeDuewdxkszNH6wnU4QL8pfKFRh5PIYVBLK3 ;{id = 30899 (zsk), size = 512b}
15 SCENARIO_BEGIN Test autotrust with algorithm rollover to unknown algo
16 ; from RSASHA1(5) to 'unknown' (157)
17 ; 157 is really the algocode for HMACMD5, which is not used for DNSSEC.
18 ; the signatures are made with a DSA key (02855) but the algorithm is
19 ; edited (afterwards) to be 157. So the RRSIGs do not verify.
25 MATCH opcode qname qtype
26 ADJUST copy_id copy_query
31 . IN NS k.root-servers.net.
33 k.root-servers.net IN A 193.0.14.129
37 MATCH opcode subdomain
38 ADJUST copy_id copy_query
43 com. IN NS a.gtld-servers.net.
45 a.gtld-servers.net. IN A 192.5.6.30
53 MATCH opcode subdomain
54 ADJUST copy_id copy_query
59 example.com. IN NS ns.example.com.
61 ns.example.com. IN A 1.2.3.4
65 ; ns.example.com. KSK 55582
69 MATCH opcode qname qtype
75 www.example.com. 3600 IN A 10.20.30.40
76 www.example.com. 3600 IN RRSIG A 5 3 3600 20090924111500 20090821111500 30899 example.com. pYGxVLsWUvOp1wSf0iwPap+JnECfC5GAm1lRqy3YEqecNGld7U7x/5Imo3CerbdZrVptUQs2oH0lcjwYJXMnsw== ;{id = 30899}
78 example.com. 3600 IN NS ns.example.com.
79 example.com. 3600 IN RRSIG NS 5 2 3600 20090924111500 20090821111500 30899 example.com. J5wxRq0jgwQL6yy530kvo9cHqNAUHV8IF4dvaYZL0bNraO2Oe6dVXqlJl4+cxNHI2TMsstwFPr2Zz8tv6Az2mQ== ;{id = 30899}
81 ns.example.com. 3600 IN A 1.2.3.4
82 ns.example.com. 3600 IN RRSIG A 5 3 3600 20090924111500 20090821111500 30899 example.com. JsXbS18oyc0zkVaOWGSFdIQuOsZKflT0GraT9afDPoWLCgH4ApF7jNgfJV7Pqy1sTBRajME5IUAhpANwGBuW4A== ;{id = 30899}
86 MATCH opcode qname qtype
90 example.com. IN DNSKEY
93 example.com. 10800 IN DNSKEY 257 3 5 AwEAAc3Z5DQDJpH4oPdNtC4BUQHk50XMD+dHr4r8psHmivIa83hxR5CRgCtd9sENCW9Ae8OIO19xw9t/RPaEAqQa+OE= ;{id = 55582 (ksk), size = 512b}
95 example.com. 10800 IN DNSKEY 256 3 5 AQPQ41chR9DEHt/aIzIFAqanbDlRflJoRs5yz1jFsoRIT7dWf0r+PeDuewdxkszNH6wnU4QL8pfKFRh5PIYVBLK3 ;{id = 30899 (zsk), size = 512b}
97 example.com. 10800 IN RRSIG DNSKEY 5 2 10800 20090924111500 20090821111500 30899 example.com. b/HK231jIQLX8IhlZfup3r0yhpXaasbPE6LzxoEVVvWaTZWcLmeV8jDIcn0qO7Yvs7bIJN20lwVAV0GcHH3hWQ== ;{id = 30899}
98 example.com. 10800 IN RRSIG DNSKEY 5 2 10800 20090924111500 20090821111500 55582 example.com. PCHme1QLoULxqjhg5tMlpR0qJlBfstEUVq18TtNoKQe9le1YhJ9caheXcTWoK+boLhXxg9u6Yyvq8FboQh0OjA== ;{id = 55582}
102 ; ns.example.com. KSK 55582 and 02855
106 MATCH opcode qname qtype
110 example.com. IN DNSKEY
113 example.com. 10800 IN DNSKEY 257 3 5 AwEAAc3Z5DQDJpH4oPdNtC4BUQHk50XMD+dHr4r8psHmivIa83hxR5CRgCtd9sENCW9Ae8OIO19xw9t/RPaEAqQa+OE= ;{id = 55582 (ksk), size = 512b}
115 example.com. 10800 IN DNSKEY 257 3 157 ALXLUsWqUrY3JYER3T4TBJIIs70j+sDS/UT2QRp61SE7S3EEXopNXoFE73JLRmvpi/UrOO/Vz4Se6wXv/CYCKjGw06U4WRgRYXcpEhJROyNapmdIKSxhOzfLVE1gqA0PweZR8dtY3aNQSRn3sPpwJr6Mi/PqQKAMMrZ9ckJpf1+bQMOOvxgzz2U1GS18b3yZKcgTMEaJzd/GZYzi/BN2DzQ0MsrSwYXfsNLFOBbs8PJMW4LYIxeeOe6rUgkWOF7CC9Dh/dduQ1QrsJhmZAEFfd6ByYV+ ;{id = 2855 (ksk), size = 1688b}
116 ; and two ZSKs (omitted) for both algorithms.
118 example.com. 10800 IN RRSIG DNSKEY 5 2 10800 20091024111500 20090921111500 55582 example.com. Wp40P+Odx5gh1Zpjwa1YBwwKnqhobPSkv55sEb21vvKpLE2NNt7B6vZqRLg+bBiW0T/vRdo4w+7whKANVuPrtA== ;{id = 55582}
119 example.com. 10800 IN RRSIG DNSKEY 157 2 10800 20091024111500 20090921111500 2855 example.com. AKdhmjqEbe0STsFNq/UxOidElaWHWCy2hSPQ7oN0Tsq56w6Hsk72PpM= ;{id = 2855}
123 ; ns.example.com. KSK 55582 and 02855 (signatures updated)
127 MATCH opcode qname qtype
131 example.com. IN DNSKEY
134 example.com. 10800 IN DNSKEY 257 3 5 AwEAAc3Z5DQDJpH4oPdNtC4BUQHk50XMD+dHr4r8psHmivIa83hxR5CRgCtd9sENCW9Ae8OIO19xw9t/RPaEAqQa+OE= ;{id = 55582 (ksk), size = 512b}
136 example.com. 10800 IN DNSKEY 257 3 157 ALXLUsWqUrY3JYER3T4TBJIIs70j+sDS/UT2QRp61SE7S3EEXopNXoFE73JLRmvpi/UrOO/Vz4Se6wXv/CYCKjGw06U4WRgRYXcpEhJROyNapmdIKSxhOzfLVE1gqA0PweZR8dtY3aNQSRn3sPpwJr6Mi/PqQKAMMrZ9ckJpf1+bQMOOvxgzz2U1GS18b3yZKcgTMEaJzd/GZYzi/BN2DzQ0MsrSwYXfsNLFOBbs8PJMW4LYIxeeOe6rUgkWOF7CC9Dh/dduQ1QrsJhmZAEFfd6ByYV+ ;{id = 2855 (ksk), size = 1688b}
138 example.com. 10800 IN RRSIG DNSKEY 5 2 10800 20091124111500 20091018111500 55582 example.com. FXY4N99Udr/2Q+9oU4Dil9B8XQCBcaU0NlqJ9HnwZoLqzKiPhtxNlldU2Ab5TmuXfnkTT1bTYvsq5Dz6P3ezbw== ;{id = 55582}
139 example.com. 10800 IN RRSIG DNSKEY 157 2 10800 20091124111500 20091018111500 2855 example.com. ABJyZ97htJyBFk5wsKml3YAz81FpXkQKdJeC++fB5ysvl3i+zKJFzTo= ;{id = 2855}
143 ; ns.example.com. KSK 55582-REVOKED and 02855
147 MATCH opcode qname qtype
151 example.com. IN DNSKEY
154 example.com. 10800 IN DNSKEY 385 3 5 AwEAAc3Z5DQDJpH4oPdNtC4BUQHk50XMD+dHr4r8psHmivIa83hxR5CRgCtd9sENCW9Ae8OIO19xw9t/RPaEAqQa+OE= ;{id = 55710 (ksk), size = 512b}
156 example.com. 10800 IN DNSKEY 257 3 157 ALXLUsWqUrY3JYER3T4TBJIIs70j+sDS/UT2QRp61SE7S3EEXopNXoFE73JLRmvpi/UrOO/Vz4Se6wXv/CYCKjGw06U4WRgRYXcpEhJROyNapmdIKSxhOzfLVE1gqA0PweZR8dtY3aNQSRn3sPpwJr6Mi/PqQKAMMrZ9ckJpf1+bQMOOvxgzz2U1GS18b3yZKcgTMEaJzd/GZYzi/BN2DzQ0MsrSwYXfsNLFOBbs8PJMW4LYIxeeOe6rUgkWOF7CC9Dh/dduQ1QrsJhmZAEFfd6ByYV+ ;{id = 2855 (ksk), size = 1688b}
158 example.com. 10800 IN RRSIG DNSKEY 5 2 10800 20091224111500 20091118111500 55710 example.com. w5hXwGyeLHWTzdStx4yjB7LNzt86u9A+Qpl3rtQlTKN/qkWIT+Hxa3M32P6jhFTpf+Iq1K9T06mKM21L3TQAOg== ;{id = 55710}
159 example.com. 10800 IN RRSIG DNSKEY 157 2 10800 20091224111500 20091118111500 2855 example.com. AFAbqLJsTDBfwAipE84ETdFTfzKHs7pzdyzjTKHR2VXygGvHY4QsBaA= ;{id = 2855}
160 ; wrong keytag: 55582
164 ; ns.example.com. KSK 02855
168 MATCH opcode qname qtype
172 example.com. IN DNSKEY
175 example.com. 10800 IN DNSKEY 257 3 157 ALXLUsWqUrY3JYER3T4TBJIIs70j+sDS/UT2QRp61SE7S3EEXopNXoFE73JLRmvpi/UrOO/Vz4Se6wXv/CYCKjGw06U4WRgRYXcpEhJROyNapmdIKSxhOzfLVE1gqA0PweZR8dtY3aNQSRn3sPpwJr6Mi/PqQKAMMrZ9ckJpf1+bQMOOvxgzz2U1GS18b3yZKcgTMEaJzd/GZYzi/BN2DzQ0MsrSwYXfsNLFOBbs8PJMW4LYIxeeOe6rUgkWOF7CC9Dh/dduQ1QrsJhmZAEFfd6ByYV+ ;{id = 2855 (ksk), size = 1688b}
177 example.com. 10800 IN RRSIG DNSKEY 157 2 10800 20101224111500 20101118111500 2855 example.com. AJv9ujre3iUykHlhJpLYPqsXq12lmQp+AHUPSPpE5zuUhXAPjbnbewk= ;{id = 2855}
181 ; set date/time to Aug 24 07:46:40 (2009).
182 STEP 5 TIME_PASSES ELAPSE 1251100000
183 STEP 6 TRAFFIC ; the initial probe
184 STEP 7 ASSIGN t0 = ${time}
185 STEP 8 ASSIGN probe0 = ${range 4800 ${timeout} 5400}
187 ; the auto probing should have been done now.
188 STEP 10 CHECK_AUTOTRUST example.com
190 ; autotrust trust anchor file
192 ;;last_queried: ${$t0} ;;${ctime $t0}
193 ;;last_success: ${$t0} ;;${ctime $t0}
194 ;;next_probe_time: ${$t0 + $probe0} ;;${ctime $t0 + $probe0}
196 ;;query_interval: 5400
198 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}
201 ; key prepublished. First poll. 30 days later
202 STEP 11 TIME_PASSES EVAL ${30*24*3600}
204 STEP 13 ASSIGN t1 = ${time}
205 STEP 14 ASSIGN probe1 = ${range 4800 ${timeout} 5400}
206 STEP 15 CHECK_AUTOTRUST example.com
208 ; autotrust trust anchor file
210 ;;last_queried: ${$t1} ;;${ctime $t1}
211 ;;last_success: ${$t1} ;;${ctime $t1}
212 ;;next_probe_time: ${$t1 + $probe1} ;;${ctime $t1 + $probe1}
214 ;;query_interval: 5400
216 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}
219 ; Second poll. 10 days later
220 STEP 21 TIME_PASSES EVAL ${10*24*3600}
222 STEP 23 ASSIGN t2 = ${time}
223 STEP 24 ASSIGN probe2 = ${range 4800 ${timeout} 5400}
224 STEP 25 CHECK_AUTOTRUST example.com
226 ; autotrust trust anchor file
228 ;;last_queried: ${$t2} ;;${ctime $t2}
229 ;;last_success: ${$t2} ;;${ctime $t2}
230 ;;next_probe_time: ${$t2 + $probe2} ;;${ctime $t2 + $probe2}
232 ;;query_interval: 5400
234 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}
237 ; Third poll. 10 days later
238 STEP 31 TIME_PASSES EVAL ${10*24*3600}
240 STEP 33 ASSIGN t3 = ${time}
241 STEP 34 ASSIGN probe3 = ${range 4800 ${timeout} 5400}
242 STEP 35 CHECK_AUTOTRUST example.com
244 ; autotrust trust anchor file
246 ;;last_queried: ${$t3} ;;${ctime $t3}
247 ;;last_success: ${$t3} ;;${ctime $t3}
248 ;;next_probe_time: ${$t3 + $probe3} ;;${ctime $t3 + $probe3}
250 ;;query_interval: 5400
252 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}
255 ; 11 days later, hold down has lapsed.
256 STEP 41 TIME_PASSES EVAL ${11*24*3600}
258 STEP 43 ASSIGN t4 = ${time}
259 STEP 44 ASSIGN probe4 = ${range 4800 ${timeout} 5400}
260 STEP 45 CHECK_AUTOTRUST example.com
262 ; autotrust trust anchor file
264 ;;last_queried: ${$t4} ;;${ctime $t4}
265 ;;last_success: ${$t4} ;;${ctime $t4}
266 ;;next_probe_time: ${$t4 + $probe4} ;;${ctime $t4 + $probe4}
268 ;;query_interval: 5400
270 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}
273 ; 30 days later, the old key is revoked
274 STEP 51 TIME_PASSES EVAL ${30*24*3600}
276 STEP 53 ASSIGN t5 = ${time}
278 STEP 54 ASSIGN probe5 = ${range 0 ${timeout} 0}
279 STEP 55 CHECK_AUTOTRUST example.com
281 ; autotrust trust anchor file
283 ; The zone has all keys revoked, and is
284 ; considered as if it has no trust anchors.
285 ; the remainder of the file is the last probe.
286 ; to restart the trust anchor, overwrite this file.
287 ; with one containing valid DNSKEYs or DSes.
289 ;;last_queried: ${$t5} ;;${ctime $t5}
290 ;;last_success: ${$t5} ;;${ctime $t5}
291 ;;next_probe_time: 0 ;;${ctime 0}
293 ;;query_interval: 5400
295 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}
298 ; 370 days later, the old key is removed from storage
299 STEP 61 TIME_PASSES EVAL ${370*24*3600}
301 STEP 63 ASSIGN t6 = ${time}
302 STEP 64 ASSIGN probe6 = ${range 0 ${timeout} 0}
303 STEP 65 CHECK_AUTOTRUST example.com
305 ; autotrust trust anchor file
307 ; The zone has all keys revoked, and is
308 ; considered as if it has no trust anchors.
309 ; the remainder of the file is the last probe.
310 ; to restart the trust anchor, overwrite this file.
311 ; with one containing valid DNSKEYs or DSes.
313 ;;last_queried: ${$t5} ;;${ctime $t5}
314 ;;last_success: ${$t5} ;;${ctime $t5}
315 ;;next_probe_time: 0 ;;${ctime 0}
317 ;;query_interval: 5400
319 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}