autotrust_rollalgo_unknown.rpl revision 1.1.1.1
1; config options 2server: 3 target-fetch-policy: "0 0 0 0 0" 4 log-time-ascii: yes 5stub-zone: 6 name: "." 7 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET. 8; initial content (say from dig example.com DNSKEY > example.com.key) 9AUTOTRUST_FILE example.com 10example.com. 10800 IN DNSKEY 257 3 5 AwEAAc3Z5DQDJpH4oPdNtC4BUQHk50XMD+dHr4r8psHmivIa83hxR5CRgCtd9sENCW9Ae8OIO19xw9t/RPaEAqQa+OE= ;{id = 55582 (ksk), size = 512b} 11example.com. 10800 IN DNSKEY 256 3 5 AQPQ41chR9DEHt/aIzIFAqanbDlRflJoRs5yz1jFsoRIT7dWf0r+PeDuewdxkszNH6wnU4QL8pfKFRh5PIYVBLK3 ;{id = 30899 (zsk), size = 512b} 12AUTOTRUST_END 13CONFIG_END 14 15SCENARIO_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. 20 21; K-ROOT 22RANGE_BEGIN 0 100 23 ADDRESS 193.0.14.129 24ENTRY_BEGIN 25MATCH opcode qname qtype 26ADJUST copy_id copy_query 27REPLY QR AA 28SECTION QUESTION 29. IN NS 30SECTION ANSWER 31. IN NS k.root-servers.net. 32SECTION ADDITIONAL 33k.root-servers.net IN A 193.0.14.129 34ENTRY_END 35 36ENTRY_BEGIN 37MATCH opcode subdomain 38ADJUST copy_id copy_query 39REPLY QR 40SECTION QUESTION 41com. IN NS 42SECTION AUTHORITY 43com. IN NS a.gtld-servers.net. 44SECTION ADDITIONAL 45a.gtld-servers.net. IN A 192.5.6.30 46ENTRY_END 47RANGE_END 48 49; a.gtld-servers.net. 50RANGE_BEGIN 0 100 51 ADDRESS 192.5.6.30 52ENTRY_BEGIN 53MATCH opcode subdomain 54ADJUST copy_id copy_query 55REPLY QR 56SECTION QUESTION 57example.com. IN NS 58SECTION AUTHORITY 59example.com. IN NS ns.example.com. 60SECTION ADDITIONAL 61ns.example.com. IN A 1.2.3.4 62ENTRY_END 63RANGE_END 64 65; ns.example.com. KSK 55582 66RANGE_BEGIN 0 10 67 ADDRESS 1.2.3.4 68ENTRY_BEGIN 69MATCH opcode qname qtype 70ADJUST copy_id 71REPLY QR AA 72SECTION QUESTION 73www.example.com. IN A 74SECTION ANSWER 75www.example.com. 3600 IN A 10.20.30.40 76www.example.com. 3600 IN RRSIG A 5 3 3600 20090924111500 20090821111500 30899 example.com. pYGxVLsWUvOp1wSf0iwPap+JnECfC5GAm1lRqy3YEqecNGld7U7x/5Imo3CerbdZrVptUQs2oH0lcjwYJXMnsw== ;{id = 30899} 77SECTION AUTHORITY 78example.com. 3600 IN NS ns.example.com. 79example.com. 3600 IN RRSIG NS 5 2 3600 20090924111500 20090821111500 30899 example.com. J5wxRq0jgwQL6yy530kvo9cHqNAUHV8IF4dvaYZL0bNraO2Oe6dVXqlJl4+cxNHI2TMsstwFPr2Zz8tv6Az2mQ== ;{id = 30899} 80SECTION ADDITIONAL 81ns.example.com. 3600 IN A 1.2.3.4 82ns.example.com. 3600 IN RRSIG A 5 3 3600 20090924111500 20090821111500 30899 example.com. JsXbS18oyc0zkVaOWGSFdIQuOsZKflT0GraT9afDPoWLCgH4ApF7jNgfJV7Pqy1sTBRajME5IUAhpANwGBuW4A== ;{id = 30899} 83ENTRY_END 84 85ENTRY_BEGIN 86MATCH opcode qname qtype 87ADJUST copy_id 88REPLY QR AA 89SECTION QUESTION 90example.com. IN DNSKEY 91SECTION ANSWER 92; KSK 1 93example.com. 10800 IN DNSKEY 257 3 5 AwEAAc3Z5DQDJpH4oPdNtC4BUQHk50XMD+dHr4r8psHmivIa83hxR5CRgCtd9sENCW9Ae8OIO19xw9t/RPaEAqQa+OE= ;{id = 55582 (ksk), size = 512b} 94; ZSK 1 95example.com. 10800 IN DNSKEY 256 3 5 AQPQ41chR9DEHt/aIzIFAqanbDlRflJoRs5yz1jFsoRIT7dWf0r+PeDuewdxkszNH6wnU4QL8pfKFRh5PIYVBLK3 ;{id = 30899 (zsk), size = 512b} 96; signatures 97example.com. 10800 IN RRSIG DNSKEY 5 2 10800 20090924111500 20090821111500 30899 example.com. b/HK231jIQLX8IhlZfup3r0yhpXaasbPE6LzxoEVVvWaTZWcLmeV8jDIcn0qO7Yvs7bIJN20lwVAV0GcHH3hWQ== ;{id = 30899} 98example.com. 10800 IN RRSIG DNSKEY 5 2 10800 20090924111500 20090821111500 55582 example.com. PCHme1QLoULxqjhg5tMlpR0qJlBfstEUVq18TtNoKQe9le1YhJ9caheXcTWoK+boLhXxg9u6Yyvq8FboQh0OjA== ;{id = 55582} 99ENTRY_END 100RANGE_END 101 102; ns.example.com. KSK 55582 and 02855 103RANGE_BEGIN 11 40 104 ADDRESS 1.2.3.4 105ENTRY_BEGIN 106MATCH opcode qname qtype 107ADJUST copy_id 108REPLY QR AA 109SECTION QUESTION 110example.com. IN DNSKEY 111SECTION ANSWER 112; KSK 1 113example.com. 10800 IN DNSKEY 257 3 5 AwEAAc3Z5DQDJpH4oPdNtC4BUQHk50XMD+dHr4r8psHmivIa83hxR5CRgCtd9sENCW9Ae8OIO19xw9t/RPaEAqQa+OE= ;{id = 55582 (ksk), size = 512b} 114; KSK 2 115example.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. 117; signatures 118example.com. 10800 IN RRSIG DNSKEY 5 2 10800 20091024111500 20090921111500 55582 example.com. Wp40P+Odx5gh1Zpjwa1YBwwKnqhobPSkv55sEb21vvKpLE2NNt7B6vZqRLg+bBiW0T/vRdo4w+7whKANVuPrtA== ;{id = 55582} 119example.com. 10800 IN RRSIG DNSKEY 157 2 10800 20091024111500 20090921111500 2855 example.com. AKdhmjqEbe0STsFNq/UxOidElaWHWCy2hSPQ7oN0Tsq56w6Hsk72PpM= ;{id = 2855} 120ENTRY_END 121RANGE_END 122 123; ns.example.com. KSK 55582 and 02855 (signatures updated) 124RANGE_BEGIN 41 50 125 ADDRESS 1.2.3.4 126ENTRY_BEGIN 127MATCH opcode qname qtype 128ADJUST copy_id 129REPLY QR AA 130SECTION QUESTION 131example.com. IN DNSKEY 132SECTION ANSWER 133; KSK 1 134example.com. 10800 IN DNSKEY 257 3 5 AwEAAc3Z5DQDJpH4oPdNtC4BUQHk50XMD+dHr4r8psHmivIa83hxR5CRgCtd9sENCW9Ae8OIO19xw9t/RPaEAqQa+OE= ;{id = 55582 (ksk), size = 512b} 135; KSK 2 136example.com. 10800 IN DNSKEY 257 3 157 ALXLUsWqUrY3JYER3T4TBJIIs70j+sDS/UT2QRp61SE7S3EEXopNXoFE73JLRmvpi/UrOO/Vz4Se6wXv/CYCKjGw06U4WRgRYXcpEhJROyNapmdIKSxhOzfLVE1gqA0PweZR8dtY3aNQSRn3sPpwJr6Mi/PqQKAMMrZ9ckJpf1+bQMOOvxgzz2U1GS18b3yZKcgTMEaJzd/GZYzi/BN2DzQ0MsrSwYXfsNLFOBbs8PJMW4LYIxeeOe6rUgkWOF7CC9Dh/dduQ1QrsJhmZAEFfd6ByYV+ ;{id = 2855 (ksk), size = 1688b} 137; signatures 138example.com. 10800 IN RRSIG DNSKEY 5 2 10800 20091124111500 20091018111500 55582 example.com. FXY4N99Udr/2Q+9oU4Dil9B8XQCBcaU0NlqJ9HnwZoLqzKiPhtxNlldU2Ab5TmuXfnkTT1bTYvsq5Dz6P3ezbw== ;{id = 55582} 139example.com. 10800 IN RRSIG DNSKEY 157 2 10800 20091124111500 20091018111500 2855 example.com. ABJyZ97htJyBFk5wsKml3YAz81FpXkQKdJeC++fB5ysvl3i+zKJFzTo= ;{id = 2855} 140ENTRY_END 141RANGE_END 142 143; ns.example.com. KSK 55582-REVOKED and 02855 144RANGE_BEGIN 51 60 145 ADDRESS 1.2.3.4 146ENTRY_BEGIN 147MATCH opcode qname qtype 148ADJUST copy_id 149REPLY QR AA 150SECTION QUESTION 151example.com. IN DNSKEY 152SECTION ANSWER 153; KSK 1 154example.com. 10800 IN DNSKEY 385 3 5 AwEAAc3Z5DQDJpH4oPdNtC4BUQHk50XMD+dHr4r8psHmivIa83hxR5CRgCtd9sENCW9Ae8OIO19xw9t/RPaEAqQa+OE= ;{id = 55710 (ksk), size = 512b} 155; KSK 2 156example.com. 10800 IN DNSKEY 257 3 157 ALXLUsWqUrY3JYER3T4TBJIIs70j+sDS/UT2QRp61SE7S3EEXopNXoFE73JLRmvpi/UrOO/Vz4Se6wXv/CYCKjGw06U4WRgRYXcpEhJROyNapmdIKSxhOzfLVE1gqA0PweZR8dtY3aNQSRn3sPpwJr6Mi/PqQKAMMrZ9ckJpf1+bQMOOvxgzz2U1GS18b3yZKcgTMEaJzd/GZYzi/BN2DzQ0MsrSwYXfsNLFOBbs8PJMW4LYIxeeOe6rUgkWOF7CC9Dh/dduQ1QrsJhmZAEFfd6ByYV+ ;{id = 2855 (ksk), size = 1688b} 157; signatures 158example.com. 10800 IN RRSIG DNSKEY 5 2 10800 20091224111500 20091118111500 55710 example.com. w5hXwGyeLHWTzdStx4yjB7LNzt86u9A+Qpl3rtQlTKN/qkWIT+Hxa3M32P6jhFTpf+Iq1K9T06mKM21L3TQAOg== ;{id = 55710} 159example.com. 10800 IN RRSIG DNSKEY 157 2 10800 20091224111500 20091118111500 2855 example.com. AFAbqLJsTDBfwAipE84ETdFTfzKHs7pzdyzjTKHR2VXygGvHY4QsBaA= ;{id = 2855} 160; wrong keytag: 55582 161ENTRY_END 162RANGE_END 163 164; ns.example.com. KSK 02855 165RANGE_BEGIN 61 70 166 ADDRESS 1.2.3.4 167ENTRY_BEGIN 168MATCH opcode qname qtype 169ADJUST copy_id 170REPLY QR AA 171SECTION QUESTION 172example.com. IN DNSKEY 173SECTION ANSWER 174; KSK 2 175example.com. 10800 IN DNSKEY 257 3 157 ALXLUsWqUrY3JYER3T4TBJIIs70j+sDS/UT2QRp61SE7S3EEXopNXoFE73JLRmvpi/UrOO/Vz4Se6wXv/CYCKjGw06U4WRgRYXcpEhJROyNapmdIKSxhOzfLVE1gqA0PweZR8dtY3aNQSRn3sPpwJr6Mi/PqQKAMMrZ9ckJpf1+bQMOOvxgzz2U1GS18b3yZKcgTMEaJzd/GZYzi/BN2DzQ0MsrSwYXfsNLFOBbs8PJMW4LYIxeeOe6rUgkWOF7CC9Dh/dduQ1QrsJhmZAEFfd6ByYV+ ;{id = 2855 (ksk), size = 1688b} 176; signatures 177example.com. 10800 IN RRSIG DNSKEY 157 2 10800 20101224111500 20101118111500 2855 example.com. AJv9ujre3iUykHlhJpLYPqsXq12lmQp+AHUPSPpE5zuUhXAPjbnbewk= ;{id = 2855} 178ENTRY_END 179RANGE_END 180 181; set date/time to Aug 24 07:46:40 (2009). 182STEP 5 TIME_PASSES ELAPSE 1251100000 183STEP 6 TRAFFIC ; the initial probe 184STEP 7 ASSIGN t0 = ${time} 185STEP 8 ASSIGN probe0 = ${range 4800 ${timeout} 5400} 186 187; the auto probing should have been done now. 188STEP 10 CHECK_AUTOTRUST example.com 189FILE_BEGIN 190; autotrust trust anchor file 191;;id: example.com. 1 192;;last_queried: ${$t0} ;;${ctime $t0} 193;;last_success: ${$t0} ;;${ctime $t0} 194;;next_probe_time: ${$t0 + $probe0} ;;${ctime $t0 + $probe0} 195;;query_failed: 0 196;;query_interval: 5400 197;;retry_time: 3600 198example.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} 199FILE_END 200 201; key prepublished. First poll. 30 days later 202STEP 11 TIME_PASSES EVAL ${30*24*3600} 203STEP 12 TRAFFIC 204STEP 13 ASSIGN t1 = ${time} 205STEP 14 ASSIGN probe1 = ${range 4800 ${timeout} 5400} 206STEP 15 CHECK_AUTOTRUST example.com 207FILE_BEGIN 208; autotrust trust anchor file 209;;id: example.com. 1 210;;last_queried: ${$t1} ;;${ctime $t1} 211;;last_success: ${$t1} ;;${ctime $t1} 212;;next_probe_time: ${$t1 + $probe1} ;;${ctime $t1 + $probe1} 213;;query_failed: 0 214;;query_interval: 5400 215;;retry_time: 3600 216example.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} 217FILE_END 218 219; Second poll. 10 days later 220STEP 21 TIME_PASSES EVAL ${10*24*3600} 221STEP 22 TRAFFIC 222STEP 23 ASSIGN t2 = ${time} 223STEP 24 ASSIGN probe2 = ${range 4800 ${timeout} 5400} 224STEP 25 CHECK_AUTOTRUST example.com 225FILE_BEGIN 226; autotrust trust anchor file 227;;id: example.com. 1 228;;last_queried: ${$t2} ;;${ctime $t2} 229;;last_success: ${$t2} ;;${ctime $t2} 230;;next_probe_time: ${$t2 + $probe2} ;;${ctime $t2 + $probe2} 231;;query_failed: 0 232;;query_interval: 5400 233;;retry_time: 3600 234example.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} 235FILE_END 236 237; Third poll. 10 days later 238STEP 31 TIME_PASSES EVAL ${10*24*3600} 239STEP 32 TRAFFIC 240STEP 33 ASSIGN t3 = ${time} 241STEP 34 ASSIGN probe3 = ${range 4800 ${timeout} 5400} 242STEP 35 CHECK_AUTOTRUST example.com 243FILE_BEGIN 244; autotrust trust anchor file 245;;id: example.com. 1 246;;last_queried: ${$t3} ;;${ctime $t3} 247;;last_success: ${$t3} ;;${ctime $t3} 248;;next_probe_time: ${$t3 + $probe3} ;;${ctime $t3 + $probe3} 249;;query_failed: 0 250;;query_interval: 5400 251;;retry_time: 3600 252example.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} 253FILE_END 254 255; 11 days later, hold down has lapsed. 256STEP 41 TIME_PASSES EVAL ${11*24*3600} 257STEP 42 TRAFFIC 258STEP 43 ASSIGN t4 = ${time} 259STEP 44 ASSIGN probe4 = ${range 4800 ${timeout} 5400} 260STEP 45 CHECK_AUTOTRUST example.com 261FILE_BEGIN 262; autotrust trust anchor file 263;;id: example.com. 1 264;;last_queried: ${$t4} ;;${ctime $t4} 265;;last_success: ${$t4} ;;${ctime $t4} 266;;next_probe_time: ${$t4 + $probe4} ;;${ctime $t4 + $probe4} 267;;query_failed: 0 268;;query_interval: 5400 269;;retry_time: 3600 270example.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} 271FILE_END 272 273; 30 days later, the old key is revoked 274STEP 51 TIME_PASSES EVAL ${30*24*3600} 275STEP 52 TRAFFIC 276STEP 53 ASSIGN t5 = ${time} 277; no more timeout 278STEP 54 ASSIGN probe5 = ${range 0 ${timeout} 0} 279STEP 55 CHECK_AUTOTRUST example.com 280FILE_BEGIN 281; autotrust trust anchor file 282;;REVOKED 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. 288;;id: example.com. 1 289;;last_queried: ${$t5} ;;${ctime $t5} 290;;last_success: ${$t5} ;;${ctime $t5} 291;;next_probe_time: 0 ;;${ctime 0} 292;;query_failed: 0 293;;query_interval: 5400 294;;retry_time: 3600 295example.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} 296FILE_END 297 298; 370 days later, the old key is removed from storage 299STEP 61 TIME_PASSES EVAL ${370*24*3600} 300STEP 62 TRAFFIC 301STEP 63 ASSIGN t6 = ${time} 302STEP 64 ASSIGN probe6 = ${range 0 ${timeout} 0} 303STEP 65 CHECK_AUTOTRUST example.com 304FILE_BEGIN 305; autotrust trust anchor file 306;;REVOKED 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. 312;;id: example.com. 1 313;;last_queried: ${$t5} ;;${ctime $t5} 314;;last_success: ${$t5} ;;${ctime $t5} 315;;next_probe_time: 0 ;;${ctime 0} 316;;query_failed: 0 317;;query_interval: 5400 318;;retry_time: 3600 319example.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} 320FILE_END 321 322 323SCENARIO_END 324