]> git.saurik.com Git - apple/network_cmds.git/blob - unbound/testdata/iter_ds_locate_ns_detach.rpl
9288fe56011e1246e0e6b9b00b7b2d0e48a3f93a
[apple/network_cmds.git] / unbound / testdata / iter_ds_locate_ns_detach.rpl
1 ; config options
2 server:
3 target-fetch-policy: "3 2 1 0 0"
4
5 stub-zone:
6 name: "."
7 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
8 CONFIG_END
9
10 SCENARIO_BEGIN Test locate of NS records for DS and with detached queries
11 ; the additional targets looked up cause detached queries.
12 ; hence the target fetch policy is increased above.
13
14 ; K.ROOT-SERVERS.NET.
15 RANGE_BEGIN 0 100
16 ADDRESS 193.0.14.129
17 ENTRY_BEGIN
18 MATCH opcode qtype qname
19 ADJUST copy_id
20 REPLY QR AA NOERROR
21 SECTION QUESTION
22 . IN NS
23 SECTION ANSWER
24 . IN NS K.ROOT-SERVERS.NET.
25 SECTION ADDITIONAL
26 K.ROOT-SERVERS.NET. IN A 193.0.14.129
27 ENTRY_END
28
29 ENTRY_BEGIN
30 MATCH opcode qtype qname
31 ADJUST copy_id
32 REPLY QR AA NOERROR
33 SECTION QUESTION
34 k.root-servers.net. IN A
35 SECTION ANSWER
36 K.ROOT-SERVERS.NET. IN A 193.0.14.129
37 SECTION AUTHORITY
38 root-servers.net. IN NS K.ROOT-SERVERS.NET.
39 ENTRY_END
40
41 ENTRY_BEGIN
42 MATCH opcode qtype qname
43 ADJUST copy_id
44 REPLY QR AA NOERROR
45 SECTION QUESTION
46 k.root-servers.net. IN AAAA
47 SECTION ANSWER
48 SECTION AUTHORITY
49 root-servers.net. IN SOA K.ROOT-SERVERS.NET. hostmaster. 1 2 3 4 5
50 ENTRY_END
51
52 ENTRY_BEGIN
53 MATCH opcode qtype qname
54 ADJUST copy_id
55 REPLY QR AA NOERROR
56 SECTION QUESTION
57 net. IN DS
58 SECTION ANSWER
59 SECTION AUTHORITY
60 . IN SOA K.ROOT-SERVERS.NET. hostmaster. 1 2 3 4 5
61 ENTRY_END
62
63 ENTRY_BEGIN
64 MATCH opcode subdomain
65 ADJUST copy_id copy_query
66 REPLY QR NOERROR
67 SECTION QUESTION
68 net. IN A
69 SECTION AUTHORITY
70 net. IN NS a.server.net.
71 net. IN NS b.server.net.
72 net. IN NS c.server.net.
73 SECTION ADDITIONAL
74 a.server.net. IN A 192.5.6.30
75 ENTRY_END
76 RANGE_END
77
78 ; a.server.net.
79 ; The b.server.net and c.server.net servers are here to cause
80 ; extra lookups to be generated (to create detached queries in the
81 ; iterator), there is no IP address that answers for them set up.
82 ; force DSNSFind, we host a grandchild zone.
83 ; also, this range of steps is without responses for b and c, so that
84 ; they can be force to happen later (after the DSNS is activated).
85 RANGE_BEGIN 0 20
86 ADDRESS 192.5.6.30
87 ENTRY_BEGIN
88 MATCH opcode qtype qname
89 ADJUST copy_id
90 REPLY QR AA NOERROR
91 SECTION QUESTION
92 net. IN NS
93 SECTION ANSWER
94 net. IN NS a.server.net.
95 net. IN NS b.server.net.
96 net. IN NS c.server.net.
97 SECTION ADDITIONAL
98 a.server.net. IN A 192.5.6.30
99 ENTRY_END
100
101 ENTRY_BEGIN
102 MATCH opcode qtype qname
103 ADJUST copy_id
104 REPLY QR AA NOERROR
105 SECTION QUESTION
106 a.server.net. IN A
107 SECTION ANSWER
108 a.server.net. IN A 192.5.6.30
109 SECTION AUTHORITY
110 net. IN NS a.server.net.
111 net. IN NS b.server.net.
112 net. IN NS c.server.net.
113 ENTRY_END
114
115 ENTRY_BEGIN
116 MATCH opcode qtype qname
117 ADJUST copy_id
118 REPLY QR AA NOERROR
119 SECTION QUESTION
120 a.sub.example.net. IN DS
121 SECTION AUTHORITY
122 sub.example.net. IN SOA a.gtld-servers.net. hostmaster. 2 3 4 5 6
123 ENTRY_END
124
125 ENTRY_BEGIN
126 MATCH opcode qtype qname
127 ADJUST copy_id copy_query
128 REPLY QR NOERROR
129 SECTION QUESTION
130 sub.example.net. IN NS
131 SECTION ANSWER
132 sub.example.net. IN NS a.server.net.
133 sub.example.net. IN NS b.server.net.
134 sub.example.net. IN NS c.server.net.
135 SECTION ADDITIONAL
136 a.server.net. IN A 192.5.6.30
137 ENTRY_END
138
139 ENTRY_BEGIN
140 MATCH opcode subdomain
141 ADJUST copy_id copy_query
142 REPLY QR NOERROR
143 SECTION QUESTION
144 a.sub.example.net. IN A
145 SECTION AUTHORITY
146 sub.example.net. IN NS a.server.net.
147 SECTION ADDITIONAL
148 a.server.net. IN A 192.5.6.30
149 ENTRY_END
150 RANGE_END
151
152 ; a.server.net range with all the answers (to finish the test).
153 RANGE_BEGIN 30 100
154 ADDRESS 192.5.6.30
155 ENTRY_BEGIN
156 MATCH opcode qtype qname
157 ADJUST copy_id
158 REPLY QR AA NOERROR
159 SECTION QUESTION
160 net. IN NS
161 SECTION ANSWER
162 net. IN NS a.server.net.
163 net. IN NS b.server.net.
164 net. IN NS c.server.net.
165 SECTION ADDITIONAL
166 a.server.net. IN A 192.5.6.30
167 ENTRY_END
168
169 ENTRY_BEGIN
170 MATCH opcode qtype qname
171 ADJUST copy_id
172 REPLY QR AA NOERROR
173 SECTION QUESTION
174 a.server.net. IN A
175 SECTION ANSWER
176 a.server.net. IN A 192.5.6.30
177 SECTION AUTHORITY
178 net. IN NS a.server.net.
179 net. IN NS b.server.net.
180 net. IN NS c.server.net.
181 ENTRY_END
182
183 ENTRY_BEGIN
184 MATCH opcode qtype qname
185 ADJUST copy_id
186 REPLY QR AA NOERROR
187 SECTION QUESTION
188 a.server.net. IN AAAA
189 SECTION AUTHORITY
190 net. IN SOA a.gtld-servers.net. hostmaster. 2 3 4 5 6
191 ENTRY_END
192
193 ENTRY_BEGIN
194 MATCH opcode qtype qname
195 ADJUST copy_id
196 REPLY QR AA NOERROR
197 SECTION QUESTION
198 b.server.net. IN A
199 SECTION AUTHORITY
200 net. IN SOA a.gtld-servers.net. hostmaster. 2 3 4 5 6
201 ENTRY_END
202
203 ENTRY_BEGIN
204 MATCH opcode qtype qname
205 ADJUST copy_id
206 REPLY QR AA NOERROR
207 SECTION QUESTION
208 b.server.net. IN AAAA
209 SECTION AUTHORITY
210 net. IN SOA a.gtld-servers.net. hostmaster. 2 3 4 5 6
211 ENTRY_END
212
213 ENTRY_BEGIN
214 MATCH opcode qtype qname
215 ADJUST copy_id
216 REPLY QR AA NOERROR
217 SECTION QUESTION
218 c.server.net. IN A
219 SECTION AUTHORITY
220 net. IN SOA a.gtld-servers.net. hostmaster. 2 3 4 5 6
221 ENTRY_END
222
223 ENTRY_BEGIN
224 MATCH opcode qtype qname
225 ADJUST copy_id
226 REPLY QR AA NOERROR
227 SECTION QUESTION
228 c.server.net. IN AAAA
229 SECTION AUTHORITY
230 net. IN SOA a.gtld-servers.net. hostmaster. 2 3 4 5 6
231 ENTRY_END
232
233 ENTRY_BEGIN
234 MATCH opcode qtype qname
235 ADJUST copy_id
236 REPLY QR AA NOERROR
237 SECTION QUESTION
238 a.sub.example.net. IN DS
239 SECTION AUTHORITY
240 sub.example.net. IN SOA a.gtld-servers.net. hostmaster. 2 3 4 5 6
241 ENTRY_END
242
243 ENTRY_BEGIN
244 MATCH opcode qtype qname
245 ADJUST copy_id copy_query
246 REPLY QR NOERROR
247 SECTION QUESTION
248 sub.example.net. IN NS
249 SECTION ANSWER
250 sub.example.net. IN NS a.server.net.
251 sub.example.net. IN NS b.server.net.
252 sub.example.net. IN NS c.server.net.
253 SECTION ADDITIONAL
254 a.server.net. IN A 192.5.6.30
255 ENTRY_END
256
257 ENTRY_BEGIN
258 MATCH opcode subdomain
259 ADJUST copy_id copy_query
260 REPLY QR NOERROR
261 SECTION QUESTION
262 a.sub.example.net. IN A
263 SECTION AUTHORITY
264 sub.example.net. IN NS a.server.net.
265 SECTION ADDITIONAL
266 a.server.net. IN A 192.5.6.30
267 ENTRY_END
268 RANGE_END
269
270 STEP 1 QUERY
271 ENTRY_BEGIN
272 REPLY RD
273 SECTION QUESTION
274 a.sub.example.net. IN DS
275 ENTRY_END
276
277 ; make traffic flow at this time
278 STEP 15 TRAFFIC
279
280 STEP 20 TRAFFIC
281
282 STEP 40 CHECK_ANSWER
283 ENTRY_BEGIN
284 MATCH all
285 REPLY QR RD RA NOERROR
286 SECTION QUESTION
287 a.sub.example.net. IN DS
288 SECTION ANSWER
289 SECTION AUTHORITY
290 sub.example.net. IN SOA a.gtld-servers.net. hostmaster. 2 3 4 5 6
291 SECTION ADDITIONAL
292 ENTRY_END
293
294 STEP 50 TRAFFIC
295
296 SCENARIO_END