]> git.saurik.com Git - apple/network_cmds.git/blame - unbound/testdata/black_prime_entry.rpl
network_cmds-596.100.2.tar.gz
[apple/network_cmds.git] / unbound / testdata / black_prime_entry.rpl
CommitLineData
89c4ed63
A
1; config options
2; The island of trust is at example.com
3server:
4 trust-anchor: "example.com. 3600 IN DS 2854 3 1 46e4ffc6e9a4793b488954bd3f0cc6af0dfb201b"
5 val-override-date: "20070916134226"
6 target-fetch-policy: "0 0 0 0 0"
7
8stub-zone:
9 name: "."
10 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
11CONFIG_END
12
13SCENARIO_BEGIN Test validator with blacklist prime gives bad key entry
14; the data response needs a blacklist action as well, since it also
15; comes from an 'expired signatures' name server.
16
17; K.ROOT-SERVERS.NET.
18RANGE_BEGIN 0 100
19 ADDRESS 193.0.14.129
20ENTRY_BEGIN
21MATCH opcode qtype qname
22ADJUST copy_id
23REPLY QR NOERROR
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 qtype qname
34ADJUST copy_id
35REPLY QR NOERROR
36SECTION QUESTION
37www.example.com. IN A
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 qtype qname
50ADJUST copy_id
51REPLY QR NOERROR
52SECTION QUESTION
53com. IN NS
54SECTION ANSWER
55com. IN NS a.gtld-servers.net.
56SECTION ADDITIONAL
57a.gtld-servers.net. IN A 192.5.6.30
58ENTRY_END
59
60ENTRY_BEGIN
61MATCH opcode qtype qname
62ADJUST copy_id
63REPLY QR NOERROR
64SECTION QUESTION
65ns.blabla.com. IN A
66SECTION ANSWER
67ns.blabla.com. IN A 1.2.3.5
68ENTRY_END
69
70ENTRY_BEGIN
71MATCH opcode qtype qname
72ADJUST copy_id
73REPLY QR NOERROR
74SECTION QUESTION
75ns.blabla.com. IN AAAA
76SECTION AUTHORITY
77com. IN SOA com. com. 2009100100 28800 7200 604800 3600
78ENTRY_END
79
80ENTRY_BEGIN
81MATCH opcode subdomain
82ADJUST copy_id copy_query
83REPLY QR NOERROR
84SECTION QUESTION
85example.com. IN NS
86SECTION AUTHORITY
87example.com. IN NS ns.example.com.
88;example.com. IN NS ns.blabla.com.
89SECTION ADDITIONAL
90ns.example.com. IN A 1.2.3.4
91; no ns.blabla.com, try that later
92ENTRY_END
93RANGE_END
94
95; ns.example.com.
96RANGE_BEGIN 0 100
97 ADDRESS 1.2.3.4
98ENTRY_BEGIN
99MATCH opcode qtype qname
100ADJUST copy_id
101REPLY QR NOERROR
102SECTION QUESTION
103example.com. IN NS
104SECTION ANSWER
105example.com. IN NS ns.example.com.
106example.com. IN NS ns.blabla.com.
107example.com. 3600 IN RRSIG NS 3 2 3600 20030926134150 20030829134150 2854 example.com. AKJ3xUBdSrCiOFkYajsy93d+h06rewpbmBHItTkL8R/26rw57b1gCIg= ;{id = 2854}
108SECTION ADDITIONAL
109ns.example.com. IN A 1.2.3.4
110ns.example.com. 3600 IN RRSIG A 3 3 3600 20030926134150 20030829134150 2854 example.com. AHNj99mBmP4np19V01nSq990ZIFlIiLWoeHijm/HcOG/o8+DuIp4fL8= ;{id = 2854}
111ENTRY_END
112
113ENTRY_BEGIN
114MATCH opcode qtype qname
115ADJUST copy_id
116REPLY QR NOERROR
117SECTION QUESTION
118ns.example.com. IN A
119SECTION ANSWER
120ns.example.com. IN A 1.2.3.4
121ns.example.com. 3600 IN RRSIG A 3 3 3600 20030926134150 20030829134150 2854 example.com. AHNj99mBmP4np19V01nSq990ZIFlIiLWoeHijm/HcOG/o8+DuIp4fL8= ;{id = 2854}
122SECTION ADDITIONAL
123ENTRY_END
124
125ENTRY_BEGIN
126MATCH opcode qtype qname
127ADJUST copy_id
128REPLY QR NOERROR
129SECTION QUESTION
130ns.example.com. IN AAAA
131SECTION ANSWER
132SECTION ADDITIONAL
133ns.example.com. IN NSEC oof.example.com. NSEC RRSIG A
134ns.example.com. 3600 IN RRSIG NSEC 3 3 3600 20030926134150 20030829134150 2854 example.com. ACFVLLBtuSX/1z3461tbOwDz9zTHe5S9DbVtwnSO1f2x06fYbMpzSDE= ;{id = 2854}
135ENTRY_END
136
137; response to DNSKEY priming query
138ENTRY_BEGIN
139MATCH opcode qtype qname
140ADJUST copy_id
141REPLY QR NOERROR
142SECTION QUESTION
143example.com. IN DNSKEY
144SECTION ANSWER
145example.com. 3600 IN DNSKEY 256 3 3 ALXLUsWqUrY3JYER3T4TBJII s70j+sDS/UT2QRp61SE7S3E EXopNXoFE73JLRmvpi/UrOO/Vz4Se 6wXv/CYCKjGw06U4WRgR YXcpEhJROyNapmdIKSx hOzfLVE1gqA0PweZR8d tY3aNQSRn3sPpwJr6Mi /PqQKAMMrZ9ckJpf1+b QMOOvxgzz2U1GS18b3y ZKcgTMEaJzd/GZYzi/B N2DzQ0MsrSwYXfsNLFO Bbs8PJMW4LYIxeeOe6rUgkWOF 7CC9Dh/dduQ1QrsJhmZAEFfd6ByYV+ ;{id = 2854 (zsk), size = 1688b}
146example.com. 3600 IN RRSIG DNSKEY 3 2 3600 20030926134150 20030829134150 2854 example.com. AG21xE8CFQzTq6XtHErg28b9EAmqPsoYCUcFPEAoAjFybM6AY4/bMOo= ;{id = 2854}
147SECTION AUTHORITY
148;example.com. IN NS ns.example.com.
149;example.com. IN NS ns.blabla.com.
150;example.com. 3600 IN RRSIG NS 3 2 3600 20030926134150 20030829134150 2854 example.com. ACiWu7zjBHqgEX3iUoOF7rfpOmIAHj1npKQ+XDIaNlmdkfJxoCwFl04= ;{id = 2854}
151SECTION ADDITIONAL
152;ns.example.com. IN A 1.2.3.4
153;ns.example.com. 3600 IN RRSIG A 3 3 3600 20030926134150 20030829134150 2854 example.com. ACmAsKTf7hqDaYK8CQ7FL1cGYPW+blTCnzZGkExFtEUAGrHeze87o+A= ;{id = 2854}
154ENTRY_END
155
156; response to query of interest
157ENTRY_BEGIN
158MATCH opcode qtype qname
159ADJUST copy_id
160REPLY QR NOERROR
161SECTION QUESTION
162www.example.com. IN A
163SECTION ANSWER
164www.example.com. IN A 10.20.30.40
165www.example.com. 3600 IN RRSIG A 3 3 3600 20030926134150 20030829134150 2854 example.com. AGj9kE8oW3OhOLhkmJ3HBaNIOpvGf3S8zSd5gWmhpxAMc5hh6cxZfpQ= ;{id = 2854}
166SECTION AUTHORITY
167;example.com. IN NS ns.example.com.
168;example.com. IN NS ns.blabla.com.
169;example.com. 3600 IN RRSIG NS 3 2 3600 20030926134150 20030829134150 2854 example.com. ACHETweBNPgbmRoNRdKvxuw4X9qNUUTEpSuwV+HhuiBE83gbB98asAc= ;{id = 2854}
170SECTION ADDITIONAL
171;ns.example.com. IN A 1.2.3.4
172;ns.example.com. 3600 IN RRSIG A 3 3 3600 20030926134150 20030829134150 2854 example.com. AGvu9A/nGsbatxJCmnObioIhKg2Tm0Apr0eo+DO1kIDrAHco/bt/EdY= ;{id = 2854}
173ENTRY_END
174RANGE_END
175
176; ns.blabla.com.
177RANGE_BEGIN 0 100
178 ADDRESS 1.2.3.5
179ENTRY_BEGIN
180MATCH opcode qtype qname
181ADJUST copy_id
182REPLY QR NOERROR
183SECTION QUESTION
184example.com. IN NS
185SECTION ANSWER
186example.com. IN NS ns.example.com.
187example.com. IN NS ns.blabla.com.
188example.com. 3600 IN RRSIG NS 3 2 3600 20070926134150 20070829134150 2854 example.com. AAJHNhPYVG6+550zQga9ZgV8McQZHLboOWjfbdiq2ZC+gUcQeQDDlFs= ;{id = 2854}
189SECTION ADDITIONAL
190ns.example.com. IN A 1.2.3.4
191ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCMSWxVehgOQLoYclB9PIAbNP229AIUeH0vNNGJhjnZiqgIOKvs1EhzqAo= ;{id = 2854}
192ENTRY_END
193
194ENTRY_BEGIN
195MATCH opcode qtype qname
196ADJUST copy_id
197REPLY QR NOERROR
198SECTION QUESTION
199ns.example.com. IN A
200SECTION ANSWER
201ns.example.com. IN A 1.2.3.4
202ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCMSWxVehgOQLoYclB9PIAbNP229AIUeH0vNNGJhjnZiqgIOKvs1EhzqAo= ;{id = 2854}
203SECTION ADDITIONAL
204ENTRY_END
205
206ENTRY_BEGIN
207MATCH opcode qtype qname
208ADJUST copy_id
209REPLY QR NOERROR
210SECTION QUESTION
211ns.example.com. IN AAAA
212SECTION ANSWER
213SECTION ADDITIONAL
214ns.example.com. IN NSEC oof.example.com. NSEC RRSIG A
215ns.example.com. 3600 IN RRSIG NSEC 3 3 3600 20070926134150 20070829134150 2854 example.com. ABhDNtJramb2a4R1SK5gb/CTYJybQts6mZ++z3kLiwsrUSZInA4ikeQ= ;{id = 2854}
216ENTRY_END
217
218; response to DNSKEY priming query
219ENTRY_BEGIN
220MATCH opcode qtype qname
221ADJUST copy_id
222REPLY QR NOERROR
223SECTION QUESTION
224example.com. IN DNSKEY
225SECTION ANSWER
226example.com. 3600 IN DNSKEY 256 3 3 ALXLUsWqUrY3JYER3T4TBJII s70j+sDS/UT2QRp61SE7S3E EXopNXoFE73JLRmvpi/UrOO/Vz4Se 6wXv/CYCKjGw06U4WRgR YXcpEhJROyNapmdIKSx hOzfLVE1gqA0PweZR8d tY3aNQSRn3sPpwJr6Mi /PqQKAMMrZ9ckJpf1+b QMOOvxgzz2U1GS18b3y ZKcgTMEaJzd/GZYzi/B N2DzQ0MsrSwYXfsNLFO Bbs8PJMW4LYIxeeOe6rUgkWOF 7CC9Dh/dduQ1QrsJhmZAEFfd6ByYV+ ;{id = 2854 (zsk), size = 1688b}
227example.com. 3600 IN RRSIG DNSKEY 3 2 3600 20070926134802 20070829134802 2854 example.com. MCwCFG1yhRNtTEa3Eno2zhVVuy2EJX3wAhQeLyUp6+UXcpC5qGNu9tkrTEgPUg== ;{id = 2854}
228SECTION AUTHORITY
229example.com. IN NS ns.example.com.
230example.com. IN NS ns.blabla.com.
231example.com. 3600 IN RRSIG NS 3 2 3600 20070926134150 20070829134150 2854 example.com. AAJHNhPYVG6+550zQga9ZgV8McQZHLboOWjfbdiq2ZC+gUcQeQDDlFs= ;{id = 2854}
232SECTION ADDITIONAL
233ns.example.com. IN A 1.2.3.4
234ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCMSWxVehgOQLoYclB9PIAbNP229AIUeH0vNNGJhjnZiqgIOKvs1EhzqAo= ;{id = 2854}
235ENTRY_END
236
237; response to query of interest
238ENTRY_BEGIN
239MATCH opcode qtype qname
240ADJUST copy_id
241REPLY QR NOERROR
242SECTION QUESTION
243www.example.com. IN A
244SECTION ANSWER
245www.example.com. IN A 10.20.30.40
246ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926134150 20070829134150 2854 example.com. MC0CFQCQMyTjn7WWwpwAR1LlVeLpRgZGuQIUCcJDEkwAuzytTDRlYK7nIMwH1CM= ;{id = 2854}
247SECTION AUTHORITY
248example.com. IN NS ns.example.com.
249example.com. IN NS ns.blabla.com.
250example.com. 3600 IN RRSIG NS 3 2 3600 20070926134150 20070829134150 2854 example.com. AAJHNhPYVG6+550zQga9ZgV8McQZHLboOWjfbdiq2ZC+gUcQeQDDlFs= ;{id = 2854}
251SECTION ADDITIONAL
252ns.example.com. IN A 1.2.3.4
253www.example.com. 3600 IN RRSIG A 3 3 3600 20070926134150 20070829134150 2854 example.com. MC0CFC99iE9K5y2WNgI0gFvBWaTi9wm6AhUAoUqOpDtG5Zct+Qr9F3mSdnbc6V4= ;{id = 2854}
254ENTRY_END
255RANGE_END
256
257; ns.example.com.
258; later on, making sure DNSKEY primes give testbound failure.
259RANGE_BEGIN 100 200
260 ADDRESS 1.2.3.4
261ENTRY_BEGIN
262MATCH opcode qtype qname
263ADJUST copy_id
264REPLY QR NOERROR
265SECTION QUESTION
266ftp.example.com. IN A
267SECTION ANSWER
268ftp.example.com. IN A 10.20.33.33
269; very bad signature
270ftp.example.com. 3600 IN RRSIG A 3 3 3600 20030926134150 20030829134150 2854 example.com. AHNj99mBmP4np19V01nSq990ZIFlIiLWoeHijm/HcOG/o8+DuIp4fL8= ;{id = 2854}
271ENTRY_END
272RANGE_END
273
274
275STEP 1 QUERY
276ENTRY_BEGIN
277REPLY RD DO
278SECTION QUESTION
279www.example.com. IN A
280ENTRY_END
281
282; recursion happens here.
283STEP 10 CHECK_ANSWER
284ENTRY_BEGIN
285MATCH all
286REPLY QR RD RA DO SERVFAIL
287SECTION QUESTION
288www.example.com. IN A
289ENTRY_END
290
291STEP 100 TIME_PASSES ELAPSE 10
292
293; second query should not result in going to the network.
294STEP 110 QUERY
295ENTRY_BEGIN
296REPLY RD DO
297SECTION QUESTION
298ftp.example.com. IN A
299ENTRY_END
300
301; recursion happens here.
302STEP 120 CHECK_ANSWER
303ENTRY_BEGIN
304MATCH all
305REPLY QR RD RA DO SERVFAIL
306SECTION QUESTION
307ftp.example.com. IN A
308ENTRY_END
309
310
311SCENARIO_END