]> git.saurik.com Git - apple/network_cmds.git/blob - unbound/testdata/val_dnametoolong.rpl
network_cmds-596.100.2.tar.gz
[apple/network_cmds.git] / unbound / testdata / val_dnametoolong.rpl
1 ; config options
2 ; The island of trust is at example.com
3 server:
4 trust-anchor: "example.com. 3600 IN DS 2854 3 1 46e4ffc6e9a4793b488954bd3f0cc6af0dfb201b"
5 trust-anchor: "example.net. 3600 IN DNSKEY 256 3 5 AQPQ41chR9DEHt/aIzIFAqanbDlRflJoRs5yz1jFsoRIT7dWf0r+PeDuewdxkszNH6wnU4QL8pfKFRh5PIYVBLK3 ;{id = 30899 (zsk), size = 512b}"
6 val-override-date: "20070916134226"
7 target-fetch-policy: "0 0 0 0 0"
8
9 stub-zone:
10 name: "."
11 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
12 CONFIG_END
13
14 SCENARIO_BEGIN Test validator with a dname too long response
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 subdomain
33 ADJUST copy_id copy_query
34 REPLY QR NOERROR
35 SECTION QUESTION
36 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 net. IN A
49 SECTION AUTHORITY
50 net. IN NS a.gtld-servers.net.
51 SECTION ADDITIONAL
52 a.gtld-servers.net. IN A 192.5.6.30
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 net. IN NS
77 SECTION ANSWER
78 net. IN NS a.gtld-servers.net.
79 SECTION ADDITIONAL
80 a.gtld-servers.net. IN A 192.5.6.30
81 ENTRY_END
82
83 ENTRY_BEGIN
84 MATCH opcode subdomain
85 ADJUST copy_id copy_query
86 REPLY QR NOERROR
87 SECTION QUESTION
88 example.com. IN A
89 SECTION AUTHORITY
90 example.com. IN NS ns.example.com.
91 SECTION ADDITIONAL
92 ns.example.com. IN A 1.2.3.4
93 ENTRY_END
94 ENTRY_BEGIN
95 MATCH opcode subdomain
96 ADJUST copy_id copy_query
97 REPLY QR NOERROR
98 SECTION QUESTION
99 example.net. IN A
100 SECTION AUTHORITY
101 example.net. IN NS ns.example.net.
102 SECTION ADDITIONAL
103 ns.example.net. IN A 1.2.3.5
104 ENTRY_END
105 RANGE_END
106
107 ; ns.example.com.
108 RANGE_BEGIN 0 100
109 ADDRESS 1.2.3.4
110 ENTRY_BEGIN
111 MATCH opcode qtype qname
112 ADJUST copy_id
113 REPLY QR NOERROR
114 SECTION QUESTION
115 example.com. IN NS
116 SECTION ANSWER
117 example.com. IN NS ns.example.com.
118 example.com. 3600 IN RRSIG NS 3 2 3600 20070926134150 20070829134150 2854 example.com. MC0CFQCN+qHdJxoI/2tNKwsb08pra/G7aAIUAWA5sDdJTbrXA1/3OaesGBAO3sI= ;{id = 2854}
119 SECTION ADDITIONAL
120 ns.example.com. IN A 1.2.3.4
121 ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCMSWxVehgOQLoYclB9PIAbNP229AIUeH0vNNGJhjnZiqgIOKvs1EhzqAo= ;{id = 2854}
122 ENTRY_END
123
124 ENTRY_BEGIN
125 MATCH opcode qtype qname
126 ADJUST copy_id
127 REPLY QR NOERROR
128 SECTION QUESTION
129 ns.example.com. IN A
130 SECTION ANSWER
131 ns.example.com. IN A 1.2.3.4
132 ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCMSWxVehgOQLoYclB9PIAbNP229AIUeH0vNNGJhjnZiqgIOKvs1EhzqAo= ;{id = 2854}
133 SECTION AUTHORITY
134 example.com. IN NS ns.example.com.
135 example.com. 3600 IN RRSIG NS 3 2 3600 20070926134150 20070829134150 2854 example.com. MC0CFQCN+qHdJxoI/2tNKwsb08pra/G7aAIUAWA5sDdJTbrXA1/3OaesGBAO3sI= ;{id = 2854}
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 ENTRY_END
146
147 ; response to DNSKEY priming query
148 ENTRY_BEGIN
149 MATCH opcode qtype qname
150 ADJUST copy_id
151 REPLY QR NOERROR
152 SECTION QUESTION
153 example.com. IN DNSKEY
154 SECTION ANSWER
155 example.com. 3600 IN DNSKEY 256 3 3 ALXLUsWqUrY3JYER3T4TBJII s70j+sDS/UT2QRp61SE7S3E EXopNXoFE73JLRmvpi/UrOO/Vz4Se 6wXv/CYCKjGw06U4WRgR YXcpEhJROyNapmdIKSx hOzfLVE1gqA0PweZR8d tY3aNQSRn3sPpwJr6Mi /PqQKAMMrZ9ckJpf1+b QMOOvxgzz2U1GS18b3y ZKcgTMEaJzd/GZYzi/B N2DzQ0MsrSwYXfsNLFO Bbs8PJMW4LYIxeeOe6rUgkWOF 7CC9Dh/dduQ1QrsJhmZAEFfd6ByYV+ ;{id = 2854 (zsk), size = 1688b}
156 example.com. 3600 IN RRSIG DNSKEY DSA 2 3600 20070926134150 20070829134150 2854 example.com. MCwCFBQRtlR4BEv9ohi+PGFjp+AHsJuHAhRCvz0shggvnvI88DFnBDCczHUcVA== ;{id = 2854}
157 SECTION AUTHORITY
158 example.com. IN NS ns.example.com.
159 example.com. 3600 IN RRSIG NS 3 2 3600 20070926134150 20070829134150 2854 example.com. MC0CFQCN+qHdJxoI/2tNKwsb08pra/G7aAIUAWA5sDdJTbrXA1/3OaesGBAO3sI= ;{id = 2854}
160 SECTION ADDITIONAL
161 ns.example.com. IN A 1.2.3.4
162 ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCMSWxVehgOQLoYclB9PIAbNP229AIUeH0vNNGJhjnZiqgIOKvs1EhzqAo= ;{id = 2854}
163 ENTRY_END
164
165 ; response to query of interest
166 ENTRY_BEGIN
167 MATCH opcode qtype qname
168 ADJUST copy_id
169 REPLY QR YXDOMAIN
170 SECTION QUESTION
171 www.example.com. IN A
172 SECTION ANSWER
173 ; length
174 ; www. = 4
175 ; long1234567890abcdef. = 21
176 ; long1234567890abcdef.long1234567890abcdef.long1234567890abcdef.long1234567890abcdef.long1234567890abcdef.long1234567890abcdef.long1234567890abcdef.long1234567890abcdef.long1234567890abcdef.long1234567890abcdef.long1234567890abcdef.long1234567890abcdef. = 12 * 21 = 252
177 example.com. IN DNAME long1234567890abcdef.long1234567890abcdef.long1234567890abcdef.long1234567890abcdef.long1234567890abcdef.long1234567890abcdef.long1234567890abcdef.long1234567890abcdef.long1234567890abcdef.long1234567890abcdef.long1234567890abcdef.long1234567890abcdef.
178 example.com. 3600 IN RRSIG DNAME 3 2 3600 20070926134150 20070829134150 2854 example.com. MC0CFBdWQE6lzktCN4vdAx9HY1zZe6dYAhUAghsHM4lSJAykdvp5p0wppml03K0= ;{id = 2854}
179 ; unsigned CNAME synthesis is too long
180 SECTION AUTHORITY
181 SECTION ADDITIONAL
182 ENTRY_END
183 RANGE_END
184
185 ; ns.example.net.
186 RANGE_BEGIN 0 100
187 ADDRESS 1.2.3.5
188 ENTRY_BEGIN
189 MATCH opcode qtype qname
190 ADJUST copy_id
191 REPLY QR NOERROR
192 SECTION QUESTION
193 example.net. IN NS
194 SECTION ANSWER
195 example.net. IN NS ns.example.net.
196 example.net. 3600 IN RRSIG NS RSASHA1 2 3600 20070926134150 20070829134150 30899 example.net. E8JX0l4B+cSR5bkHQwOJy1pBmlLMTYCJ8EwfNMU/eCv0YhKwo26rHhn52FGisgv+Nwp7/NbhHqQ+kJgoZC94XA== ;{id = 30899}
197 SECTION ADDITIONAL
198 ns.example.net. IN A 1.2.3.5
199 ns.example.net. 3600 IN RRSIG A RSASHA1 3 3600 20070926134150 20070829134150 30899 example.net. x+tQMC9FhzT7Fcy1pM5NrOC7E8nLd7THPI3C6ie4EwL8PrxllqlR3q/DKB0d/m0qCOPcgN6HFOYURV1s4uAcsw== ;{id = 30899}
200 ENTRY_END
201
202 ; response to DNSKEY priming query
203 ENTRY_BEGIN
204 MATCH opcode qtype qname
205 ADJUST copy_id
206 REPLY QR NOERROR
207 SECTION QUESTION
208 example.net. IN DNSKEY
209 SECTION ANSWER
210 example.net. 3600 IN DNSKEY 256 3 5 AQPQ41chR9DEHt/aIzIFAqanbDlRflJoRs5yz1jFsoRIT7dWf0r+PeDuewdxkszNH6wnU4QL8pfKFRh5PIYVBLK3 ;{id = 30899 (zsk), size = 512b}
211 example.net. 3600 IN RRSIG DNSKEY RSASHA1 2 3600 20070926134150 20070829134150 30899 example.net. hiFzlQ8VoYgCuvIsfVuxC3mfJDqsTh0yc6abs5xMx5uEcIjb0dndFQx7INOM+imlzveEN73Hqp4OLFpFhsWLlw== ;{id = 30899}
212 SECTION AUTHORITY
213 example.net. IN NS ns.example.net.
214 example.net. 3600 IN RRSIG NS RSASHA1 2 3600 20070926134150 20070829134150 30899 example.net. E8JX0l4B+cSR5bkHQwOJy1pBmlLMTYCJ8EwfNMU/eCv0YhKwo26rHhn52FGisgv+Nwp7/NbhHqQ+kJgoZC94XA== ;{id = 30899}
215 SECTION ADDITIONAL
216 ns.example.net. IN A 1.2.3.5
217 ns.example.net. 3600 IN RRSIG A RSASHA1 3 3600 20070926134150 20070829134150 30899 example.net. x+tQMC9FhzT7Fcy1pM5NrOC7E8nLd7THPI3C6ie4EwL8PrxllqlR3q/DKB0d/m0qCOPcgN6HFOYURV1s4uAcsw== ;{id = 30899}
218 ENTRY_END
219
220 ; response to query of interest
221 ENTRY_BEGIN
222 MATCH opcode qtype qname
223 ADJUST copy_id
224 REPLY QR NOERROR
225 SECTION QUESTION
226 www.example.net. IN A
227 SECTION ANSWER
228 ; from *.example.net.
229 www.example.net. IN A 11.12.13.14
230 www.example.net. 3600 IN RRSIG A 5 3 3600 20070926134150 20070829134150 30899 example.net. CPxF5hK9Kg5eT7W6LgZwr0ePYEm9HMcSY4vvqCS6gDWB4X9jvXLCfBkCLhsNybPBpGWlsLi5wM6MTdJXuPpsRA== ;{id = 30899}
231 SECTION AUTHORITY
232 SECTION ADDITIONAL
233 ENTRY_END
234 RANGE_END
235
236 STEP 1 QUERY
237 ENTRY_BEGIN
238 REPLY RD DO
239 SECTION QUESTION
240 www.example.com. IN A
241 ENTRY_END
242
243 ; recursion happens here.
244 STEP 10 CHECK_ANSWER
245 ENTRY_BEGIN
246 MATCH all
247 REPLY QR RD RA DO SERVFAIL
248 SECTION QUESTION
249 www.example.com. IN A
250 SECTION ANSWER
251 SECTION AUTHORITY
252 SECTION ADDITIONAL
253 ENTRY_END
254
255 SCENARIO_END