]> git.saurik.com Git - apple/network_cmds.git/blob - unbound/testdata/iter_pcnamerec.rpl
network_cmds-596.100.2.tar.gz
[apple/network_cmds.git] / unbound / testdata / iter_pcnamerec.rpl
1 ; config options
2 server:
3 target-fetch-policy: "0 0 0 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 resolution with parent child differ names recursive.
11 ; the parent has an extra name that is the only working one.
12 ; and that name needs its parent-side glue to work.
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 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 subdomain
31 ADJUST copy_id copy_query
32 REPLY QR NOERROR
33 SECTION QUESTION
34 com. IN NS
35 SECTION AUTHORITY
36 com. IN NS a.gtld-servers.net.
37 SECTION ADDITIONAL
38 a.gtld-servers.net. IN A 192.5.6.30
39 ENTRY_END
40
41 ENTRY_BEGIN
42 MATCH opcode subdomain
43 ADJUST copy_id copy_query
44 REPLY QR NOERROR
45 SECTION QUESTION
46 net. IN NS
47 SECTION AUTHORITY
48 net. IN NS e.gtld-servers.net.
49 SECTION ADDITIONAL
50 e.gtld-servers.net. IN A 192.12.94.30
51 ENTRY_END
52
53 RANGE_END
54
55 ; a.gtld-servers.net.
56 RANGE_BEGIN 0 100
57 ADDRESS 192.5.6.30
58 ENTRY_BEGIN
59 MATCH opcode qtype qname
60 ADJUST copy_id
61 REPLY QR NOERROR
62 SECTION QUESTION
63 com. IN NS
64 SECTION ANSWER
65 com. IN NS a.gtld-servers.net.
66 SECTION ADDITIONAL
67 a.gtld-servers.net. IN A 192.5.6.30
68 ENTRY_END
69
70 ENTRY_BEGIN
71 MATCH opcode subdomain
72 ADJUST copy_id copy_query
73 REPLY QR NOERROR
74 SECTION QUESTION
75 example.com. IN NS
76 SECTION AUTHORITY
77 example.com. IN NS ns.example.com.
78 example.com. IN NS ns.example.net.
79 SECTION ADDITIONAL
80 ns.example.com. IN A 1.2.3.55
81 ENTRY_END
82 RANGE_END
83
84 ; e.gtld-servers.net.
85 RANGE_BEGIN 0 100
86 ADDRESS 192.12.94.30
87 ENTRY_BEGIN
88 MATCH opcode qtype qname
89 ADJUST copy_id
90 REPLY QR NOERROR
91 SECTION QUESTION
92 net. IN NS
93 SECTION ANSWER
94 net. IN NS e.gtld-servers.net.
95 SECTION ADDITIONAL
96 e.gtld-servers.net. IN A 192.12.94.30
97 ENTRY_END
98
99 ENTRY_BEGIN
100 MATCH opcode subdomain
101 ADJUST copy_id copy_query
102 REPLY QR NOERROR
103 SECTION QUESTION
104 example.net. IN NS
105 SECTION AUTHORITY
106 example.net. IN NS ns.example.net.
107 SECTION ADDITIONAL
108 ns.example.net. IN A 1.2.3.44
109 ENTRY_END
110
111 RANGE_END
112
113 ; ns.example.net.
114 ; the working version.
115 RANGE_BEGIN 0 100
116 ADDRESS 1.2.3.44
117 ENTRY_BEGIN
118 MATCH opcode qtype qname
119 ADJUST copy_id
120 REPLY AA QR NOERROR
121 SECTION QUESTION
122 example.net. IN NS
123 SECTION ANSWER
124 example.net. IN NS ns.example.net.
125 SECTION ADDITIONAL
126 ns.example.net. IN A 1.2.3.55
127 ENTRY_END
128
129 ENTRY_BEGIN
130 MATCH opcode qtype qname
131 ADJUST copy_id
132 REPLY AA QR NOERROR
133 SECTION QUESTION
134 ns.example.net. IN A
135 SECTION ANSWER
136 ns.example.net. IN A 1.2.3.55
137 SECTION AUTHORITY
138 example.net. IN NS ns.example.net.
139 ENTRY_END
140
141 ENTRY_BEGIN
142 MATCH opcode qtype qname
143 ADJUST copy_id
144 REPLY AA QR NOERROR
145 SECTION QUESTION
146 ns.example.net. IN AAAA
147 SECTION AUTHORITY
148 example.net. IN NS ns.example.net.
149 SECTION ADDITIONAL
150 ns.example.net. IN A 1.2.3.55
151 ENTRY_END
152
153 ENTRY_BEGIN
154 MATCH opcode qtype qname
155 ADJUST copy_id
156 REPLY AA QR NOERROR
157 SECTION QUESTION
158 ns.example.com. IN A
159 SECTION ANSWER
160 ns.example.com. IN A 1.2.3.55
161 SECTION AUTHORITY
162 example.com. IN NS ns.example.com.
163 ENTRY_END
164
165 ENTRY_BEGIN
166 MATCH opcode qtype qname
167 ADJUST copy_id
168 REPLY AA QR NOERROR
169 SECTION QUESTION
170 ns.example.com. IN AAAA
171 SECTION AUTHORITY
172 example.com. IN NS ns.example.com.
173 SECTION ADDITIONAL
174 ns.example.com. IN A 1.2.3.55
175 ENTRY_END
176
177 ENTRY_BEGIN
178 MATCH opcode qtype qname
179 ADJUST copy_id
180 REPLY AA QR NOERROR
181 SECTION QUESTION
182 example.com. IN NS
183 SECTION ANSWER
184 example.com. IN NS ns.example.com.
185 SECTION ADDITIONAL
186 ns.example.com. IN A 1.2.3.55
187 ENTRY_END
188
189 ENTRY_BEGIN
190 MATCH opcode qtype qname
191 ADJUST copy_id
192 REPLY AA QR NOERROR
193 SECTION QUESTION
194 www.example.com. IN A
195 SECTION ANSWER
196 www.example.com. IN A 10.20.30.40
197 SECTION AUTHORITY
198 example.com. IN NS ns.example.com.
199 SECTION ADDITIONAL
200 ns.example.com. IN A 1.2.3.55
201 ENTRY_END
202
203 ENTRY_BEGIN
204 MATCH opcode qtype qname
205 ADJUST copy_id
206 REPLY AA QR NOERROR
207 SECTION QUESTION
208 mail.example.com. IN A
209 SECTION ANSWER
210 mail.example.com. IN A 10.20.30.20
211 SECTION AUTHORITY
212 example.com. IN NS ns.example.com.
213 SECTION ADDITIONAL
214 ns.example.com. IN A 1.2.3.55
215 ENTRY_END
216 RANGE_END
217
218 ; ns.example.net
219 ; Broken. Does not respond to anything (servfail instead
220 ; of timeouts since this is easier to encode in .rpl file format).
221 RANGE_BEGIN 0 100
222 ADDRESS 1.2.3.55
223 ENTRY_BEGIN
224 MATCH opcode
225 ADJUST copy_id copy_query
226 REPLY QR SERVFAIL
227 SECTION QUESTION
228 example.net. IN NS
229 SECTION ANSWER
230 ENTRY_END
231
232 RANGE_END
233
234 STEP 1 QUERY
235 ENTRY_BEGIN
236 REPLY RD
237 SECTION QUESTION
238 www.example.com. IN A
239 ENTRY_END
240
241 ; recursion happens here.
242 STEP 20 CHECK_ANSWER
243 ENTRY_BEGIN
244 MATCH all
245 REPLY QR RD RA NOERROR
246 SECTION QUESTION
247 www.example.com. IN A
248 SECTION ANSWER
249 www.example.com. IN A 10.20.30.40
250 SECTION AUTHORITY
251 example.com. IN NS ns.example.com.
252 SECTION ADDITIONAL
253 ns.example.com. IN A 1.2.3.55
254 ENTRY_END
255
256 ; now that the bad child NS record is in cache, ask something else.
257 STEP 30 QUERY
258 ENTRY_BEGIN
259 REPLY RD
260 SECTION QUESTION
261 mail.example.com. IN A
262 ENTRY_END
263
264 STEP 40 CHECK_ANSWER
265 ENTRY_BEGIN
266 MATCH all
267 REPLY QR RD RA NOERROR
268 SECTION QUESTION
269 mail.example.com. IN A
270 SECTION ANSWER
271 mail.example.com. IN A 10.20.30.20
272 SECTION AUTHORITY
273 example.com. IN NS ns.example.com.
274 SECTION ADDITIONAL
275 ns.example.com. IN A 1.2.3.55
276 ENTRY_END
277
278 SCENARIO_END