]> git.saurik.com Git - apple/network_cmds.git/blob - unbound/testdata/iter_lame_nosoa.rpl
903bb29bc99ff7fa5d84f1ce955e59f3ec324791
[apple/network_cmds.git] / unbound / testdata / iter_lame_nosoa.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 lame reply looks like nodata with noSOA
11
12 ; K.ROOT-SERVERS.NET.
13 RANGE_BEGIN 0 100
14 ADDRESS 193.0.14.129
15 ENTRY_BEGIN
16 MATCH opcode qtype qname
17 ADJUST copy_id
18 REPLY QR NOERROR
19 SECTION QUESTION
20 . IN NS
21 SECTION ANSWER
22 . IN NS K.ROOT-SERVERS.NET.
23 SECTION ADDITIONAL
24 K.ROOT-SERVERS.NET. IN A 193.0.14.129
25 ENTRY_END
26
27 ENTRY_BEGIN
28 MATCH opcode subdomain
29 ADJUST copy_id copy_query
30 REPLY QR NOERROR
31 SECTION QUESTION
32 com. IN NS
33 SECTION AUTHORITY
34 com. IN NS a.gtld-servers.net.
35 SECTION ADDITIONAL
36 a.gtld-servers.net. IN A 192.5.6.30
37 ENTRY_END
38
39 ENTRY_BEGIN
40 MATCH opcode subdomain
41 ADJUST copy_id copy_query
42 REPLY QR NOERROR
43 SECTION QUESTION
44 net. IN NS
45 SECTION AUTHORITY
46 net. IN NS e.gtld-servers.net.
47 SECTION ADDITIONAL
48 e.gtld-servers.net. IN A 192.12.94.30
49 ENTRY_END
50
51 RANGE_END
52
53 ; a.gtld-servers.net.
54 RANGE_BEGIN 0 100
55 ADDRESS 192.5.6.30
56 ENTRY_BEGIN
57 MATCH opcode qtype qname
58 ADJUST copy_id
59 REPLY QR NOERROR
60 SECTION QUESTION
61 com. IN NS
62 SECTION ANSWER
63 com. IN NS a.gtld-servers.net.
64 SECTION ADDITIONAL
65 a.gtld-servers.net. IN A 192.5.6.30
66 ENTRY_END
67
68 ENTRY_BEGIN
69 MATCH opcode subdomain
70 ADJUST copy_id copy_query
71 REPLY QR NOERROR
72 SECTION QUESTION
73 example.com. IN NS
74 SECTION AUTHORITY
75 example.com. IN NS ns.example.net.
76 example.com. IN NS ns.example.com.
77 SECTION ADDITIONAL
78 ns.example.com. IN A 1.2.3.55
79 ENTRY_END
80 RANGE_END
81
82 ; e.gtld-servers.net.
83 RANGE_BEGIN 0 100
84 ADDRESS 192.12.94.30
85 ENTRY_BEGIN
86 MATCH opcode qtype qname
87 ADJUST copy_id
88 REPLY QR NOERROR
89 SECTION QUESTION
90 net. IN NS
91 SECTION ANSWER
92 net. IN NS e.gtld-servers.net.
93 SECTION ADDITIONAL
94 e.gtld-servers.net. IN A 192.12.94.30
95 ENTRY_END
96
97 ENTRY_BEGIN
98 MATCH opcode subdomain
99 ADJUST copy_id copy_query
100 REPLY QR NOERROR
101 SECTION QUESTION
102 example.net. IN NS
103 SECTION AUTHORITY
104 example.net. IN NS ns.example.net.
105 SECTION ADDITIONAL
106 ns.example.net. IN A 1.2.3.44
107 ENTRY_END
108 RANGE_END
109
110 ; ns.example.net.
111 ; advertises +RA so it is REC_LAME.
112 RANGE_BEGIN 0 100
113 ADDRESS 1.2.3.44
114 ENTRY_BEGIN
115 MATCH opcode qtype qname
116 ADJUST copy_id
117 REPLY QR RA NOERROR
118 SECTION QUESTION
119 example.net. IN NS
120 SECTION ANSWER
121 example.net. IN NS ns.example.net.
122 SECTION ADDITIONAL
123 ns.example.net. IN A 1.2.3.44
124 ENTRY_END
125
126 ENTRY_BEGIN
127 MATCH opcode qtype qname
128 ADJUST copy_id
129 REPLY QR RA NOERROR
130 SECTION QUESTION
131 ns.example.net. IN A
132 SECTION ANSWER
133 ns.example.net. IN A 1.2.3.44
134 SECTION AUTHORITY
135 example.net. IN NS ns.example.net.
136 ENTRY_END
137
138 ENTRY_BEGIN
139 MATCH opcode qtype qname
140 ADJUST copy_id
141 REPLY QR RA NOERROR
142 SECTION QUESTION
143 ns.example.net. IN AAAA
144 SECTION AUTHORITY
145 example.net. IN NS ns.example.net.
146 SECTION ADDITIONAL
147 www.example.net. IN A 1.2.3.44
148 ENTRY_END
149
150 ENTRY_BEGIN
151 MATCH opcode qtype qname
152 ADJUST copy_id
153 REPLY QR RA NOERROR
154 SECTION QUESTION
155 example.com. IN NS
156 SECTION ANSWER
157 example.com. IN NS ns.example.net.
158 example.com. IN NS ns.example.com.
159 SECTION ADDITIONAL
160 ns.example.com. IN A 1.2.3.55
161 ENTRY_END
162
163 ENTRY_BEGIN
164 MATCH opcode qtype qname
165 ADJUST copy_id
166 REPLY QR RA NOERROR
167 SECTION QUESTION
168 ns.example.com. IN AAAA
169 SECTION ANSWER
170 SECTION AUTHORITY
171 example.com. IN NS ns.example.net.
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 QR RA NOERROR
181 SECTION QUESTION
182 ns.example.com. IN A
183 SECTION ANSWER
184 ns.example.com. IN A 1.2.3.55
185 SECTION AUTHORITY
186 example.com. IN NS ns.example.net.
187 example.com. IN NS ns.example.com.
188 ENTRY_END
189
190 ENTRY_BEGIN
191 MATCH opcode qtype qname
192 ADJUST copy_id
193 REPLY QR RA NOERROR
194 SECTION QUESTION
195 www.example.com. IN A
196 SECTION ANSWER
197 www.example.com. IN A 10.20.30.40
198 SECTION AUTHORITY
199 example.com. IN NS ns.example.net.
200 example.com. IN NS ns.example.com.
201 SECTION ADDITIONAL
202 ns.example.com. IN A 1.2.3.55
203 ns.example.net IN A 1.2.3.44
204 ENTRY_END
205
206 ENTRY_BEGIN
207 MATCH opcode qtype qname
208 ADJUST copy_id
209 REPLY QR RA NOERROR
210 SECTION QUESTION
211 mail.example.com. IN A
212 SECTION ANSWER
213 SECTION AUTHORITY
214 example.com. IN NS ns.example.net.
215 example.com. IN NS ns.example.com.
216 SECTION ADDITIONAL
217 ENTRY_END
218 RANGE_END
219
220 ; ns.example.com.
221 ; is like a BIND server that is LAME, authoritative for other domains,
222 ; but not this one, and somehow got this NS record in its cache.
223 ; trying to give 'lame referral' but to the same name, not up.
224 RANGE_BEGIN 0 100
225 ADDRESS 1.2.3.55
226 ENTRY_BEGIN
227 MATCH opcode subdomain
228 ADJUST copy_id copy_query
229 REPLY QR NOERROR
230 SECTION QUESTION
231 example.com. IN NS
232 SECTION AUTHORITY
233 example.com. IN NS ns.example.com.
234 SECTION ADDITIONAL
235 ENTRY_END
236 RANGE_END
237
238 ; store bad timing for one server to influence server selection
239 ; 1.2.3.44 (ns.example.net) gets 900 msec.
240 ; so the 376 ns.example.com is preferred.
241 STEP 1 INFRA_RTT 1.2.3.44 example.net. 900
242
243 STEP 10 QUERY
244 ENTRY_BEGIN
245 REPLY RD
246 SECTION QUESTION
247 www.example.com. IN A
248 ENTRY_END
249
250 ; recursion happens here.
251 STEP 20 CHECK_ANSWER
252 ENTRY_BEGIN
253 MATCH all
254 REPLY QR RD RA NOERROR
255 SECTION QUESTION
256 www.example.com. IN A
257 SECTION ANSWER
258 www.example.com. IN A 10.20.30.40
259 SECTION AUTHORITY
260 example.com. IN NS ns.example.net.
261 example.com. IN NS ns.example.com.
262 SECTION ADDITIONAL
263 ns.example.com. IN A 1.2.3.55
264 ; scrubbed off
265 ;ns.example.net IN A 1.2.3.44
266 ENTRY_END
267
268 ; query to recursion-lame server
269 STEP 30 QUERY
270 ENTRY_BEGIN
271 REPLY RD
272 SECTION QUESTION
273 mail.example.com. IN A
274 ENTRY_END
275
276 STEP 40 CHECK_ANSWER
277 ENTRY_BEGIN
278 MATCH all
279 REPLY QR RD RA NOERROR
280 SECTION QUESTION
281 mail.example.com. IN A
282 SECTION ANSWER
283 SECTION AUTHORITY
284 example.com. IN NS ns.example.net.
285 example.com. IN NS ns.example.com.
286 SECTION ADDITIONAL
287 ENTRY_END
288
289
290 SCENARIO_END