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}
12 example.com. 10800 IN RRSIG DNSKEY 5 2 10800 20070926134150 20070829134150 55582 example.com. sT5Se0rwBm0oAOcrX37oidl3zxK9QwvgAyOH+08Jq3V8KS4iPehBjNqXi9OITLgos4dHU/up4Z1BwgwTNYJIgg== ;{id = 55582}
13 example.com. 10800 IN RRSIG DNSKEY 5 2 10800 20070926134150 20070829134150 30899 example.com. DnrdGYsSAjAX1z93FQvPL8eX66uS9ip7A21gPTkvGBDwDoNB8JTNdRlEyWeXlipatbcQoZeG8mo87Wgp9eT/PA== ;{id = 30899}
17 SCENARIO_BEGIN Test autotrust with initial trust anchor with RRSIGs
23 MATCH opcode qname qtype
24 ADJUST copy_id copy_query
29 . IN NS k.root-servers.net.
31 k.root-servers.net IN A 193.0.14.129
35 MATCH opcode subdomain
36 ADJUST copy_id copy_query
41 com. IN NS a.gtld-servers.net.
43 a.gtld-servers.net. IN A 192.5.6.30
51 MATCH opcode subdomain
52 ADJUST copy_id copy_query
57 example.com. IN NS ns.example.com.
59 ns.example.com. IN A 1.2.3.4
67 MATCH opcode qname qtype
73 www.example.com. 3600 IN A 10.20.30.40
74 www.example.com. 3600 IN RRSIG A 5 3 3600 20090924111500 20090821111500 30899 example.com. pYGxVLsWUvOp1wSf0iwPap+JnECfC5GAm1lRqy3YEqecNGld7U7x/5Imo3CerbdZrVptUQs2oH0lcjwYJXMnsw== ;{id = 30899}
76 example.com. 3600 IN NS ns.example.com.
77 example.com. 3600 IN RRSIG NS 5 2 3600 20090924111500 20090821111500 30899 example.com. J5wxRq0jgwQL6yy530kvo9cHqNAUHV8IF4dvaYZL0bNraO2Oe6dVXqlJl4+cxNHI2TMsstwFPr2Zz8tv6Az2mQ== ;{id = 30899}
79 ns.example.com. 3600 IN A 1.2.3.4
80 ns.example.com. 3600 IN RRSIG A 5 3 3600 20090924111500 20090821111500 30899 example.com. JsXbS18oyc0zkVaOWGSFdIQuOsZKflT0GraT9afDPoWLCgH4ApF7jNgfJV7Pqy1sTBRajME5IUAhpANwGBuW4A== ;{id = 30899}
84 MATCH opcode qname qtype
88 example.com. IN DNSKEY
91 example.com. 10800 IN DNSKEY 257 3 5 AwEAAc3Z5DQDJpH4oPdNtC4BUQHk50XMD+dHr4r8psHmivIa83hxR5CRgCtd9sENCW9Ae8OIO19xw9t/RPaEAqQa+OE= ;{id = 55582 (ksk), size = 512b}
93 example.com. 10800 IN DNSKEY 256 3 5 AQPQ41chR9DEHt/aIzIFAqanbDlRflJoRs5yz1jFsoRIT7dWf0r+PeDuewdxkszNH6wnU4QL8pfKFRh5PIYVBLK3 ;{id = 30899 (ksk), size = 512b}
95 example.com. 10800 IN RRSIG DNSKEY 5 2 10800 20090924111500 20090821111500 30899 example.com. b/HK231jIQLX8IhlZfup3r0yhpXaasbPE6LzxoEVVvWaTZWcLmeV8jDIcn0qO7Yvs7bIJN20lwVAV0GcHH3hWQ== ;{id = 30899}
96 example.com. 10800 IN RRSIG DNSKEY 5 2 10800 20090924111500 20090821111500 55582 example.com. PCHme1QLoULxqjhg5tMlpR0qJlBfstEUVq18TtNoKQe9le1YhJ9caheXcTWoK+boLhXxg9u6Yyvq8FboQh0OjA== ;{id = 55582}
101 ; set date/time to Aug 24 07:46:40 (2009).
102 STEP 5 TIME_PASSES ELAPSE 1251100000
103 STEP 6 ASSIGN t0 = ${time}
104 ; get probe time and check it. 4800 is about 10% less than 5400. And more than
105 ; the 3600 that a failure timeout would have.
106 STEP 7 ASSIGN probe = ${range 4800 ${timeout} 5400}
109 ; the auto probing should have been done now.
110 STEP 8 CHECK_AUTOTRUST example.com
112 ; autotrust trust anchor file
114 ;;last_queried: 1251100000 ;;Mon Aug 24 07:46:40 2009
115 ;;last_success: 1251100000 ;;Mon Aug 24 07:46:40 2009
116 ;;next_probe_time: ${$t0 + $probe} ;;${ctime $t0 + $probe}
118 ;;query_interval: 5400
120 example.com. 10800 IN DNSKEY 257 3 5 AwEAAc3Z5DQDJpH4oPdNtC4BUQHk50XMD+dHr4r8psHmivIa83hxR5CRgCtd9sENCW9Ae8OIO19xw9t/RPaEAqQa+OE= ;{id = 55582 (ksk), size = 512b} ;;state=2 [ VALID ] ;;count=0 ;;lastchange=1251100000 ;;Mon Aug 24 07:46:40 2009
128 www.example.com. IN A
134 REPLY QR RD RA AD DO NOERROR
136 www.example.com. IN A
138 www.example.com. 3600 IN A 10.20.30.40
139 www.example.com. 3600 IN RRSIG A 5 3 3600 20090924111500 20090821111500 30899 example.com. pYGxVLsWUvOp1wSf0iwPap+JnECfC5GAm1lRqy3YEqecNGld7U7x/5Imo3CerbdZrVptUQs2oH0lcjwYJXMnsw== ;{id = 30899}
141 example.com. 3600 IN NS ns.example.com.
142 example.com. 3600 IN RRSIG NS 5 2 3600 20090924111500 20090821111500 30899 example.com. J5wxRq0jgwQL6yy530kvo9cHqNAUHV8IF4dvaYZL0bNraO2Oe6dVXqlJl4+cxNHI2TMsstwFPr2Zz8tv6Az2mQ== ;{id = 30899}
144 ns.example.com. 3600 IN A 1.2.3.4
145 ns.example.com. 3600 IN RRSIG A 5 3 3600 20090924111500 20090821111500 30899 example.com. JsXbS18oyc0zkVaOWGSFdIQuOsZKflT0GraT9afDPoWLCgH4ApF7jNgfJV7Pqy1sTBRajME5IUAhpANwGBuW4A== ;{id = 30899}
148 ; The autotrust anchor was probed due to the query.
150 STEP 30 CHECK_AUTOTRUST example.com
152 ; autotrust trust anchor file
154 ;;last_queried: 1251100000 ;;Mon Aug 24 07:46:40 2009
155 ;;last_success: 1251100000 ;;Mon Aug 24 07:46:40 2009
156 ;;next_probe_time: ${$t0 + $probe} ;;${ctime $t0 + $probe}
158 ;;query_interval: 5400
160 example.com. 10800 IN DNSKEY 257 3 5 AwEAAc3Z5DQDJpH4oPdNtC4BUQHk50XMD+dHr4r8psHmivIa83hxR5CRgCtd9sENCW9Ae8OIO19xw9t/RPaEAqQa+OE= ;{id = 55582 (ksk), size = 512b} ;;state=2 [ VALID ] ;;count=0 ;;lastchange=1251100000 ;;Mon Aug 24 07:46:40 2009
163 ; wait and see if autotrust probes (the unchanged) domain again.
164 STEP 40 TIME_PASSES EVAL ${$probe}
168 STEP 65 ASSIGN probe2 = ${range 4800 ${timeout} 5400}
170 STEP 70 CHECK_AUTOTRUST example.com
172 ; autotrust trust anchor file
174 ;;last_queried: ${time} ;;${ctime ${time}}
175 ;;last_success: ${time} ;;${ctime ${time}}
176 ;;next_probe_time: ${$t0 + $probe + $probe2} ;;${ctime $t0 + $probe + $probe2}
178 ;;query_interval: 5400
180 example.com. 10800 IN DNSKEY 257 3 5 AwEAAc3Z5DQDJpH4oPdNtC4BUQHk50XMD+dHr4r8psHmivIa83hxR5CRgCtd9sENCW9Ae8OIO19xw9t/RPaEAqQa+OE= ;{id = 55582 (ksk), size = 512b} ;;state=2 [ VALID ] ;;count=0 ;;lastchange=1251100000 ;;Mon Aug 24 07:46:40 2009