3 target-fetch-policy: "0 0 0 0 0"
8 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
9 ; initial content (say from dig example.com DNSKEY > example.com.key)
10 AUTOTRUST_FILE example.com
11 example.com. 10800 IN DNSKEY 257 3 5 AwEAAc3Z5DQDJpH4oPdNtC4BUQHk50XMD+dHr4r8psHmivIa83hxR5CRgCtd9sENCW9Ae8OIO19xw9t/RPaEAqQa+OE= ;{id = 55582 (ksk), size = 512b}
12 example.com. 10800 IN DNSKEY 256 3 5 AQPQ41chR9DEHt/aIzIFAqanbDlRflJoRs5yz1jFsoRIT7dWf0r+PeDuewdxkszNH6wnU4QL8pfKFRh5PIYVBLK3 ;{id = 30899 (zsk), size = 512b}
13 example.com. 10800 IN RRSIG DNSKEY 5 2 10800 20070926134150 20070829134150 55582 example.com. sT5Se0rwBm0oAOcrX37oidl3zxK9QwvgAyOH+08Jq3V8KS4iPehBjNqXi9OITLgos4dHU/up4Z1BwgwTNYJIgg== ;{id = 55582}
14 example.com. 10800 IN RRSIG DNSKEY 5 2 10800 20070926134150 20070829134150 30899 example.com. DnrdGYsSAjAX1z93FQvPL8eX66uS9ip7A21gPTkvGBDwDoNB8JTNdRlEyWeXlipatbcQoZeG8mo87Wgp9eT/PA== ;{id = 30899}
18 SCENARIO_BEGIN Test autotrust with initial trust anchor with RRSIGs
24 MATCH opcode qname qtype
25 ADJUST copy_id copy_query
30 . IN NS k.root-servers.net.
32 k.root-servers.net IN A 193.0.14.129
36 MATCH opcode subdomain
37 ADJUST copy_id copy_query
42 com. IN NS a.gtld-servers.net.
44 a.gtld-servers.net. IN A 192.5.6.30
52 MATCH opcode subdomain
53 ADJUST copy_id copy_query
58 example.com. IN NS ns.example.com.
60 ns.example.com. IN A 1.2.3.4
68 MATCH opcode qname qtype
74 www.example.com. 3600 IN A 10.20.30.40
75 www.example.com. 3600 IN RRSIG A 5 3 3600 20090924111500 20090821111500 30899 example.com. pYGxVLsWUvOp1wSf0iwPap+JnECfC5GAm1lRqy3YEqecNGld7U7x/5Imo3CerbdZrVptUQs2oH0lcjwYJXMnsw== ;{id = 30899}
77 example.com. 3600 IN NS ns.example.com.
78 example.com. 3600 IN RRSIG NS 5 2 3600 20090924111500 20090821111500 30899 example.com. J5wxRq0jgwQL6yy530kvo9cHqNAUHV8IF4dvaYZL0bNraO2Oe6dVXqlJl4+cxNHI2TMsstwFPr2Zz8tv6Az2mQ== ;{id = 30899}
80 ns.example.com. 3600 IN A 1.2.3.4
81 ns.example.com. 3600 IN RRSIG A 5 3 3600 20090924111500 20090821111500 30899 example.com. JsXbS18oyc0zkVaOWGSFdIQuOsZKflT0GraT9afDPoWLCgH4ApF7jNgfJV7Pqy1sTBRajME5IUAhpANwGBuW4A== ;{id = 30899}
85 MATCH opcode qname qtype
89 example.com. IN DNSKEY
92 example.com. 10800 IN DNSKEY 257 3 5 AwEAAc3Z5DQDJpH4oPdNtC4BUQHk50XMD+dHr4r8psHmivIa83hxR5CRgCtd9sENCW9Ae8OIO19xw9t/RPaEAqQa+OE= ;{id = 55582 (ksk), size = 512b}
94 example.com. 10800 IN DNSKEY 256 3 5 AQPQ41chR9DEHt/aIzIFAqanbDlRflJoRs5yz1jFsoRIT7dWf0r+PeDuewdxkszNH6wnU4QL8pfKFRh5PIYVBLK3 ;{id = 30899 (ksk), size = 512b}
96 example.com. 10800 IN RRSIG DNSKEY 5 2 10800 20090924111500 20090821111500 30899 example.com. b/HK231jIQLX8IhlZfup3r0yhpXaasbPE6LzxoEVVvWaTZWcLmeV8jDIcn0qO7Yvs7bIJN20lwVAV0GcHH3hWQ== ;{id = 30899}
97 example.com. 10800 IN RRSIG DNSKEY 5 2 10800 20090924111500 20090821111500 55582 example.com. PCHme1QLoULxqjhg5tMlpR0qJlBfstEUVq18TtNoKQe9le1YhJ9caheXcTWoK+boLhXxg9u6Yyvq8FboQh0OjA== ;{id = 55582}
102 ; set date/time to Aug 24 07:46:40 (2009).
103 STEP 5 TIME_PASSES ELAPSE 1251100000
104 STEP 6 ASSIGN t0 = ${time}
105 ; get probe time and check it. 4800 is about 10% less than 5400. And more than
106 ; the 3600 that a failure timeout would have.
107 STEP 7 ASSIGN probe = ${range 4800 ${timeout} 5400}
110 ; the auto probing should have been done now.
111 STEP 8 CHECK_AUTOTRUST example.com
113 ; autotrust trust anchor file
115 ;;last_queried: 1251100000 ;;Mon Aug 24 07:46:40 2009
116 ;;last_success: 1251100000 ;;Mon Aug 24 07:46:40 2009
117 ;;next_probe_time: ${$t0 + $probe} ;;${ctime $t0 + $probe}
119 ;;query_interval: 5400
121 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
129 www.example.com. IN A
135 REPLY QR RD RA AD DO NOERROR
137 www.example.com. IN A
139 www.example.com. 3600 IN A 10.20.30.40
140 www.example.com. 3600 IN RRSIG A 5 3 3600 20090924111500 20090821111500 30899 example.com. pYGxVLsWUvOp1wSf0iwPap+JnECfC5GAm1lRqy3YEqecNGld7U7x/5Imo3CerbdZrVptUQs2oH0lcjwYJXMnsw== ;{id = 30899}
142 example.com. 3600 IN NS ns.example.com.
143 example.com. 3600 IN RRSIG NS 5 2 3600 20090924111500 20090821111500 30899 example.com. J5wxRq0jgwQL6yy530kvo9cHqNAUHV8IF4dvaYZL0bNraO2Oe6dVXqlJl4+cxNHI2TMsstwFPr2Zz8tv6Az2mQ== ;{id = 30899}
145 ns.example.com. 3600 IN A 1.2.3.4
146 ns.example.com. 3600 IN RRSIG A 5 3 3600 20090924111500 20090821111500 30899 example.com. JsXbS18oyc0zkVaOWGSFdIQuOsZKflT0GraT9afDPoWLCgH4ApF7jNgfJV7Pqy1sTBRajME5IUAhpANwGBuW4A== ;{id = 30899}
149 ; The autotrust anchor was probed due to the query.
151 STEP 30 CHECK_AUTOTRUST example.com
153 ; autotrust trust anchor file
155 ;;last_queried: 1251100000 ;;Mon Aug 24 07:46:40 2009
156 ;;last_success: 1251100000 ;;Mon Aug 24 07:46:40 2009
157 ;;next_probe_time: ${$t0 + $probe} ;;${ctime $t0 + $probe}
159 ;;query_interval: 5400
161 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
164 ; wait and see if autotrust probes (the unchanged) domain again.
165 STEP 40 TIME_PASSES EVAL ${$probe}
169 STEP 65 ASSIGN probe2 = ${range 4800 ${timeout} 5400}
171 STEP 70 CHECK_AUTOTRUST example.com
173 ; autotrust trust anchor file
175 ;;last_queried: ${time} ;;${ctime ${time}}
176 ;;last_success: ${time} ;;${ctime ${time}}
177 ;;next_probe_time: ${$t0 + $probe + $probe2} ;;${ctime $t0 + $probe + $probe2}
179 ;;query_interval: 5400
181 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