]> git.saurik.com Git - apple/network_cmds.git/blob - unbound/testdata/iter_stublastresort.rpl
network_cmds-596.100.2.tar.gz
[apple/network_cmds.git] / unbound / testdata / iter_stublastresort.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
9 stub-zone:
10 name: "example.com"
11 stub-addr: 1.2.3.6
12 stub-prime: yes
13
14 CONFIG_END
15
16 SCENARIO_BEGIN Test stub with stub-prime and last resort fallback
17 ; the last resort fallback should not activate, as the
18 ; configured stub must be used for this data, or its primed data.
19
20 ; K.ROOT-SERVERS.NET.
21 RANGE_BEGIN 0 100
22 ADDRESS 193.0.14.129
23 ENTRY_BEGIN
24 MATCH opcode qtype qname
25 ADJUST copy_id
26 REPLY QR NOERROR
27 SECTION QUESTION
28 . IN NS
29 SECTION ANSWER
30 . IN NS K.ROOT-SERVERS.NET.
31 SECTION ADDITIONAL
32 K.ROOT-SERVERS.NET. IN A 193.0.14.129
33 ENTRY_END
34
35 ENTRY_BEGIN
36 MATCH opcode subdomain
37 ADJUST copy_id copy_query
38 REPLY QR NOERROR
39 SECTION QUESTION
40 com. IN A
41 SECTION AUTHORITY
42 com. IN NS a.gtld-servers.net.
43 SECTION ADDITIONAL
44 a.gtld-servers.net. IN A 192.5.6.30
45 ENTRY_END
46 RANGE_END
47
48 ; a.gtld-servers.net.
49 RANGE_BEGIN 0 100
50 ADDRESS 192.5.6.30
51 ENTRY_BEGIN
52 MATCH opcode qtype qname
53 ADJUST copy_id
54 REPLY QR NOERROR
55 SECTION QUESTION
56 com. IN NS
57 SECTION ANSWER
58 com. IN NS a.gtld-servers.net.
59 SECTION ADDITIONAL
60 a.gtld-servers.net. IN A 192.5.6.30
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 example.com. IN A
69 SECTION AUTHORITY
70 example.com. IN NS ns.example.com.
71 SECTION ADDITIONAL
72 ns.example.com. IN A 1.2.3.4
73 ENTRY_END
74 RANGE_END
75
76 ; ns.example.com.
77 RANGE_BEGIN 0 100
78 ADDRESS 1.2.3.4
79 ENTRY_BEGIN
80 MATCH opcode qtype qname
81 ADJUST copy_id
82 REPLY QR NOERROR
83 SECTION QUESTION
84 example.com. IN NS
85 SECTION ANSWER
86 example.com. IN NS ns.example.com.
87 SECTION ADDITIONAL
88 ns.example.com. IN A 1.2.3.4
89 ENTRY_END
90
91 ENTRY_BEGIN
92 MATCH opcode qtype qname
93 ADJUST copy_id
94 REPLY QR NOERROR
95 SECTION QUESTION
96 ns.example.com. IN A
97 SECTION ANSWER
98 ns.example.com. IN A 1.2.3.4
99 ENTRY_END
100
101 ENTRY_BEGIN
102 MATCH opcode qtype qname
103 ADJUST copy_id
104 REPLY QR NOERROR
105 SECTION QUESTION
106 ns.example.com. IN AAAA
107 SECTION ANSWER
108 ENTRY_END
109
110 ENTRY_BEGIN
111 MATCH opcode qtype qname
112 ADJUST copy_id
113 REPLY QR NOERROR
114 SECTION QUESTION
115 www.example.com. IN A
116 SECTION ANSWER
117 www.example.com. IN A 10.20.30.40
118 SECTION AUTHORITY
119 example.com. IN NS ns.example.com.
120 SECTION ADDITIONAL
121 ns.example.com. IN A 1.2.3.4
122 ENTRY_END
123 RANGE_END
124
125 ; the stub-prime server.
126 ; local authority (that fails a lot)
127 RANGE_BEGIN 0 100
128 ADDRESS 1.2.3.6
129
130 ENTRY_BEGIN
131 MATCH opcode qtype qname
132 ADJUST copy_id
133 REPLY QR AA
134 SECTION QUESTION
135 example.com. IN NS
136 SECTION ANSWER
137 example.com. IN NS ns.example.com.
138 SECTION ADDITIONAL
139 ns.example.com. IN A 1.2.3.7
140 ENTRY_END
141
142 ENTRY_BEGIN
143 MATCH opcode qtype qname
144 ADJUST copy_id
145 REPLY QR AA SERVFAIL
146 SECTION QUESTION
147 ns.example.com. IN A
148 SECTION ANSWER
149 ;ns.example.com. IN A 1.2.3.7
150 ENTRY_END
151
152 ENTRY_BEGIN
153 MATCH opcode qtype qname
154 ADJUST copy_id
155 REPLY QR AA SERVFAIL
156 SECTION QUESTION
157 ns.example.com. IN AAAA
158 SECTION ANSWER
159 ENTRY_END
160
161 ENTRY_BEGIN
162 MATCH opcode qtype qname
163 ADJUST copy_id
164 REPLY QR AA SERVFAIL
165 SECTION QUESTION
166 www.example.com. IN A
167 SECTION ANSWER
168 ;www.example.com. IN A 10.20.30.70
169 SECTION AUTHORITY
170 SECTION ADDITIONAL
171 ENTRY_END
172 RANGE_END
173
174 ; the primed server
175 RANGE_BEGIN 0 100
176 ADDRESS 1.2.3.7
177
178 ENTRY_BEGIN
179 MATCH opcode qtype qname
180 ADJUST copy_id
181 REPLY QR AA
182 SECTION QUESTION
183 example.com. IN NS
184 SECTION ANSWER
185 example.com. IN NS ns.example.com.
186 SECTION ADDITIONAL
187 ns.example.com. IN A 1.2.3.8
188 ENTRY_END
189
190 ENTRY_BEGIN
191 MATCH opcode qtype qname
192 ADJUST copy_id
193 REPLY QR AA
194 SECTION QUESTION
195 ns.example.com. IN A
196 SECTION ANSWER
197 ns.example.com. IN A 1.2.3.8
198 ENTRY_END
199
200 ENTRY_BEGIN
201 MATCH opcode qtype qname
202 ADJUST copy_id
203 REPLY QR AA
204 SECTION QUESTION
205 ns.example.com. IN AAAA
206 SECTION ANSWER
207 ENTRY_END
208
209 ENTRY_BEGIN
210 MATCH opcode qtype qname
211 ADJUST copy_id
212 REPLY QR AA SERVFAIL
213 SECTION QUESTION
214 www.example.com. IN A
215 SECTION ANSWER
216 ;www.example.com. IN A 10.20.30.80
217 SECTION AUTHORITY
218 SECTION ADDITIONAL
219 ENTRY_END
220 RANGE_END
221
222 ; crap server that the primed server refers to.
223 RANGE_BEGIN 0 100
224 ADDRESS 1.2.3.8
225
226 ENTRY_BEGIN
227 MATCH opcode
228 ADJUST copy_id copy_query
229 REPLY QR SERVFAIL
230 SECTION QUESTION
231 example.com. IN NS
232 SECTION ANSWER
233 ENTRY_END
234 RANGE_END
235
236
237 STEP 1 QUERY
238 ENTRY_BEGIN
239 REPLY RD
240 SECTION QUESTION
241 www.example.com. IN A
242 ENTRY_END
243
244 ; recursion happens here.
245 STEP 10 CHECK_ANSWER
246 ENTRY_BEGIN
247 MATCH all
248 REPLY QR RD RA SERVFAIL
249 SECTION QUESTION
250 www.example.com. IN A
251 SECTION ANSWER
252 ;www.example.com. IN A 10.20.30.50
253 SECTION AUTHORITY
254 ;example.com. IN NS ns.example.com.
255 SECTION ADDITIONAL
256 ;ns.example.com. IN A 1.2.3.4
257 ENTRY_END
258
259 SCENARIO_END