]> git.saurik.com Git - apple/network_cmds.git/blame - unbound/testdata/val_cnamewctonx.rpl
network_cmds-596.100.2.tar.gz
[apple/network_cmds.git] / unbound / testdata / val_cnamewctonx.rpl
CommitLineData
89c4ed63
A
1; config options
2; The island of trust is at example.com
3server:
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
9stub-zone:
10 name: "."
11 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
12CONFIG_END
13
14SCENARIO_BEGIN Test validator with wildcard cname to nxdomain
15
16; K.ROOT-SERVERS.NET.
17RANGE_BEGIN 0 100
18 ADDRESS 193.0.14.129
19ENTRY_BEGIN
20MATCH opcode qtype qname
21ADJUST copy_id
22REPLY QR NOERROR
23SECTION QUESTION
24. IN NS
25SECTION ANSWER
26. IN NS K.ROOT-SERVERS.NET.
27SECTION ADDITIONAL
28K.ROOT-SERVERS.NET. IN A 193.0.14.129
29ENTRY_END
30
31ENTRY_BEGIN
32MATCH opcode qtype qname
33ADJUST copy_id
34REPLY QR NOERROR
35SECTION QUESTION
36www.example.com. IN A
37SECTION AUTHORITY
38com. IN NS a.gtld-servers.net.
39SECTION ADDITIONAL
40a.gtld-servers.net. IN A 192.5.6.30
41ENTRY_END
42
43ENTRY_BEGIN
44MATCH opcode qtype qname
45ADJUST copy_id
46REPLY QR NOERROR
47SECTION QUESTION
48www.example.net. IN A
49SECTION AUTHORITY
50net. IN NS a.gtld-servers.net.
51SECTION ADDITIONAL
52a.gtld-servers.net. IN A 192.5.6.30
53ENTRY_END
54RANGE_END
55
56; a.gtld-servers.net.
57RANGE_BEGIN 0 100
58 ADDRESS 192.5.6.30
59ENTRY_BEGIN
60MATCH opcode qtype qname
61ADJUST copy_id
62REPLY QR NOERROR
63SECTION QUESTION
64com. IN NS
65SECTION ANSWER
66com. IN NS a.gtld-servers.net.
67SECTION ADDITIONAL
68a.gtld-servers.net. IN A 192.5.6.30
69ENTRY_END
70
71ENTRY_BEGIN
72MATCH opcode qtype qname
73ADJUST copy_id
74REPLY QR NOERROR
75SECTION QUESTION
76net. IN NS
77SECTION ANSWER
78net. IN NS a.gtld-servers.net.
79SECTION ADDITIONAL
80a.gtld-servers.net. IN A 192.5.6.30
81ENTRY_END
82
83ENTRY_BEGIN
84MATCH opcode qtype qname
85ADJUST copy_id
86REPLY QR NOERROR
87SECTION QUESTION
88www.example.com. IN A
89SECTION AUTHORITY
90example.com. IN NS ns.example.com.
91SECTION ADDITIONAL
92ns.example.com. IN A 1.2.3.4
93ENTRY_END
94ENTRY_BEGIN
95MATCH opcode qtype qname
96ADJUST copy_id
97REPLY QR NOERROR
98SECTION QUESTION
99www.example.net. IN A
100SECTION AUTHORITY
101example.net. IN NS ns.example.net.
102SECTION ADDITIONAL
103ns.example.net. IN A 1.2.3.5
104ENTRY_END
105RANGE_END
106
107; ns.example.com.
108RANGE_BEGIN 0 100
109 ADDRESS 1.2.3.4
110ENTRY_BEGIN
111MATCH opcode qtype qname
112ADJUST copy_id
113REPLY QR NOERROR
114SECTION QUESTION
115example.com. IN NS
116SECTION ANSWER
117example.com. IN NS ns.example.com.
118example.com. 3600 IN RRSIG NS 3 2 3600 20070926134150 20070829134150 2854 example.com. MC0CFQCN+qHdJxoI/2tNKwsb08pra/G7aAIUAWA5sDdJTbrXA1/3OaesGBAO3sI= ;{id = 2854}
119SECTION ADDITIONAL
120ns.example.com. IN A 1.2.3.4
121ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCMSWxVehgOQLoYclB9PIAbNP229AIUeH0vNNGJhjnZiqgIOKvs1EhzqAo= ;{id = 2854}
122ENTRY_END
123
124; response to DNSKEY priming query
125ENTRY_BEGIN
126MATCH opcode qtype qname
127ADJUST copy_id
128REPLY QR NOERROR
129SECTION QUESTION
130example.com. IN DNSKEY
131SECTION ANSWER
132example.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}
133example.com. 3600 IN RRSIG DNSKEY DSA 2 3600 20070926134150 20070829134150 2854 example.com. MCwCFBQRtlR4BEv9ohi+PGFjp+AHsJuHAhRCvz0shggvnvI88DFnBDCczHUcVA== ;{id = 2854}
134SECTION AUTHORITY
135example.com. IN NS ns.example.com.
136example.com. 3600 IN RRSIG NS 3 2 3600 20070926134150 20070829134150 2854 example.com. MC0CFQCN+qHdJxoI/2tNKwsb08pra/G7aAIUAWA5sDdJTbrXA1/3OaesGBAO3sI= ;{id = 2854}
137SECTION ADDITIONAL
138ns.example.com. IN A 1.2.3.4
139ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCMSWxVehgOQLoYclB9PIAbNP229AIUeH0vNNGJhjnZiqgIOKvs1EhzqAo= ;{id = 2854}
140ENTRY_END
141
142; response to query of interest
143ENTRY_BEGIN
144MATCH opcode qtype qname
145ADJUST copy_id
146REPLY QR NOERROR
147SECTION QUESTION
148www.example.com. IN A
149SECTION ANSWER
150www.example.com. 3600 IN CNAME www.example.net.
151www.example.com. 3600 IN RRSIG CNAME 3 2 3600 20070926134150 20070829134150 2854 example.com. MC0CFDwBErFx90ixZDOdIsKz1QaXA1WzAhUAprOUlV1d5fmUiOp7DZ0TWWcM81Q= ;{id = 2854}
152SECTION AUTHORITY
153u.example.com. IN NSEC z.example.com. NSEC RRSIG
154u.example.com. 3600 IN RRSIG NSEC 3 3 3600 20070926134150 20070829134150 2854 example.com. MCwCFCdc/AWOi3BbYLOClSaw7uVkEf0/AhRJLUUXhuvEsdxEXESjotO3tJZyog== ;{id = 2854}
155SECTION ADDITIONAL
156ENTRY_END
157RANGE_END
158
159; ns.example.net.
160RANGE_BEGIN 0 100
161 ADDRESS 1.2.3.5
162ENTRY_BEGIN
163MATCH opcode qtype qname
164ADJUST copy_id
165REPLY QR NOERROR
166SECTION QUESTION
167example.net. IN NS
168SECTION ANSWER
169example.net. IN NS ns.example.net.
170example.net. 3600 IN RRSIG NS RSASHA1 2 3600 20070926134150 20070829134150 30899 example.net. E8JX0l4B+cSR5bkHQwOJy1pBmlLMTYCJ8EwfNMU/eCv0YhKwo26rHhn52FGisgv+Nwp7/NbhHqQ+kJgoZC94XA== ;{id = 30899}
171SECTION ADDITIONAL
172ns.example.net. IN A 1.2.3.5
173ns.example.net. 3600 IN RRSIG A RSASHA1 3 3600 20070926134150 20070829134150 30899 example.net. x+tQMC9FhzT7Fcy1pM5NrOC7E8nLd7THPI3C6ie4EwL8PrxllqlR3q/DKB0d/m0qCOPcgN6HFOYURV1s4uAcsw== ;{id = 30899}
174ENTRY_END
175
176; response to DNSKEY priming query
177ENTRY_BEGIN
178MATCH opcode qtype qname
179ADJUST copy_id
180REPLY QR NOERROR
181SECTION QUESTION
182example.net. IN DNSKEY
183SECTION ANSWER
184example.net. 3600 IN DNSKEY 256 3 5 AQPQ41chR9DEHt/aIzIFAqanbDlRflJoRs5yz1jFsoRIT7dWf0r+PeDuewdxkszNH6wnU4QL8pfKFRh5PIYVBLK3 ;{id = 30899 (zsk), size = 512b}
185example.net. 3600 IN RRSIG DNSKEY RSASHA1 2 3600 20070926134150 20070829134150 30899 example.net. hiFzlQ8VoYgCuvIsfVuxC3mfJDqsTh0yc6abs5xMx5uEcIjb0dndFQx7INOM+imlzveEN73Hqp4OLFpFhsWLlw== ;{id = 30899}
186SECTION AUTHORITY
187example.net. IN NS ns.example.net.
188example.net. 3600 IN RRSIG NS RSASHA1 2 3600 20070926134150 20070829134150 30899 example.net. E8JX0l4B+cSR5bkHQwOJy1pBmlLMTYCJ8EwfNMU/eCv0YhKwo26rHhn52FGisgv+Nwp7/NbhHqQ+kJgoZC94XA== ;{id = 30899}
189SECTION ADDITIONAL
190ns.example.net. IN A 1.2.3.5
191ns.example.net. 3600 IN RRSIG A RSASHA1 3 3600 20070926134150 20070829134150 30899 example.net. x+tQMC9FhzT7Fcy1pM5NrOC7E8nLd7THPI3C6ie4EwL8PrxllqlR3q/DKB0d/m0qCOPcgN6HFOYURV1s4uAcsw== ;{id = 30899}
192ENTRY_END
193
194; response to query of interest
195ENTRY_BEGIN
196MATCH opcode qtype qname
197ADJUST copy_id
198REPLY QR NXDOMAIN
199SECTION QUESTION
200www.example.net. IN A
201SECTION ANSWER
202SECTION AUTHORITY
203example.net. IN NSEC abc.example.net. SOA NS DNSKEY NSEC RRSIG
204example.net. 3600 IN RRSIG NSEC 5 2 3600 20070926134150 20070829134150 30899 example.net. SEHthmjHyqGlzaOp3Dx6Jn5Fnvvtknw/IF6YSFY8NZLe+YSh1oRJbdEkQ8G92IT08n1jSN6jvKRsFBOUoFOQAw== ;{id = 30899}
205wab.example.net. IN NSEC wzz.example.net. A NSEC RRSIG
206wab.example.net. 3600 IN RRSIG NSEC 5 3 3600 20070926134150 20070829134150 30899 example.net. gl8vkI3xfSWx4Pyv5OdOthiewE6u/13kclY7UG9ptuFBddamdJO3RQqyxM6Xcmq+ToO4kMCCyaKijp01gTDoGg== ;{id = 30899}
207SECTION ADDITIONAL
208ENTRY_END
209RANGE_END
210
211STEP 1 QUERY
212ENTRY_BEGIN
213REPLY RD DO
214SECTION QUESTION
215www.example.com. IN A
216ENTRY_END
217
218; recursion happens here.
219STEP 10 CHECK_ANSWER
220ENTRY_BEGIN
221MATCH all
222REPLY QR RD RA AD DO NXDOMAIN
223SECTION QUESTION
224www.example.com. IN A
225SECTION ANSWER
226www.example.com. IN CNAME www.example.net.
227www.example.com. 3600 IN RRSIG CNAME 3 2 3600 20070926134150 20070829134150 2854 example.com. MC0CFDwBErFx90ixZDOdIsKz1QaXA1WzAhUAprOUlV1d5fmUiOp7DZ0TWWcM81Q= ;{id = 2854}
228SECTION AUTHORITY
229u.example.com. IN NSEC z.example.com. NSEC RRSIG
230u.example.com. 3600 IN RRSIG NSEC 3 3 3600 20070926134150 20070829134150 2854 example.com. MCwCFCdc/AWOi3BbYLOClSaw7uVkEf0/AhRJLUUXhuvEsdxEXESjotO3tJZyog== ;{id = 2854}
231example.net. IN NSEC abc.example.net. SOA NS DNSKEY NSEC RRSIG
232example.net. 3600 IN RRSIG NSEC 5 2 3600 20070926134150 20070829134150 30899 example.net. SEHthmjHyqGlzaOp3Dx6Jn5Fnvvtknw/IF6YSFY8NZLe+YSh1oRJbdEkQ8G92IT08n1jSN6jvKRsFBOUoFOQAw== ;{id = 30899}
233wab.example.net. IN NSEC wzz.example.net. A NSEC RRSIG
234wab.example.net. 3600 IN RRSIG NSEC 5 3 3600 20070926134150 20070829134150 30899 example.net. gl8vkI3xfSWx4Pyv5OdOthiewE6u/13kclY7UG9ptuFBddamdJO3RQqyxM6Xcmq+ToO4kMCCyaKijp01gTDoGg== ;{id = 30899}
235SECTION ADDITIONAL
236ENTRY_END
237
238SCENARIO_END