]> git.saurik.com Git - apple/network_cmds.git/blob - unbound/testdata/iter_pc_a.rpl
985345c1536054b2de54393c3a1ad721a96f5fdf
[apple/network_cmds.git] / unbound / testdata / iter_pc_a.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 for type A.
11 ; the parent has the correct A record.
12
13 ; K.ROOT-SERVERS.NET.
14 RANGE_BEGIN 0 100
15 ADDRESS 193.0.14.129
16 ENTRY_BEGIN
17 MATCH opcode qtype qname
18 ADJUST copy_id
19 REPLY QR NOERROR
20 SECTION QUESTION
21 . IN NS
22 SECTION ANSWER
23 . IN NS K.ROOT-SERVERS.NET.
24 SECTION ADDITIONAL
25 K.ROOT-SERVERS.NET. IN A 193.0.14.129
26 ENTRY_END
27
28 ENTRY_BEGIN
29 MATCH opcode subdomain
30 ADJUST copy_id copy_query
31 REPLY QR NOERROR
32 SECTION QUESTION
33 com. IN NS
34 SECTION AUTHORITY
35 com. IN NS a.gtld-servers.net.
36 SECTION ADDITIONAL
37 a.gtld-servers.net. IN A 192.5.6.30
38 ENTRY_END
39
40 RANGE_END
41
42 ; a.gtld-servers.net.
43 RANGE_BEGIN 0 100
44 ADDRESS 192.5.6.30
45 ENTRY_BEGIN
46 MATCH opcode qtype qname
47 ADJUST copy_id
48 REPLY QR NOERROR
49 SECTION QUESTION
50 com. IN NS
51 SECTION ANSWER
52 com. IN NS a.gtld-servers.net.
53 SECTION ADDITIONAL
54 a.gtld-servers.net. IN A 192.5.6.30
55 ENTRY_END
56
57 ENTRY_BEGIN
58 MATCH opcode subdomain
59 ADJUST copy_id copy_query
60 REPLY QR NOERROR
61 SECTION QUESTION
62 example.com. IN NS
63 SECTION AUTHORITY
64 example.com. IN NS ns.example.com.
65 SECTION ADDITIONAL
66 ns.example.com. IN A 1.2.3.44
67 ENTRY_END
68 RANGE_END
69
70 ; the working version.
71 RANGE_BEGIN 0 100
72 ADDRESS 1.2.3.44
73 ENTRY_BEGIN
74 MATCH opcode qtype qname
75 ADJUST copy_id
76 REPLY AA QR NOERROR
77 SECTION QUESTION
78 ns.example.com. IN A
79 SECTION ANSWER
80 ns.example.com. IN A 1.2.3.55
81 SECTION AUTHORITY
82 example.com. IN NS ns.example.com.
83 ENTRY_END
84
85 ENTRY_BEGIN
86 MATCH opcode qtype qname
87 ADJUST copy_id
88 REPLY AA QR NOERROR
89 SECTION QUESTION
90 ns.example.com. IN AAAA
91 SECTION AUTHORITY
92 example.com. IN NS ns.example.com.
93 SECTION ADDITIONAL
94 ns.example.com. IN A 1.2.3.55
95 ENTRY_END
96
97 ENTRY_BEGIN
98 MATCH opcode qtype qname
99 ADJUST copy_id
100 REPLY AA QR NOERROR
101 SECTION QUESTION
102 example.com. IN NS
103 SECTION ANSWER
104 example.com. IN NS ns.example.com.
105 SECTION ADDITIONAL
106 ns.example.com. IN A 1.2.3.55
107 ENTRY_END
108
109 ENTRY_BEGIN
110 MATCH opcode qtype qname
111 ADJUST copy_id
112 REPLY AA QR NOERROR
113 SECTION QUESTION
114 www.example.com. IN A
115 SECTION ANSWER
116 www.example.com. IN A 10.20.30.40
117 SECTION AUTHORITY
118 example.com. IN NS ns.example.com.
119 SECTION ADDITIONAL
120 ns.example.com. IN A 1.2.3.55
121 ENTRY_END
122
123 ENTRY_BEGIN
124 MATCH opcode qtype qname
125 ADJUST copy_id
126 REPLY AA QR NOERROR
127 SECTION QUESTION
128 mail.example.com. IN A
129 SECTION ANSWER
130 mail.example.com. IN A 10.20.30.20
131 SECTION AUTHORITY
132 example.com. IN NS ns.example.com.
133 SECTION ADDITIONAL
134 ns.example.com. IN A 1.2.3.55
135 ENTRY_END
136
137 ENTRY_BEGIN
138 MATCH opcode qtype qname
139 ADJUST copy_id
140 REPLY AA QR NOERROR
141 SECTION QUESTION
142 ftp.example.com. IN A
143 SECTION ANSWER
144 ftp.example.com. IN A 10.20.30.10
145 SECTION AUTHORITY
146 example.com. IN NS ns.example.com.
147 SECTION ADDITIONAL
148 ns.example.com. IN A 1.2.3.55
149 ENTRY_END
150 RANGE_END
151
152 ; Broken. Does not respond to anything (servfail instead
153 ; of timeouts since this is easier to encode in .rpl file format).
154 RANGE_BEGIN 0 100
155 ADDRESS 1.2.3.55
156 ENTRY_BEGIN
157 MATCH opcode
158 ADJUST copy_id copy_query
159 REPLY QR SERVFAIL
160 SECTION QUESTION
161 example.net. IN NS
162 SECTION ANSWER
163 ENTRY_END
164
165 RANGE_END
166
167 STEP 1 QUERY
168 ENTRY_BEGIN
169 REPLY RD
170 SECTION QUESTION
171 www.example.com. IN A
172 ENTRY_END
173
174 ; recursion happens here.
175 STEP 20 CHECK_ANSWER
176 ENTRY_BEGIN
177 MATCH all
178 REPLY QR RD RA NOERROR
179 SECTION QUESTION
180 www.example.com. IN A
181 SECTION ANSWER
182 www.example.com. IN A 10.20.30.40
183 SECTION AUTHORITY
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 ; now that the bad child NS record is in cache, ask something else.
190 STEP 30 QUERY
191 ENTRY_BEGIN
192 REPLY RD
193 SECTION QUESTION
194 mail.example.com. IN A
195 ENTRY_END
196
197 STEP 40 CHECK_ANSWER
198 ENTRY_BEGIN
199 MATCH all
200 REPLY QR RD RA NOERROR
201 SECTION QUESTION
202 mail.example.com. IN A
203 SECTION ANSWER
204 mail.example.com. IN A 10.20.30.20
205 SECTION AUTHORITY
206 example.com. IN NS ns.example.com.
207 SECTION ADDITIONAL
208 ns.example.com. IN A 1.2.3.55
209 ENTRY_END
210
211 ; test cache of parent data
212 STEP 50 QUERY
213 ENTRY_BEGIN
214 REPLY RD
215 SECTION QUESTION
216 ftp.example.com. IN A
217 ENTRY_END
218
219 STEP 60 CHECK_ANSWER
220 ENTRY_BEGIN
221 MATCH all
222 REPLY QR RD RA NOERROR
223 SECTION QUESTION
224 ftp.example.com. IN A
225 SECTION ANSWER
226 ftp.example.com. IN A 10.20.30.10
227 SECTION AUTHORITY
228 example.com. IN NS ns.example.com.
229 SECTION ADDITIONAL
230 ns.example.com. IN A 1.2.3.55
231 ENTRY_END
232
233 SCENARIO_END