]> git.saurik.com Git - apple/network_cmds.git/blame_incremental - unbound/testdata/autotrust_missing_all.rpl
network_cmds-596.100.2.tar.gz
[apple/network_cmds.git] / unbound / testdata / autotrust_missing_all.rpl
... / ...
CommitLineData
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 all keys missing
16
17; K-ROOT
18RANGE_BEGIN 0 100
19 ADDRESS 193.0.14.129
20ENTRY_BEGIN
21MATCH opcode qname qtype
22ADJUST copy_id copy_query
23REPLY QR AA
24SECTION QUESTION
25. IN NS
26SECTION ANSWER
27. IN NS k.root-servers.net.
28SECTION ADDITIONAL
29k.root-servers.net IN A 193.0.14.129
30ENTRY_END
31
32ENTRY_BEGIN
33MATCH opcode subdomain
34ADJUST copy_id copy_query
35REPLY QR
36SECTION QUESTION
37com. IN NS
38SECTION AUTHORITY
39com. IN NS a.gtld-servers.net.
40SECTION ADDITIONAL
41a.gtld-servers.net. IN A 192.5.6.30
42ENTRY_END
43RANGE_END
44
45; a.gtld-servers.net.
46RANGE_BEGIN 0 100
47 ADDRESS 192.5.6.30
48ENTRY_BEGIN
49MATCH opcode subdomain
50ADJUST copy_id copy_query
51REPLY QR
52SECTION QUESTION
53example.com. IN NS
54SECTION AUTHORITY
55example.com. IN NS ns.example.com.
56SECTION ADDITIONAL
57ns.example.com. IN A 1.2.3.4
58ENTRY_END
59RANGE_END
60
61; ns.example.com. KSK 55582
62RANGE_BEGIN 0 10
63 ADDRESS 1.2.3.4
64ENTRY_BEGIN
65MATCH opcode qname qtype
66ADJUST copy_id
67REPLY QR AA
68SECTION QUESTION
69www.example.com. IN A
70SECTION ANSWER
71www.example.com. 3600 IN A 10.20.30.40
72www.example.com. 3600 IN RRSIG A 5 3 3600 20090924111500 20090821111500 30899 example.com. pYGxVLsWUvOp1wSf0iwPap+JnECfC5GAm1lRqy3YEqecNGld7U7x/5Imo3CerbdZrVptUQs2oH0lcjwYJXMnsw== ;{id = 30899}
73SECTION AUTHORITY
74example.com. 3600 IN NS ns.example.com.
75example.com. 3600 IN RRSIG NS 5 2 3600 20090924111500 20090821111500 30899 example.com. J5wxRq0jgwQL6yy530kvo9cHqNAUHV8IF4dvaYZL0bNraO2Oe6dVXqlJl4+cxNHI2TMsstwFPr2Zz8tv6Az2mQ== ;{id = 30899}
76SECTION ADDITIONAL
77ns.example.com. 3600 IN A 1.2.3.4
78ns.example.com. 3600 IN RRSIG A 5 3 3600 20090924111500 20090821111500 30899 example.com. JsXbS18oyc0zkVaOWGSFdIQuOsZKflT0GraT9afDPoWLCgH4ApF7jNgfJV7Pqy1sTBRajME5IUAhpANwGBuW4A== ;{id = 30899}
79ENTRY_END
80
81ENTRY_BEGIN
82MATCH opcode qname qtype
83ADJUST copy_id
84REPLY QR AA
85SECTION QUESTION
86example.com. IN DNSKEY
87SECTION ANSWER
88; KSK 1
89example.com. 10800 IN DNSKEY 257 3 5 AwEAAc3Z5DQDJpH4oPdNtC4BUQHk50XMD+dHr4r8psHmivIa83hxR5CRgCtd9sENCW9Ae8OIO19xw9t/RPaEAqQa+OE= ;{id = 55582 (ksk), size = 512b}
90; ZSK 1
91example.com. 10800 IN DNSKEY 256 3 5 AQPQ41chR9DEHt/aIzIFAqanbDlRflJoRs5yz1jFsoRIT7dWf0r+PeDuewdxkszNH6wnU4QL8pfKFRh5PIYVBLK3 ;{id = 30899 (zsk), size = 512b}
92; signatures
93example.com. 10800 IN RRSIG DNSKEY 5 2 10800 20090924111500 20090821111500 30899 example.com. b/HK231jIQLX8IhlZfup3r0yhpXaasbPE6LzxoEVVvWaTZWcLmeV8jDIcn0qO7Yvs7bIJN20lwVAV0GcHH3hWQ== ;{id = 30899}
94example.com. 10800 IN RRSIG DNSKEY 5 2 10800 20090924111500 20090821111500 55582 example.com. PCHme1QLoULxqjhg5tMlpR0qJlBfstEUVq18TtNoKQe9le1YhJ9caheXcTWoK+boLhXxg9u6Yyvq8FboQh0OjA== ;{id = 55582}
95ENTRY_END
96RANGE_END
97
98; ns.example.com. KSK 55582 and 60946
99RANGE_BEGIN 11 40
100 ADDRESS 1.2.3.4
101ENTRY_BEGIN
102MATCH opcode qname qtype
103ADJUST copy_id
104REPLY QR AA
105SECTION QUESTION
106example.com. IN DNSKEY
107SECTION ANSWER
108; KSK 1
109example.com. 10800 IN DNSKEY 257 3 5 AwEAAc3Z5DQDJpH4oPdNtC4BUQHk50XMD+dHr4r8psHmivIa83hxR5CRgCtd9sENCW9Ae8OIO19xw9t/RPaEAqQa+OE= ;{id = 55582 (ksk), size = 512b}
110; KSK 2
111example.com. 10800 IN DNSKEY 257 3 5 AwEAAeiaUiUIpWMfYz5L0sfJTZWnuN9IyBX4em9VjsoqQTsOD1HDQpNb4buvJo7pN2aBCxNS7e0OL8e2mVB6CLZ+8ek= ;{id = 60946 (ksk), size = 512b}
112; ZSK 1
113example.com. 10800 IN DNSKEY 256 3 5 AQPQ41chR9DEHt/aIzIFAqanbDlRflJoRs5yz1jFsoRIT7dWf0r+PeDuewdxkszNH6wnU4QL8pfKFRh5PIYVBLK3 ;{id = 30899 (zsk), size = 512b}
114; signatures
115example.com. 10800 IN RRSIG DNSKEY 5 2 10800 20091024111500 20090921111500 30899 example.com. rkaCUpTFPWVu4Om5oMTR+39Mct6ZMs56xrE0rbxMMOokfvIQheIxsAEc5BFJeA/2y5WTewl6diCD6yQXCybrDg== ;{id = 30899}
116example.com. 10800 IN RRSIG DNSKEY 5 2 10800 20091024111500 20090921111500 55582 example.com. CoMon+lWPAsUvgfpCTDPx8Zn8dQpky3lu2O6T+oJ2Mat9a/u1YwGhSQHGPn7ZNG/4vKM97tx84sSlUGz3geD1w== ;{id = 55582}
117example.com. 10800 IN RRSIG DNSKEY 5 2 10800 20091024111500 20090921111500 60946 example.com. o+Cbs7DcYPYlSLd4hi3vkSVQpXGnKgKSi9MpHGfu1Uahv5190U2DUOxP1du/HOYbf+IHYL8zLbMZjVEG5wgnTg== ;{id = 60946}
118ENTRY_END
119RANGE_END
120
121; ns.example.com. KSK 55582 and 60946 (signatures updated)
122RANGE_BEGIN 41 50
123 ADDRESS 1.2.3.4
124ENTRY_BEGIN
125MATCH opcode qname qtype
126ADJUST copy_id
127REPLY QR AA
128SECTION QUESTION
129example.com. IN DNSKEY
130SECTION ANSWER
131; KSK 1
132example.com. 10800 IN DNSKEY 257 3 5 AwEAAc3Z5DQDJpH4oPdNtC4BUQHk50XMD+dHr4r8psHmivIa83hxR5CRgCtd9sENCW9Ae8OIO19xw9t/RPaEAqQa+OE= ;{id = 55582 (ksk), size = 512b}
133; KSK 2
134example.com. 10800 IN DNSKEY 257 3 5 AwEAAeiaUiUIpWMfYz5L0sfJTZWnuN9IyBX4em9VjsoqQTsOD1HDQpNb4buvJo7pN2aBCxNS7e0OL8e2mVB6CLZ+8ek= ;{id = 60946 (ksk), size = 512b}
135; ZSK 1
136example.com. 10800 IN DNSKEY 256 3 5 AQPQ41chR9DEHt/aIzIFAqanbDlRflJoRs5yz1jFsoRIT7dWf0r+PeDuewdxkszNH6wnU4QL8pfKFRh5PIYVBLK3 ;{id = 30899 (zsk), size = 512b}
137; signatures
138example.com. 10800 IN RRSIG DNSKEY 5 2 10800 20091124111500 20091018111500 30899 example.com. rkaCUpTFPWVu4Om5oMTR+39Mct6ZMs56xrE0rbxMMOokfvIQheIxsAEc5BFJeA/2y5WTewl6diCD6yQXCybrDg== ;{id = 30899}
139example.com. 10800 IN RRSIG DNSKEY 5 2 10800 20091124111500 20091018111500 55582 example.com. v/HJbdpeVMpbhwYXrT1EDGpAFMvEgdKQII1cAbP6o8KHYNKDh8TIJ25/pXe3daEXfej6/Z5kpqJ79okPKUoi1Q== ;{id = 55582}
140example.com. 10800 IN RRSIG DNSKEY 5 2 10800 20091124111500 20091018111500 60946 example.com. HgXol1hdvbomOM1CFRW8qsHd3D0qOnN72EeMHTcpxIBBiuNLKZn4n1M14Voxj3vo0eAMNuG/y7EjQkxKvSsaDA== ;{id = 60946}
141ENTRY_END
142RANGE_END
143
144; ns.example.com. KSK 60946 missing , 55582 is missing
145RANGE_BEGIN 51 60
146 ADDRESS 1.2.3.4
147ENTRY_BEGIN
148MATCH opcode qname qtype
149ADJUST copy_id
150REPLY QR AA
151SECTION QUESTION
152example.com. IN DNSKEY
153SECTION ANSWER
154; ZSK 1
155example.com. 10800 IN DNSKEY 256 3 5 AQPQ41chR9DEHt/aIzIFAqanbDlRflJoRs5yz1jFsoRIT7dWf0r+PeDuewdxkszNH6wnU4QL8pfKFRh5PIYVBLK3 ;{id = 30899 (zsk), size = 512b}
156; signatures
157example.com. 10800 IN RRSIG DNSKEY 5 2 10800 20091224111500 20091118111500 30899 example.com. wzXQvn/XBgdkUn0HFl/mzaxZ30k8R9126hCio+gH5MgaFhWIdp8ob0TWRDA5yzrQCKzkyUqqcx+6fUWVOZOtXg== ;{id = 30899}
158; includes a signature from 60946.
159example.com. 10800 IN RRSIG DNSKEY 5 2 10800 20091224111500 20091118111500 60946 example.com. rn/rE/xoqKRbTz1tGUjTESB5e4UrFT5liigwrUi5a6nxn9juhAa+o1VbMXi1zXCAnZwHRE+tGZc8v44zjeioIw== ;{id = 60946}
160ENTRY_END
161RANGE_END
162
163; ns.example.com. KSK 60946
164RANGE_BEGIN 61 70
165 ADDRESS 1.2.3.4
166ENTRY_BEGIN
167MATCH opcode qname qtype
168ADJUST copy_id
169REPLY QR AA
170SECTION QUESTION
171example.com. IN DNSKEY
172SECTION ANSWER
173; ZSK 1
174example.com. 10800 IN DNSKEY 256 3 5 AQPQ41chR9DEHt/aIzIFAqanbDlRflJoRs5yz1jFsoRIT7dWf0r+PeDuewdxkszNH6wnU4QL8pfKFRh5PIYVBLK3 ;{id = 30899 (zsk), size = 512b}
175; signatures
176example.com. 10800 IN RRSIG DNSKEY 5 2 10800 20101224111500 20101118111500 30899 example.com. ukRqyDSzKwQ6tI59ThkPDOcO+F6JFwfHMcRKq4N+ZM5pGc/aVZaFyF9M8dyF/tfwst1kVwF+r7eQuJuZuFm0Fg== ;{id = 30899}
177example.com. 10800 IN RRSIG DNSKEY 5 2 10800 20101224111500 20101118111500 60946 example.com. G8wabxIoGwpFPycOuOfBk6+l2/E/t3DhKlzUGBZjMY7gE+tOLCZnibZrhLd+2j07hoISlJ88fosjOdpD8Sqsqw== ;{id = 60946}
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 AwEAAeiaUiUIpWMfYz5L0sfJTZWnuN9IyBX4em9VjsoqQTsOD1HDQpNb4buvJo7pN2aBCxNS7e0OL8e2mVB6CLZ+8ek= ;{id = 60946 (ksk), size = 512b} ;;state=1 [ ADDPEND ] ;;count=1 ;;lastchange=${$t1} ;;${ctime $t1}
217example.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}
218FILE_END
219
220; Second poll. 10 days later
221STEP 21 TIME_PASSES EVAL ${10*24*3600}
222STEP 22 TRAFFIC
223STEP 23 ASSIGN t2 = ${time}
224STEP 24 ASSIGN probe2 = ${range 4800 ${timeout} 5400}
225STEP 25 CHECK_AUTOTRUST example.com
226FILE_BEGIN
227; autotrust trust anchor file
228;;id: example.com. 1
229;;last_queried: ${$t2} ;;${ctime $t2}
230;;last_success: ${$t2} ;;${ctime $t2}
231;;next_probe_time: ${$t2 + $probe2} ;;${ctime $t2 + $probe2}
232;;query_failed: 0
233;;query_interval: 5400
234;;retry_time: 3600
235example.com. 10800 IN DNSKEY 257 3 5 AwEAAeiaUiUIpWMfYz5L0sfJTZWnuN9IyBX4em9VjsoqQTsOD1HDQpNb4buvJo7pN2aBCxNS7e0OL8e2mVB6CLZ+8ek= ;{id = 60946 (ksk), size = 512b} ;;state=1 [ ADDPEND ] ;;count=2 ;;lastchange=${$t1} ;;${ctime $t1}
236example.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}
237FILE_END
238
239; Third poll. 10 days later
240STEP 31 TIME_PASSES EVAL ${10*24*3600}
241STEP 32 TRAFFIC
242STEP 33 ASSIGN t3 = ${time}
243STEP 34 ASSIGN probe3 = ${range 4800 ${timeout} 5400}
244STEP 35 CHECK_AUTOTRUST example.com
245FILE_BEGIN
246; autotrust trust anchor file
247;;id: example.com. 1
248;;last_queried: ${$t3} ;;${ctime $t3}
249;;last_success: ${$t3} ;;${ctime $t3}
250;;next_probe_time: ${$t3 + $probe3} ;;${ctime $t3 + $probe3}
251;;query_failed: 0
252;;query_interval: 5400
253;;retry_time: 3600
254example.com. 10800 IN DNSKEY 257 3 5 AwEAAeiaUiUIpWMfYz5L0sfJTZWnuN9IyBX4em9VjsoqQTsOD1HDQpNb4buvJo7pN2aBCxNS7e0OL8e2mVB6CLZ+8ek= ;{id = 60946 (ksk), size = 512b} ;;state=1 [ ADDPEND ] ;;count=3 ;;lastchange=${$t1} ;;${ctime $t1}
255example.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}
256FILE_END
257
258; 11 days later, hold down has lapsed.
259STEP 41 TIME_PASSES EVAL ${11*24*3600}
260STEP 42 TRAFFIC
261STEP 43 ASSIGN t4 = ${time}
262STEP 44 ASSIGN probe4 = ${range 4800 ${timeout} 5400}
263STEP 45 CHECK_AUTOTRUST example.com
264FILE_BEGIN
265; autotrust trust anchor file
266;;id: example.com. 1
267;;last_queried: ${$t4} ;;${ctime $t4}
268;;last_success: ${$t4} ;;${ctime $t4}
269;;next_probe_time: ${$t4 + $probe4} ;;${ctime $t4 + $probe4}
270;;query_failed: 0
271;;query_interval: 5400
272;;retry_time: 3600
273example.com. 10800 IN DNSKEY 257 3 5 AwEAAeiaUiUIpWMfYz5L0sfJTZWnuN9IyBX4em9VjsoqQTsOD1HDQpNb4buvJo7pN2aBCxNS7e0OL8e2mVB6CLZ+8ek= ;{id = 60946 (ksk), size = 512b} ;;state=2 [ VALID ] ;;count=0 ;;lastchange=${$t4} ;;${ctime $t4}
274example.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}
275FILE_END
276
277; 30 days later, the old key is revoked
278STEP 51 TIME_PASSES EVAL ${30*24*3600}
279STEP 52 TRAFFIC
280STEP 53 ASSIGN t5 = ${time}
281STEP 54 ASSIGN probe5 = ${range 4800 ${timeout} 5400}
282STEP 55 CHECK_AUTOTRUST example.com
283FILE_BEGIN
284; autotrust trust anchor file
285;;id: example.com. 1
286;;last_queried: ${$t5} ;;${ctime $t5}
287;;last_success: ${$t5} ;;${ctime $t5}
288;;next_probe_time: ${$t5 + $probe5} ;;${ctime $t5 + $probe5}
289;;query_failed: 0
290;;query_interval: 5400
291;;retry_time: 3600
292example.com. 10800 IN DNSKEY 257 3 5 AwEAAeiaUiUIpWMfYz5L0sfJTZWnuN9IyBX4em9VjsoqQTsOD1HDQpNb4buvJo7pN2aBCxNS7e0OL8e2mVB6CLZ+8ek= ;{id = 60946 (ksk), size = 512b} ;;state=3 [ MISSING ] ;;count=0 ;;lastchange=${$t5} ;;${ctime $t5}
293example.com. 10800 IN DNSKEY 257 3 5 AwEAAc3Z5DQDJpH4oPdNtC4BUQHk50XMD+dHr4r8psHmivIa83hxR5CRgCtd9sENCW9Ae8OIO19xw9t/RPaEAqQa+OE= ;{id = 55582 (ksk), size = 512b} ;;state=3 [ MISSING ] ;;count=0 ;;lastchange=${$t5} ;;${ctime $t5}
294FILE_END
295
296; 370 days later, no keys are removed because there are no valid keys
297STEP 61 TIME_PASSES EVAL ${370*24*3600}
298STEP 62 TRAFFIC
299STEP 63 ASSIGN t6 = ${time}
300STEP 64 ASSIGN probe6 = ${range 4800 ${timeout} 5400}
301STEP 65 CHECK_AUTOTRUST example.com
302FILE_BEGIN
303; autotrust trust anchor file
304;;id: example.com. 1
305;;last_queried: ${$t6} ;;${ctime $t6}
306;;last_success: ${$t6} ;;${ctime $t6}
307;;next_probe_time: ${$t6 + $probe6} ;;${ctime $t6 + $probe6}
308;;query_failed: 0
309;;query_interval: 5400
310;;retry_time: 3600
311example.com. 10800 IN DNSKEY 257 3 5 AwEAAeiaUiUIpWMfYz5L0sfJTZWnuN9IyBX4em9VjsoqQTsOD1HDQpNb4buvJo7pN2aBCxNS7e0OL8e2mVB6CLZ+8ek= ;{id = 60946 (ksk), size = 512b} ;;state=3 [ MISSING ] ;;count=0 ;;lastchange=${$t5} ;;${ctime $t5}
312example.com. 10800 IN DNSKEY 257 3 5 AwEAAc3Z5DQDJpH4oPdNtC4BUQHk50XMD+dHr4r8psHmivIa83hxR5CRgCtd9sENCW9Ae8OIO19xw9t/RPaEAqQa+OE= ;{id = 55582 (ksk), size = 512b} ;;state=3 [ MISSING ] ;;count=0 ;;lastchange=${$t5} ;;${ctime $t5}
313FILE_END
314
315
316SCENARIO_END