]> git.saurik.com Git - apple/network_cmds.git/blob - unbound/testdata/iter_ns_badip.rpl
network_cmds-480.tar.gz
[apple/network_cmds.git] / unbound / testdata / iter_ns_badip.rpl
1 ; config options
2 server:
3 target-fetch-policy: "3 2 1 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 iterator with delagation with bad IP address
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 A
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 qtype qname
41 ADJUST copy_id copy_query
42 REPLY QR NOERROR
43 SECTION QUESTION
44 a.gtld-servers.net. IN A
45 SECTION ANSWER
46 a.gtld-servers.net. IN A 192.5.6.30
47 ENTRY_END
48
49 ENTRY_BEGIN
50 MATCH opcode qtype qname
51 ADJUST copy_id copy_query
52 REPLY QR NOERROR
53 SECTION QUESTION
54 a.gtld-servers.net. IN AAAA
55 SECTION AUTHORITY
56 . SOA bla bla 1 2 3 4 5
57 ENTRY_END
58 RANGE_END
59
60 ; a.gtld-servers.net.
61 RANGE_BEGIN 0 100
62 ADDRESS 192.5.6.30
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 example.com. IN NS ns2.example.com.
72 SECTION ADDITIONAL
73 ns.example.com. 10 IN A 1.2.3.4
74 ns2.example.com. 3600 IN A 1.2.3.5
75 ENTRY_END
76
77 ENTRY_BEGIN
78 MATCH opcode subdomain
79 ADJUST copy_id copy_query
80 REPLY QR NOERROR
81 SECTION QUESTION
82 foo.com. IN A
83 SECTION AUTHORITY
84 foo.com. IN NS ns.example.com.
85 foo.com. IN NS ns2.example.com.
86 ENTRY_END
87 RANGE_END
88
89 ; ns.example.com.
90 RANGE_BEGIN 0 100
91 ADDRESS 1.2.3.4
92 ENTRY_BEGIN
93 MATCH opcode qtype qname
94 ADJUST copy_id
95 REPLY QR NOERROR
96 SECTION QUESTION
97 www.example.com. IN A
98 SECTION ANSWER
99 www.example.com. 10 IN A 10.20.30.40
100 SECTION AUTHORITY
101 example.com. 3600 IN NS ns.example.com.
102 example.com. 3600 IN NS ns2.example.com.
103 SECTION ADDITIONAL
104 ns.example.com. 10 IN A 1.2.3.4
105 ns2.example.com. 3600 IN A 1.2.3.5
106 ENTRY_END
107
108 ENTRY_BEGIN
109 MATCH opcode qtype qname
110 ADJUST copy_id
111 REPLY QR NOERROR
112 SECTION QUESTION
113 ns.example.com. IN A
114 SECTION ANSWER
115 ns.example.com. 10 IN A 1.2.3.4
116 SECTION AUTHORITY
117 example.com. 3600 IN NS ns.example.com.
118 example.com. 3600 IN NS ns2.example.com.
119 SECTION ADDITIONAL
120 ns2.example.com. 3600 IN A 1.2.3.5
121 ENTRY_END
122
123 ENTRY_BEGIN
124 MATCH opcode qtype qname
125 ADJUST copy_id
126 REPLY QR NOERROR
127 SECTION QUESTION
128 ns2.example.com. IN A
129 SECTION ANSWER
130 ns2.example.com. 3600 IN A 1.2.3.5
131 SECTION AUTHORITY
132 example.com. 3600 IN NS ns.example.com.
133 example.com. 3600 IN NS ns2.example.com.
134 SECTION ADDITIONAL
135 ns.example.com. 10 IN A 1.2.3.4
136 ENTRY_END
137
138 ENTRY_BEGIN
139 MATCH opcode qtype qname
140 ADJUST copy_id
141 REPLY QR NOERROR
142 SECTION QUESTION
143 ns.example.com. IN AAAA
144 SECTION ANSWER
145 SECTION AUTHORITY
146 example.com. 3600 IN SOA bla. bla. 1 2 3 4 5
147 ENTRY_END
148
149 ENTRY_BEGIN
150 MATCH opcode qtype qname
151 ADJUST copy_id
152 REPLY QR NOERROR
153 SECTION QUESTION
154 ns2.example.com. IN AAAA
155 SECTION ANSWER
156 SECTION AUTHORITY
157 example.com. 3600 IN SOA bla. bla. 1 2 3 4 5
158 ENTRY_END
159
160 ; foo.com contents.
161 ENTRY_BEGIN
162 MATCH opcode qtype qname
163 REPLY QR NOERROR
164 SECTION QUESTION
165 www.foo.com. IN A
166 SECTION ANSWER
167 www.foo.com. 10 IN A 10.20.30.40
168 SECTION AUTHORITY
169 foo.com. 3600 IN NS ns.example.com.
170 foo.com. 3600 IN NS ns2.example.com.
171 ENTRY_END
172
173 RANGE_END
174
175 ; ns2.example.com. (lame)
176 RANGE_BEGIN 0 100
177 ADDRESS 1.2.3.5
178 ENTRY_BEGIN
179 MATCH opcode
180 ADJUST copy_id copy_query
181 REPLY QR SERVFAIL
182 SECTION QUESTION
183 www.example.com. IN A
184 ENTRY_END
185 RANGE_END
186
187 STEP 1 QUERY
188 ENTRY_BEGIN
189 REPLY RD
190 SECTION QUESTION
191 www.foo.com. IN A
192 ENTRY_END
193
194 ; recursion happens here.
195 STEP 10 CHECK_ANSWER
196 ENTRY_BEGIN
197 MATCH all
198 REPLY QR RD RA NOERROR
199 SECTION QUESTION
200 www.foo.com. IN A
201 SECTION ANSWER
202 www.foo.com. 10 IN A 10.20.30.40
203 SECTION AUTHORITY
204 foo.com. 3600 IN NS ns.example.com.
205 foo.com. 3600 IN NS ns2.example.com.
206 ENTRY_END
207
208 STEP 15 TRAFFIC
209
210 ; Now move the time so good server times out and bad remains.
211 STEP 20 TIME_PASSES ELAPSE 20
212
213 ; Try query again.
214 STEP 30 QUERY
215 ENTRY_BEGIN
216 REPLY RD
217 SECTION QUESTION
218 www.foo.com. IN A
219 ENTRY_END
220
221 STEP 35 TRAFFIC
222
223 ; recursion happens here.
224 STEP 40 CHECK_ANSWER
225 ENTRY_BEGIN
226 MATCH all
227 REPLY QR RD RA NOERROR
228 SECTION QUESTION
229 www.foo.com. IN A
230 SECTION ANSWER
231 www.foo.com. 10 IN A 10.20.30.40
232 SECTION AUTHORITY
233 foo.com. 3600 IN NS ns.example.com.
234 foo.com. 3600 IN NS ns2.example.com.
235 ENTRY_END
236
237 SCENARIO_END