]> git.saurik.com Git - apple/network_cmds.git/blob - unbound/testdata/iter_cycle_noh.rpl
ce5a867224708fb723b2e5ffa322068d6559e68b
[apple/network_cmds.git] / unbound / testdata / iter_cycle_noh.rpl
1 ; config options
2 server:
3 harden-glue: "no"
4 target-fetch-policy: "0 0 0 0 0"
5
6 stub-zone:
7 name: "."
8 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
9 CONFIG_END
10
11 SCENARIO_BEGIN Test resolution where disabled scrubber avoids cycle
12 ; query for ns.example.com, needs ns.example.net, needs ns.example.com.
13 ; scrubber disabled, so extra glue is trusted.
14
15 ; K.ROOT-SERVERS.NET.
16 RANGE_BEGIN 0 100
17 ADDRESS 193.0.14.129
18 ENTRY_BEGIN
19 MATCH opcode qtype qname
20 ADJUST copy_id
21 REPLY QR NOERROR
22 SECTION QUESTION
23 . IN NS
24 SECTION ANSWER
25 . IN NS K.ROOT-SERVERS.NET.
26 SECTION ADDITIONAL
27 K.ROOT-SERVERS.NET. IN A 193.0.14.129
28 ENTRY_END
29
30 ENTRY_BEGIN
31 MATCH opcode qtype qname
32 ADJUST copy_id
33 REPLY QR NOERROR
34 SECTION QUESTION
35 ns.example.com. IN A
36 SECTION AUTHORITY
37 com. IN NS a.gtld-servers.net.
38 SECTION ADDITIONAL
39 a.gtld-servers.net. IN A 192.5.6.30
40 ENTRY_END
41
42 ENTRY_BEGIN
43 MATCH opcode qtype qname
44 ADJUST copy_id
45 REPLY QR NOERROR
46 SECTION QUESTION
47 ns.example.com. IN AAAA
48 SECTION AUTHORITY
49 com. IN NS a.gtld-servers.net.
50 SECTION ADDITIONAL
51 a.gtld-servers.net. IN A 192.5.6.30
52 ENTRY_END
53
54 ENTRY_BEGIN
55 MATCH opcode qtype qname
56 ADJUST copy_id
57 REPLY QR NOERROR
58 SECTION QUESTION
59 ns.example.net. IN A
60 SECTION AUTHORITY
61 net. IN NS e.gtld-servers.net.
62 SECTION ADDITIONAL
63 e.gtld-servers.net. IN A 192.12.94.30
64 ENTRY_END
65
66 ENTRY_BEGIN
67 MATCH opcode qtype qname
68 ADJUST copy_id
69 REPLY QR NOERROR
70 SECTION QUESTION
71 ns.example.net. IN AAAA
72 SECTION AUTHORITY
73 net. IN NS e.gtld-servers.net.
74 SECTION ADDITIONAL
75 e.gtld-servers.net. IN A 192.12.94.30
76 ENTRY_END
77 RANGE_END
78
79 ; a.gtld-servers.net.
80 RANGE_BEGIN 0 100
81 ADDRESS 192.5.6.30
82 ENTRY_BEGIN
83 MATCH opcode qtype qname
84 ADJUST copy_id
85 REPLY QR NOERROR
86 SECTION QUESTION
87 com. IN NS
88 SECTION ANSWER
89 com. IN NS a.gtld-servers.net.
90 SECTION ADDITIONAL
91 a.gtld-servers.net. IN A 192.5.6.30
92 ENTRY_END
93
94 ENTRY_BEGIN
95 MATCH opcode qtype qname
96 ADJUST copy_id
97 REPLY QR NOERROR
98 SECTION QUESTION
99 ns.example.com. IN A
100 SECTION AUTHORITY
101 example.com. IN NS ns.example.net.
102 SECTION ADDITIONAL
103 ns.example.net. IN A 1.2.3.1
104 ENTRY_END
105
106 ENTRY_BEGIN
107 MATCH opcode qtype qname
108 ADJUST copy_id
109 REPLY QR NOERROR
110 SECTION QUESTION
111 ns.example.com. IN AAAA
112 SECTION AUTHORITY
113 example.com. IN NS ns.example.net.
114 SECTION ADDITIONAL
115 ns.example.net. IN A 1.2.3.1
116 ENTRY_END
117 RANGE_END
118
119 ; e.gtld-servers.net.
120 RANGE_BEGIN 0 100
121 ADDRESS 192.12.94.30
122 ENTRY_BEGIN
123 MATCH opcode qtype qname
124 ADJUST copy_id
125 REPLY QR NOERROR
126 SECTION QUESTION
127 net. IN NS
128 SECTION ANSWER
129 net. IN NS e.gtld-servers.net.
130 SECTION ADDITIONAL
131 e.gtld-servers.net. IN A 192.12.94.30
132 ENTRY_END
133
134 ENTRY_BEGIN
135 MATCH opcode qtype qname
136 ADJUST copy_id
137 REPLY QR NOERROR
138 SECTION QUESTION
139 ns.example.net. IN A
140 SECTION AUTHORITY
141 example.net. IN NS ns.example.com.
142 SECTION ADDITIONAL
143 ns.example.com. IN A 1.2.3.2
144 ENTRY_END
145
146 ENTRY_BEGIN
147 MATCH opcode qtype qname
148 ADJUST copy_id
149 REPLY QR NOERROR
150 SECTION QUESTION
151 ns.example.net. IN AAAA
152 SECTION AUTHORITY
153 example.net. IN NS ns.example.com.
154 SECTION ADDITIONAL
155 ns.example.com. IN A 1.2.3.2
156 ENTRY_END
157 RANGE_END
158
159 ; ns.example.net.
160 RANGE_BEGIN 0 100
161 ADDRESS 1.2.3.1
162 ENTRY_BEGIN
163 MATCH opcode qtype qname
164 ADJUST copy_id
165 REPLY QR NOERROR
166 SECTION QUESTION
167 example.net. IN NS
168 SECTION ANSWER
169 example.net. IN NS ns.example.com.
170 SECTION ADDITIONAL
171 ns.example.com. IN A 1.2.3.2
172 ENTRY_END
173
174 ENTRY_BEGIN
175 MATCH opcode qtype qname
176 ADJUST copy_id
177 REPLY QR NOERROR
178 SECTION QUESTION
179 example.com. IN NS
180 SECTION ANSWER
181 example.com. IN NS ns.example.net.
182 SECTION ADDITIONAL
183 ns.example.net. IN A 1.2.3.1
184 ENTRY_END
185
186 ENTRY_BEGIN
187 MATCH opcode qtype qname
188 ADJUST copy_id
189 REPLY QR NOERROR
190 SECTION QUESTION
191 ns.example.com. IN A
192 SECTION ANSWER
193 ns.example.com. IN A 1.2.3.2
194 SECTION AUTHORITY
195 example.com. IN NS ns.example.net.
196 SECTION ADDITIONAL
197 ns.example.net. IN A 1.2.3.1
198 ENTRY_END
199 RANGE_END
200
201 STEP 1 QUERY
202 ENTRY_BEGIN
203 REPLY RD
204 SECTION QUESTION
205 ns.example.com. IN A
206 ENTRY_END
207
208 ; recursion happens here.
209 ; cycle detected and it fails.
210 STEP 20 CHECK_ANSWER
211 ENTRY_BEGIN
212 MATCH all
213 REPLY QR RD RA
214 SECTION QUESTION
215 ns.example.com. IN A
216 SECTION ANSWER
217 ns.example.com. IN A 1.2.3.2
218 SECTION AUTHORITY
219 example.com. IN NS ns.example.net.
220 ; scrubbed off
221 ; SECTION ADDITIONAL
222 ; ns.example.net. IN A 1.2.3.1
223 ENTRY_END
224
225 SCENARIO_END