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 256 3 5 AQPQ41chR9DEHt/aIzIFAqanbDlRflJoRs5yz1jFsoRIT7dWf0r+PeDuewdxkszNH6wnU4QL8pfKFRh5PIYVBLK3 ;{id = 30899 (zsk), size = 512b}
14 SCENARIO_BEGIN Test autotrust with initial trust anchor ZSK
20 MATCH opcode qname qtype
21 ADJUST copy_id copy_query
26 . IN NS k.root-servers.net.
28 k.root-servers.net IN A 193.0.14.129
32 MATCH opcode subdomain
33 ADJUST copy_id copy_query
38 com. IN NS a.gtld-servers.net.
40 a.gtld-servers.net. IN A 192.5.6.30
48 MATCH opcode subdomain
49 ADJUST copy_id copy_query
54 example.com. IN NS ns.example.com.
56 ns.example.com. IN A 1.2.3.4
64 MATCH opcode qname qtype
70 www.example.com. 3600 IN A 10.20.30.40
71 www.example.com. 3600 IN RRSIG A 5 3 3600 20090924111500 20090821111500 30899 example.com. pYGxVLsWUvOp1wSf0iwPap+JnECfC5GAm1lRqy3YEqecNGld7U7x/5Imo3CerbdZrVptUQs2oH0lcjwYJXMnsw== ;{id = 30899}
73 example.com. 3600 IN NS ns.example.com.
74 example.com. 3600 IN RRSIG NS 5 2 3600 20090924111500 20090821111500 30899 example.com. J5wxRq0jgwQL6yy530kvo9cHqNAUHV8IF4dvaYZL0bNraO2Oe6dVXqlJl4+cxNHI2TMsstwFPr2Zz8tv6Az2mQ== ;{id = 30899}
76 ns.example.com. 3600 IN A 1.2.3.4
77 ns.example.com. 3600 IN RRSIG A 5 3 3600 20090924111500 20090821111500 30899 example.com. JsXbS18oyc0zkVaOWGSFdIQuOsZKflT0GraT9afDPoWLCgH4ApF7jNgfJV7Pqy1sTBRajME5IUAhpANwGBuW4A== ;{id = 30899}
81 MATCH opcode qname qtype
85 example.com. IN DNSKEY
88 example.com. 10800 IN DNSKEY 257 3 5 AwEAAc3Z5DQDJpH4oPdNtC4BUQHk50XMD+dHr4r8psHmivIa83hxR5CRgCtd9sENCW9Ae8OIO19xw9t/RPaEAqQa+OE= ;{id = 55582 (ksk), size = 512b}
90 example.com. 10800 IN DNSKEY 256 3 5 AQPQ41chR9DEHt/aIzIFAqanbDlRflJoRs5yz1jFsoRIT7dWf0r+PeDuewdxkszNH6wnU4QL8pfKFRh5PIYVBLK3 ;{id = 30899 (ksk), size = 512b}
92 example.com. 10800 IN RRSIG DNSKEY 5 2 10800 20090924111500 20090821111500 30899 example.com. b/HK231jIQLX8IhlZfup3r0yhpXaasbPE6LzxoEVVvWaTZWcLmeV8jDIcn0qO7Yvs7bIJN20lwVAV0GcHH3hWQ== ;{id = 30899}
93 example.com. 10800 IN RRSIG DNSKEY 5 2 10800 20090924111500 20090821111500 55582 example.com. PCHme1QLoULxqjhg5tMlpR0qJlBfstEUVq18TtNoKQe9le1YhJ9caheXcTWoK+boLhXxg9u6Yyvq8FboQh0OjA== ;{id = 55582}
98 ; set date/time to Aug 24 07:46:40 (2009).
99 STEP 5 TIME_PASSES ELAPSE 1251100000
100 STEP 6 ASSIGN t0 = ${time}
101 ; get probe time and check it. 4800 is about 10% less than 5400. And more than
102 ; the 3600 that a failure timeout would have.
103 STEP 7 ASSIGN probe = ${range 4800 ${timeout} 5400}
106 ; the auto probing should have been done now.
107 STEP 8 CHECK_AUTOTRUST example.com
109 ; autotrust trust anchor file
111 ;;last_queried: 1251100000 ;;Mon Aug 24 07:46:40 2009
112 ;;last_success: 1251100000 ;;Mon Aug 24 07:46:40 2009
113 ;;next_probe_time: ${$t0 + $probe} ;;${ctime $t0 + $probe}
115 ;;query_interval: 5400
117 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
125 www.example.com. IN A
131 REPLY QR RD RA AD DO NOERROR
133 www.example.com. IN A
135 www.example.com. 3600 IN A 10.20.30.40
136 www.example.com. 3600 IN RRSIG A 5 3 3600 20090924111500 20090821111500 30899 example.com. pYGxVLsWUvOp1wSf0iwPap+JnECfC5GAm1lRqy3YEqecNGld7U7x/5Imo3CerbdZrVptUQs2oH0lcjwYJXMnsw== ;{id = 30899}
138 example.com. 3600 IN NS ns.example.com.
139 example.com. 3600 IN RRSIG NS 5 2 3600 20090924111500 20090821111500 30899 example.com. J5wxRq0jgwQL6yy530kvo9cHqNAUHV8IF4dvaYZL0bNraO2Oe6dVXqlJl4+cxNHI2TMsstwFPr2Zz8tv6Az2mQ== ;{id = 30899}
141 ns.example.com. 3600 IN A 1.2.3.4
142 ns.example.com. 3600 IN RRSIG A 5 3 3600 20090924111500 20090821111500 30899 example.com. JsXbS18oyc0zkVaOWGSFdIQuOsZKflT0GraT9afDPoWLCgH4ApF7jNgfJV7Pqy1sTBRajME5IUAhpANwGBuW4A== ;{id = 30899}
145 ; The autotrust anchor was probed due to the query.
147 STEP 30 CHECK_AUTOTRUST example.com
149 ; autotrust trust anchor file
151 ;;last_queried: 1251100000 ;;Mon Aug 24 07:46:40 2009
152 ;;last_success: 1251100000 ;;Mon Aug 24 07:46:40 2009
153 ;;next_probe_time: ${$t0 + $probe} ;;${ctime $t0 + $probe}
155 ;;query_interval: 5400
157 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
160 ; wait and see if autotrust probes (the unchanged) domain again.
161 STEP 40 TIME_PASSES EVAL ${$probe}
165 STEP 65 ASSIGN probe2 = ${range 4800 ${timeout} 5400}
167 STEP 70 CHECK_AUTOTRUST example.com
169 ; autotrust trust anchor file
171 ;;last_queried: ${time} ;;${ctime ${time}}
172 ;;last_success: ${time} ;;${ctime ${time}}
173 ;;next_probe_time: ${$t0 + $probe + $probe2} ;;${ctime $t0 + $probe + $probe2}
175 ;;query_interval: 5400
177 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