]>
Commit | Line | Data |
---|---|---|
89c4ed63 A |
1 | ; config options |
2 | ; The island of trust is at example.com | |
3 | server: | |
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 | ||
8 | stub-zone: | |
9 | name: "." | |
10 | stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET. | |
11 | CONFIG_END | |
12 | ||
13 | SCENARIO_BEGIN Test validator with blacklist for data response | |
14 | ||
15 | ; K.ROOT-SERVERS.NET. | |
16 | RANGE_BEGIN 0 100 | |
17 | ADDRESS 193.0.14.129 | |
18 | ENTRY_BEGIN | |
19 | MATCH opcode qtype qname | |
20 | ADJUST copy_id | |
21 | REPLY QR NOERROR | |
22 | SECTION QUESTION | |
23 | . IN NS | |
24 | SECTION ANSWER | |
25 | . IN NS K.ROOT-SERVERS.NET. | |
26 | SECTION ADDITIONAL | |
27 | K.ROOT-SERVERS.NET. IN A 193.0.14.129 | |
28 | ENTRY_END | |
29 | ||
30 | ENTRY_BEGIN | |
31 | MATCH opcode qtype qname | |
32 | ADJUST copy_id | |
33 | REPLY QR NOERROR | |
34 | SECTION QUESTION | |
35 | www.example.com. IN A | |
36 | SECTION AUTHORITY | |
37 | com. IN NS a.gtld-servers.net. | |
38 | SECTION ADDITIONAL | |
39 | a.gtld-servers.net. IN A 192.5.6.30 | |
40 | ENTRY_END | |
41 | RANGE_END | |
42 | ||
43 | ; a.gtld-servers.net. | |
44 | RANGE_BEGIN 0 100 | |
45 | ADDRESS 192.5.6.30 | |
46 | ENTRY_BEGIN | |
47 | MATCH opcode qtype qname | |
48 | ADJUST copy_id | |
49 | REPLY QR NOERROR | |
50 | SECTION QUESTION | |
51 | com. IN NS | |
52 | SECTION ANSWER | |
53 | com. IN NS a.gtld-servers.net. | |
54 | SECTION ADDITIONAL | |
55 | a.gtld-servers.net. IN A 192.5.6.30 | |
56 | ENTRY_END | |
57 | ||
58 | ENTRY_BEGIN | |
59 | MATCH opcode qtype qname | |
60 | ADJUST copy_id | |
61 | REPLY QR NOERROR | |
62 | SECTION QUESTION | |
63 | ns.blabla.com. IN A | |
64 | SECTION ANSWER | |
65 | ns.blabla.com. IN A 1.2.3.5 | |
66 | ENTRY_END | |
67 | ||
68 | ENTRY_BEGIN | |
69 | MATCH opcode qtype qname | |
70 | ADJUST copy_id | |
71 | REPLY QR NOERROR | |
72 | SECTION QUESTION | |
73 | ns.blabla.com. IN AAAA | |
74 | SECTION AUTHORITY | |
75 | com. IN SOA com. com. 2009100100 28800 7200 604800 3600 | |
76 | ENTRY_END | |
77 | ||
78 | ENTRY_BEGIN | |
79 | MATCH opcode subdomain | |
80 | ADJUST copy_id copy_query | |
81 | REPLY QR NOERROR | |
82 | SECTION QUESTION | |
83 | example.com. IN NS | |
84 | SECTION AUTHORITY | |
85 | example.com. IN NS ns.example.com. | |
86 | example.com. IN NS ns.blabla.com. | |
87 | SECTION ADDITIONAL | |
88 | ns.example.com. IN A 1.2.3.4 | |
89 | ; no ns.blabla.com, try that later | |
90 | ENTRY_END | |
91 | RANGE_END | |
92 | ||
93 | ; ns.example.com. | |
94 | RANGE_BEGIN 0 100 | |
95 | ADDRESS 1.2.3.4 | |
96 | ENTRY_BEGIN | |
97 | MATCH opcode qtype qname | |
98 | ADJUST copy_id | |
99 | REPLY QR NOERROR | |
100 | SECTION QUESTION | |
101 | example.com. IN NS | |
102 | SECTION ANSWER | |
103 | example.com. IN NS ns.example.com. | |
104 | example.com. IN NS ns.blabla.com. | |
105 | example.com. 3600 IN RRSIG NS 3 2 3600 20030926134150 20030829134150 2854 example.com. AKJ3xUBdSrCiOFkYajsy93d+h06rewpbmBHItTkL8R/26rw57b1gCIg= ;{id = 2854} | |
106 | SECTION ADDITIONAL | |
107 | ns.example.com. IN A 1.2.3.4 | |
108 | ns.example.com. 3600 IN RRSIG A 3 3 3600 20030926134150 20030829134150 2854 example.com. AHNj99mBmP4np19V01nSq990ZIFlIiLWoeHijm/HcOG/o8+DuIp4fL8= ;{id = 2854} | |
109 | ENTRY_END | |
110 | ||
111 | ENTRY_BEGIN | |
112 | MATCH opcode qtype qname | |
113 | ADJUST copy_id | |
114 | REPLY QR NOERROR | |
115 | SECTION QUESTION | |
116 | ns.example.com. IN A | |
117 | SECTION ANSWER | |
118 | ns.example.com. IN A 1.2.3.4 | |
119 | ns.example.com. 3600 IN RRSIG A 3 3 3600 20030926134150 20030829134150 2854 example.com. AHNj99mBmP4np19V01nSq990ZIFlIiLWoeHijm/HcOG/o8+DuIp4fL8= ;{id = 2854} | |
120 | SECTION ADDITIONAL | |
121 | ENTRY_END | |
122 | ||
123 | ENTRY_BEGIN | |
124 | MATCH opcode qtype qname | |
125 | ADJUST copy_id | |
126 | REPLY QR NOERROR | |
127 | SECTION QUESTION | |
128 | ns.example.com. IN AAAA | |
129 | SECTION ANSWER | |
130 | SECTION ADDITIONAL | |
131 | ns.example.com. IN NSEC oof.example.com. NSEC RRSIG A | |
132 | ns.example.com. 3600 IN RRSIG NSEC 3 3 3600 20030926134150 20030829134150 2854 example.com. ACFVLLBtuSX/1z3461tbOwDz9zTHe5S9DbVtwnSO1f2x06fYbMpzSDE= ;{id = 2854} | |
133 | ENTRY_END | |
134 | ||
135 | ; response to DNSKEY priming query | |
136 | ENTRY_BEGIN | |
137 | MATCH opcode qtype qname | |
138 | ADJUST copy_id | |
139 | REPLY QR NOERROR | |
140 | SECTION QUESTION | |
141 | example.com. IN DNSKEY | |
142 | SECTION ANSWER | |
143 | example.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} | |
144 | ; make priming query succeed | |
145 | example.com. 3600 IN RRSIG DNSKEY 3 2 3600 20070926134802 20070829134802 2854 example.com. MCwCFG1yhRNtTEa3Eno2zhVVuy2EJX3wAhQeLyUp6+UXcpC5qGNu9tkrTEgPUg== ;{id = 2854} | |
146 | ;example.com. 3600 IN RRSIG DNSKEY 3 2 3600 20030926134150 20030829134150 2854 example.com. AG21xE8CFQzTq6XtHErg28b9EAmqPsoYCUcFPEAoAjFybM6AY4/bMOo= ;{id = 2854} | |
147 | SECTION 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} | |
151 | SECTION 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} | |
154 | ENTRY_END | |
155 | ||
156 | ; response to query of interest | |
157 | ENTRY_BEGIN | |
158 | MATCH opcode qtype qname | |
159 | ADJUST copy_id | |
160 | REPLY QR NOERROR | |
161 | SECTION QUESTION | |
162 | www.example.com. IN A | |
163 | SECTION ANSWER | |
164 | www.example.com. IN A 10.20.30.40 | |
165 | www.example.com. 3600 IN RRSIG A 3 3 3600 20030926134150 20030829134150 2854 example.com. AGj9kE8oW3OhOLhkmJ3HBaNIOpvGf3S8zSd5gWmhpxAMc5hh6cxZfpQ= ;{id = 2854} | |
166 | SECTION 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} | |
170 | SECTION 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} | |
173 | ENTRY_END | |
174 | RANGE_END | |
175 | ||
176 | ; ns.blabla.com. | |
177 | RANGE_BEGIN 0 100 | |
178 | ADDRESS 1.2.3.5 | |
179 | ENTRY_BEGIN | |
180 | MATCH opcode qtype qname | |
181 | ADJUST copy_id | |
182 | REPLY QR NOERROR | |
183 | SECTION QUESTION | |
184 | example.com. IN NS | |
185 | SECTION ANSWER | |
186 | example.com. IN NS ns.example.com. | |
187 | example.com. IN NS ns.blabla.com. | |
188 | example.com. 3600 IN RRSIG NS 3 2 3600 20070926134150 20070829134150 2854 example.com. AAJHNhPYVG6+550zQga9ZgV8McQZHLboOWjfbdiq2ZC+gUcQeQDDlFs= ;{id = 2854} | |
189 | SECTION ADDITIONAL | |
190 | ns.example.com. IN A 1.2.3.4 | |
191 | ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCMSWxVehgOQLoYclB9PIAbNP229AIUeH0vNNGJhjnZiqgIOKvs1EhzqAo= ;{id = 2854} | |
192 | ENTRY_END | |
193 | ||
194 | ENTRY_BEGIN | |
195 | MATCH opcode qtype qname | |
196 | ADJUST copy_id | |
197 | REPLY QR NOERROR | |
198 | SECTION QUESTION | |
199 | ns.example.com. IN A | |
200 | SECTION ANSWER | |
201 | ns.example.com. IN A 1.2.3.4 | |
202 | ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCMSWxVehgOQLoYclB9PIAbNP229AIUeH0vNNGJhjnZiqgIOKvs1EhzqAo= ;{id = 2854} | |
203 | SECTION ADDITIONAL | |
204 | ENTRY_END | |
205 | ||
206 | ENTRY_BEGIN | |
207 | MATCH opcode qtype qname | |
208 | ADJUST copy_id | |
209 | REPLY QR NOERROR | |
210 | SECTION QUESTION | |
211 | ns.example.com. IN AAAA | |
212 | SECTION ANSWER | |
213 | SECTION ADDITIONAL | |
214 | ns.example.com. IN NSEC oof.example.com. NSEC RRSIG A | |
215 | ns.example.com. 3600 IN RRSIG NSEC 3 3 3600 20070926134150 20070829134150 2854 example.com. ABhDNtJramb2a4R1SK5gb/CTYJybQts6mZ++z3kLiwsrUSZInA4ikeQ= ;{id = 2854} | |
216 | ENTRY_END | |
217 | ||
218 | ; response to DNSKEY priming query | |
219 | ENTRY_BEGIN | |
220 | MATCH opcode qtype qname | |
221 | ADJUST copy_id | |
222 | REPLY QR NOERROR | |
223 | SECTION QUESTION | |
224 | example.com. IN DNSKEY | |
225 | SECTION ANSWER | |
226 | example.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} | |
227 | example.com. 3600 IN RRSIG DNSKEY 3 2 3600 20070926134802 20070829134802 2854 example.com. MCwCFG1yhRNtTEa3Eno2zhVVuy2EJX3wAhQeLyUp6+UXcpC5qGNu9tkrTEgPUg== ;{id = 2854} | |
228 | SECTION AUTHORITY | |
229 | example.com. IN NS ns.example.com. | |
230 | example.com. IN NS ns.blabla.com. | |
231 | example.com. 3600 IN RRSIG NS 3 2 3600 20070926134150 20070829134150 2854 example.com. AAJHNhPYVG6+550zQga9ZgV8McQZHLboOWjfbdiq2ZC+gUcQeQDDlFs= ;{id = 2854} | |
232 | SECTION ADDITIONAL | |
233 | ns.example.com. IN A 1.2.3.4 | |
234 | ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCMSWxVehgOQLoYclB9PIAbNP229AIUeH0vNNGJhjnZiqgIOKvs1EhzqAo= ;{id = 2854} | |
235 | ENTRY_END | |
236 | ||
237 | ; response to query of interest | |
238 | ENTRY_BEGIN | |
239 | MATCH opcode qtype qname | |
240 | ADJUST copy_id | |
241 | REPLY QR NOERROR | |
242 | SECTION QUESTION | |
243 | www.example.com. IN A | |
244 | SECTION ANSWER | |
245 | www.example.com. IN A 10.20.30.40 | |
246 | ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926134150 20070829134150 2854 example.com. MC0CFQCQMyTjn7WWwpwAR1LlVeLpRgZGuQIUCcJDEkwAuzytTDRlYK7nIMwH1CM= ;{id = 2854} | |
247 | SECTION AUTHORITY | |
248 | example.com. IN NS ns.example.com. | |
249 | example.com. IN NS ns.blabla.com. | |
250 | example.com. 3600 IN RRSIG NS 3 2 3600 20070926134150 20070829134150 2854 example.com. AAJHNhPYVG6+550zQga9ZgV8McQZHLboOWjfbdiq2ZC+gUcQeQDDlFs= ;{id = 2854} | |
251 | SECTION ADDITIONAL | |
252 | ns.example.com. IN A 1.2.3.4 | |
253 | www.example.com. 3600 IN RRSIG A 3 3 3600 20070926134150 20070829134150 2854 example.com. MC0CFC99iE9K5y2WNgI0gFvBWaTi9wm6AhUAoUqOpDtG5Zct+Qr9F3mSdnbc6V4= ;{id = 2854} | |
254 | ENTRY_END | |
255 | RANGE_END | |
256 | ||
257 | STEP 1 QUERY | |
258 | ENTRY_BEGIN | |
259 | REPLY RD DO | |
260 | SECTION QUESTION | |
261 | www.example.com. IN A | |
262 | ENTRY_END | |
263 | ||
264 | ; recursion happens here. | |
265 | STEP 10 CHECK_ANSWER | |
266 | ENTRY_BEGIN | |
267 | MATCH all | |
268 | REPLY QR RD RA AD DO NOERROR | |
269 | SECTION QUESTION | |
270 | www.example.com. IN A | |
271 | SECTION ANSWER | |
272 | www.example.com. IN A 10.20.30.40 | |
273 | www.example.com. 3600 IN RRSIG A 3 3 3600 20070926134150 20070829134150 2854 example.com. MC0CFC99iE9K5y2WNgI0gFvBWaTi9wm6AhUAoUqOpDtG5Zct+Qr9F3mSdnbc6V4= ;{id = 2854} | |
274 | SECTION AUTHORITY | |
275 | example.com. IN NS ns.example.com. | |
276 | example.com. IN NS ns.blabla.com. | |
277 | example.com. 3600 IN RRSIG NS 3 2 3600 20070926134150 20070829134150 2854 example.com. AAJHNhPYVG6+550zQga9ZgV8McQZHLboOWjfbdiq2ZC+gUcQeQDDlFs= ;{id = 2854} | |
278 | SECTION ADDITIONAL | |
279 | ns.example.com. IN A 1.2.3.4 | |
280 | ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926134150 20070829134150 2854 example.com. MC0CFQCQMyTjn7WWwpwAR1LlVeLpRgZGuQIUCcJDEkwAuzytTDRlYK7nIMwH1CM= ;{id = 2854} | |
281 | ENTRY_END | |
282 | ||
283 | ; remove pending ns.blabla.com AAAA msg | |
284 | STEP 30 QUERY | |
285 | ENTRY_BEGIN | |
286 | REPLY RD DO CD | |
287 | SECTION QUESTION | |
288 | ns.blabla.com. IN AAAA | |
289 | ENTRY_END | |
290 | ||
291 | ; recursion happens here. | |
292 | STEP 40 CHECK_ANSWER | |
293 | ENTRY_BEGIN | |
294 | MATCH all | |
295 | REPLY QR RD CD RA DO NOERROR | |
296 | SECTION QUESTION | |
297 | ns.blabla.com. IN AAAA | |
298 | SECTION ANSWER | |
299 | SECTION AUTHORITY | |
300 | com. IN SOA com. com. 2009100100 28800 7200 604800 3600 | |
301 | ENTRY_END | |
302 | ||
303 | SCENARIO_END |