]> git.saurik.com Git - apple/network_cmds.git/blob - unbound/testdata/iter_pcdirect.rpl
network_cmds-480.tar.gz
[apple/network_cmds.git] / unbound / testdata / iter_pcdirect.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 resolver with parent-child diff for direct impact
11 ; the trouble is resolving this right away.
12 ; otherwise it gets picked out of the cache.
13 ; i.e. on a failed lookup, pickup lame stuff from the cache.
14 ; the nameserver lookup may have failed but produced some (lame) addresses.
15
16 ; K.ROOT-SERVERS.NET.
17 RANGE_BEGIN 0 100
18 ADDRESS 193.0.14.129
19 ENTRY_BEGIN
20 MATCH opcode qtype qname
21 ADJUST copy_id
22 REPLY QR NOERROR
23 SECTION QUESTION
24 . IN NS
25 SECTION ANSWER
26 . IN NS K.ROOT-SERVERS.NET.
27 SECTION ADDITIONAL
28 K.ROOT-SERVERS.NET. IN A 193.0.14.129
29 ENTRY_END
30
31 ENTRY_BEGIN
32 MATCH opcode qtype qname
33 ADJUST copy_id
34 REPLY QR NOERROR
35 SECTION QUESTION
36 www.example.com. IN A
37 SECTION AUTHORITY
38 com. IN NS a.gtld-servers.net.
39 SECTION ADDITIONAL
40 a.gtld-servers.net. IN A 192.5.6.30
41 ENTRY_END
42
43 ENTRY_BEGIN
44 MATCH opcode subdomain
45 ADJUST copy_id copy_query
46 REPLY QR NOERROR
47 SECTION QUESTION
48 org. IN A
49 SECTION AUTHORITY
50 org. IN NS a0.org.afilias-nst.org.
51 SECTION ADDITIONAL
52 a0.org.afilias-nst.org. IN A 199.19.56.1
53 ENTRY_END
54 RANGE_END
55
56 ; a.gtld-servers.net.
57 RANGE_BEGIN 0 100
58 ADDRESS 192.5.6.30
59 ENTRY_BEGIN
60 MATCH opcode qtype qname
61 ADJUST copy_id
62 REPLY QR NOERROR
63 SECTION QUESTION
64 com. IN NS
65 SECTION ANSWER
66 com. IN NS a.gtld-servers.net.
67 SECTION ADDITIONAL
68 a.gtld-servers.net. IN A 192.5.6.30
69 ENTRY_END
70
71 ENTRY_BEGIN
72 MATCH opcode qtype qname
73 ADJUST copy_id
74 REPLY QR NOERROR
75 SECTION QUESTION
76 www.example.com. IN A
77 SECTION AUTHORITY
78 example.com. IN NS ns.example.org.
79 ENTRY_END
80 RANGE_END
81
82 ; a0.org.afilias-nst.org.
83 RANGE_BEGIN 0 100
84 ADDRESS 199.19.56.1
85 ENTRY_BEGIN
86 MATCH opcode qtype qname
87 ADJUST copy_id
88 REPLY QR NOERROR
89 SECTION QUESTION
90 org. IN NS
91 SECTION ANSWER
92 org. IN NS a0.org.afilias-nst.org.
93 SECTION ADDITIONAL
94 a0.org.afilias-nst.org. IN A 199.19.56.1
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.org. IN A
103 SECTION AUTHORITY
104 example.org. IN NS ns.example.org.
105 SECTION ADDITIONAL
106 ; parent-side working address.
107 ns.example.org. IN A 1.2.3.4
108 ENTRY_END
109 RANGE_END
110
111 ; ns.example.org.
112 RANGE_BEGIN 0 100
113 ADDRESS 1.2.3.4
114 ENTRY_BEGIN
115 MATCH opcode qtype qname
116 ADJUST copy_id
117 REPLY QR NOERROR
118 SECTION QUESTION
119 example.com. IN NS
120 SECTION ANSWER
121 example.com. IN NS ns.example.org.
122 ENTRY_END
123
124 ENTRY_BEGIN
125 MATCH opcode qtype qname
126 ADJUST copy_id
127 REPLY QR NOERROR
128 SECTION QUESTION
129 example.org. IN NS
130 SECTION ANSWER
131 example.org. IN NS ns.example.org.
132 ENTRY_END
133
134 ENTRY_BEGIN
135 MATCH opcode qtype qname
136 ADJUST copy_id
137 REPLY QR AA RA NOERROR
138 SECTION QUESTION
139 www.example.com. IN A
140 SECTION ANSWER
141 www.example.com. IN A 10.20.30.40
142 SECTION AUTHORITY
143 example.com. IN NS ns.example.org.
144 ENTRY_END
145
146 ENTRY_BEGIN
147 MATCH opcode qtype qname
148 ADJUST copy_id
149 REPLY QR AA RA NOERROR
150 SECTION QUESTION
151 mail.example.com. IN A
152 SECTION ANSWER
153 mail.example.com. IN A 10.20.30.50
154 SECTION AUTHORITY
155 example.com. IN NS ns.example.org.
156 ENTRY_END
157
158 ENTRY_BEGIN
159 MATCH opcode qtype qname
160 ADJUST copy_id
161 REPLY QR RA NOERROR
162 SECTION QUESTION
163 ns.example.org. IN A
164 SECTION ANSWER
165 ; correct answer: ns.example.org. IN A 1.2.3.4
166 SECTION AUTHORITY
167 ns.example.org. IN NS 1.2.3.4.example.org.
168 ENTRY_END
169
170 ENTRY_BEGIN
171 MATCH opcode qtype qname
172 ADJUST copy_id
173 REPLY QR RA NOERROR
174 SECTION QUESTION
175 ns.example.org. IN AAAA
176 SECTION ANSWER
177 SECTION AUTHORITY
178 ns.example.org. IN NS 1.2.3.4.example.org.
179 ENTRY_END
180
181 ENTRY_BEGIN
182 MATCH opcode qtype qname
183 ADJUST copy_id
184 REPLY QR AA RA NXDOMAIN
185 SECTION QUESTION
186 1.2.3.4.example.org. IN A
187 SECTION ANSWER
188 SECTION AUTHORITY
189 example.org. IN SOA ns.example.org. root.example.org. 2009111400 14400 3600 1209600 86400
190 ENTRY_END
191
192 ENTRY_BEGIN
193 MATCH opcode qtype qname
194 ADJUST copy_id
195 REPLY QR AA RA NXDOMAIN
196 SECTION QUESTION
197 1.2.3.4.example.org. IN AAAA
198 SECTION ANSWER
199 SECTION AUTHORITY
200 example.org. IN SOA ns.example.org. root.example.org. 2009111400 14400 3600 1209600 86400
201 ENTRY_END
202
203 RANGE_END
204
205 STEP 1 QUERY
206 ENTRY_BEGIN
207 REPLY RD
208 SECTION QUESTION
209 www.example.com. IN A
210 ENTRY_END
211
212 ; recursion happens here.
213 STEP 10 CHECK_ANSWER
214 ENTRY_BEGIN
215 MATCH all
216 REPLY QR RD RA NOERROR
217 SECTION QUESTION
218 www.example.com. IN A
219 SECTION ANSWER
220 www.example.com. IN A 10.20.30.40
221 SECTION AUTHORITY
222 example.com. IN NS ns.example.org.
223 ENTRY_END
224
225 ; perhaps some messages are still pending - allow those to resolve.
226 STEP 20 QUERY
227 ENTRY_BEGIN
228 REPLY RD
229 SECTION QUESTION
230 mail.example.com. IN A
231 ENTRY_END
232
233 ; recursion happens here.
234 STEP 30 CHECK_ANSWER
235 ENTRY_BEGIN
236 MATCH all
237 REPLY QR RD RA NOERROR
238 SECTION QUESTION
239 mail.example.com. IN A
240 SECTION ANSWER
241 mail.example.com. IN A 10.20.30.50
242 SECTION AUTHORITY
243 example.com. IN NS ns.example.org.
244 ENTRY_END
245
246 SCENARIO_END