]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - testdata/val_stubds.rpl
import unbound 1.5.9
[FreeBSD/FreeBSD.git] / testdata / val_stubds.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         val-override-date: "20070916134226"
6         target-fetch-policy: "0 0 0 0 0"
7
8 stub-zone:
9         name: "."
10         stub-addr: 193.0.14.129         # K.ROOT-SERVERS.NET.
11 stub-zone:
12         name: "sub.example.com"
13         stub-addr: 1.2.3.6
14 CONFIG_END
15
16 SCENARIO_BEGIN Test stub with DS query
17 ; The stub zone is linked validly with a DS to the public internet zone.
18 ; unbound just has to be able to ask the DS from the right server (not 
19 ; from the stub).
20
21 ; K.ROOT-SERVERS.NET.
22 RANGE_BEGIN 0 100
23         ADDRESS 193.0.14.129 
24 ENTRY_BEGIN
25 MATCH opcode qtype qname
26 ADJUST copy_id
27 REPLY QR NOERROR
28 SECTION QUESTION
29 . IN NS
30 SECTION ANSWER
31 . IN NS K.ROOT-SERVERS.NET.
32 SECTION ADDITIONAL
33 K.ROOT-SERVERS.NET.     IN      A       193.0.14.129
34 ENTRY_END
35
36 ENTRY_BEGIN
37 MATCH opcode subdomain
38 ADJUST copy_id copy_query
39 REPLY QR NOERROR
40 SECTION QUESTION
41 com. IN NS
42 SECTION AUTHORITY
43 com.    IN NS   a.gtld-servers.net.
44 SECTION ADDITIONAL
45 a.gtld-servers.net.     IN      A       192.5.6.30
46 ENTRY_END
47 RANGE_END
48
49 ; a.gtld-servers.net.
50 RANGE_BEGIN 0 100
51         ADDRESS 192.5.6.30
52 ENTRY_BEGIN
53 MATCH opcode qtype qname
54 ADJUST copy_id
55 REPLY QR NOERROR
56 SECTION QUESTION
57 com. IN NS
58 SECTION ANSWER
59 com.    IN NS   a.gtld-servers.net.
60 SECTION ADDITIONAL
61 a.gtld-servers.net.     IN      A       192.5.6.30
62 ENTRY_END
63
64 ENTRY_BEGIN
65 MATCH opcode subdomain
66 ADJUST copy_id copy_query
67 REPLY QR NOERROR
68 SECTION QUESTION
69 example.com. IN A
70 SECTION AUTHORITY
71 example.com.    IN NS   ns.example.com.
72 SECTION ADDITIONAL
73 ns.example.com.         IN      A       1.2.3.4
74 ENTRY_END
75 RANGE_END
76
77 ; ns.example.com.
78 RANGE_BEGIN 0 100
79         ADDRESS 1.2.3.4
80 ENTRY_BEGIN
81 MATCH opcode qtype qname
82 ADJUST copy_id
83 REPLY QR NOERROR
84 SECTION QUESTION
85 example.com. IN NS
86 SECTION ANSWER
87 example.com.    IN NS   ns.example.com.
88 example.com.    3600    IN      RRSIG   NS 3 2 3600 20070926134150 20070829134150 2854 example.com. MC0CFQCN+qHdJxoI/2tNKwsb08pra/G7aAIUAWA5sDdJTbrXA1/3OaesGBAO3sI= ;{id = 2854}
89 SECTION ADDITIONAL
90 ns.example.com.         IN      A       1.2.3.4
91 ns.example.com. 3600    IN      RRSIG   A 3 3 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCMSWxVehgOQLoYclB9PIAbNP229AIUeH0vNNGJhjnZiqgIOKvs1EhzqAo= ;{id = 2854}
92 ENTRY_END
93
94 ; response to DNSKEY priming query
95 ENTRY_BEGIN
96 MATCH opcode qtype qname
97 ADJUST copy_id
98 REPLY QR NOERROR
99 SECTION QUESTION
100 example.com. IN DNSKEY
101 SECTION ANSWER
102 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}
103 example.com. 3600    IN      RRSIG   DNSKEY DSA 2 3600 20070926134150 20070829134150 2854 example.com. MCwCFBQRtlR4BEv9ohi+PGFjp+AHsJuHAhRCvz0shggvnvI88DFnBDCczHUcVA== ;{id = 2854}
104 SECTION AUTHORITY
105 example.com.    IN NS   ns.example.com.
106 example.com.    3600    IN      RRSIG   NS 3 2 3600 20070926134150 20070829134150 2854 example.com. MC0CFQCN+qHdJxoI/2tNKwsb08pra/G7aAIUAWA5sDdJTbrXA1/3OaesGBAO3sI= ;{id = 2854}
107 SECTION ADDITIONAL
108 ns.example.com.         IN      A       1.2.3.4
109 ns.example.com. 3600    IN      RRSIG   A 3 3 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCMSWxVehgOQLoYclB9PIAbNP229AIUeH0vNNGJhjnZiqgIOKvs1EhzqAo= ;{id = 2854}
110 ENTRY_END
111
112 ; response for DS of sub.example.com.
113 ENTRY_BEGIN
114 MATCH opcode qtype qname
115 ADJUST copy_id
116 REPLY QR NOERROR
117 SECTION QUESTION
118 sub.example.com. IN DS
119 SECTION ANSWER
120 sub.example.com.        3600    IN      DS      30899 RSASHA1 1 f7ed618f24d5e5202927e1d27bc2e84a141cb4b3
121 sub.example.com.        3600    IN      RRSIG   DS 3 3 3600 20070926134150 20070829134150 2854 example.com. MCwCFCW3ix0GD4BSvNLWIbROCJt5DAW9AhRt/kg9kBKJ20UBUdumrBUHqnskdA== ;{id = 2854}
122 SECTION AUTHORITY
123 SECTION ADDITIONAL
124 ENTRY_END
125
126 ; response for delegation to sub.example.com.
127 ENTRY_BEGIN
128 MATCH opcode subdomain
129 ADJUST copy_id copy_query
130 REPLY QR NOERROR
131 SECTION QUESTION
132 sub.example.com. IN A
133 SECTION ANSWER
134 SECTION AUTHORITY
135 sub.example.com. IN     NS ns.sub.example.com.
136 sub.example.com.        3600    IN      DS      30899 RSASHA1 1 f7ed618f24d5e5202927e1d27bc2e84a141cb4b3
137 sub.example.com.        3600    IN      RRSIG   DS 3 3 3600 20070926134150 20070829134150 2854 example.com. MCwCFCW3ix0GD4BSvNLWIbROCJt5DAW9AhRt/kg9kBKJ20UBUdumrBUHqnskdA== ;{id = 2854}
138 SECTION ADDITIONAL
139 ns.sub.example.com. IN A 1.2.3.6
140 ENTRY_END
141
142 RANGE_END
143
144 ; ns.sub.example.com.
145 RANGE_BEGIN 0 100
146         ADDRESS 1.2.3.6
147 ENTRY_BEGIN
148 MATCH opcode qtype qname
149 ADJUST copy_id
150 REPLY QR NOERROR
151 SECTION QUESTION
152 sub.example.com. IN NS
153 SECTION ANSWER
154 sub.example.com. IN     NS ns.sub.example.com.
155 sub.example.com.        3600    IN      RRSIG   NS 5 3 3600 20070926134150 20070829134150 30899 sub.example.com. wcpHeBILHfo8C9uxMhcW03gcURZeUffiKdSTb50ZjzTHgMNhRyMfpcvSpXEd9548A9UTmWKeLZChfr5Z/glONw== ;{id = 30899}
156 SECTION ADDITIONAL
157 ns.sub.example.com. IN A 1.2.3.6
158 ns.sub.example.com.     3600    IN      RRSIG   A 5 4 3600 20070926134150 20070829134150 30899 sub.example.com. UF7shD/gt1FOp2UHgLTNbPzVykklSXFMEtJ1xD+Hholwf/PIzd7zoaIttIYibNa4fUXCqMg22H9P7MRhfmFe6g== ;{id = 30899}
159 ENTRY_END
160
161 ; response to DNSKEY priming query
162 ; sub.example.com.        3600    IN      DS      30899 RSASHA1 1 f7ed618f24d5e5202927e1d27bc2e84a141cb4b3
163 ENTRY_BEGIN
164 MATCH opcode qtype qname
165 ADJUST copy_id
166 REPLY QR NOERROR
167 SECTION QUESTION
168 sub.example.com. IN DNSKEY
169 SECTION ANSWER
170 sub.example.com.        3600    IN      DNSKEY  256 3 5 AQPQ41chR9DEHt/aIzIFAqanbDlRflJoRs5yz1jFsoRIT7dWf0r+PeDuewdxkszNH6wnU4QL8pfKFRh5PIYVBLK3 ;{id = 30899 (zsk), size = 512b}
171 sub.example.com.        3600    IN      RRSIG   DNSKEY 5 3 3600 20070926134150 20070829134150 30899 sub.example.com. uNGp99iznjD7oOX02XnQbDnbg75UwBHRvZSKYUorTKvPUnCWMHKdRsQ+mf+Fx3GZ+Fz9BVjoCmQqpnfgXLEYqw== ;{id = 30899}
172 SECTION AUTHORITY
173 sub.example.com. IN     NS ns.sub.example.com.
174 sub.example.com.        3600    IN      RRSIG   NS 5 3 3600 20070926134150 20070829134150 30899 sub.example.com. wcpHeBILHfo8C9uxMhcW03gcURZeUffiKdSTb50ZjzTHgMNhRyMfpcvSpXEd9548A9UTmWKeLZChfr5Z/glONw== ;{id = 30899}
175 SECTION ADDITIONAL
176 ns.sub.example.com. IN A 1.2.3.6
177 ns.sub.example.com.     3600    IN      RRSIG   A 5 4 3600 20070926134150 20070829134150 30899 sub.example.com. UF7shD/gt1FOp2UHgLTNbPzVykklSXFMEtJ1xD+Hholwf/PIzd7zoaIttIYibNa4fUXCqMg22H9P7MRhfmFe6g== ;{id = 30899}
178 ENTRY_END
179
180 ; response for qtype DS.  This is not available here.
181 ENTRY_BEGIN
182 MATCH opcode qtype qname
183 ADJUST copy_id
184 REPLY QR SERVFAIL
185 SECTION QUESTION
186 sub.example.com. IN DS
187 SECTION ANSWER
188 SECTION AUTHORITY
189 SECTION ADDITIONAL
190 ENTRY_END
191
192 ; response to query of interest
193 ENTRY_BEGIN
194 MATCH opcode qtype qname
195 ADJUST copy_id
196 REPLY QR NOERROR
197 SECTION QUESTION
198 www.sub.example.com. IN A
199 SECTION ANSWER
200 www.sub.example.com. IN A       11.11.11.11
201 www.sub.example.com.    3600    IN      RRSIG   A 5 4 3600 20070926134150 20070829134150 30899 sub.example.com. 0DqqRfRtm7VSEQ4mmBbzrKRqQAay3JAE8DPDGmjtokrrjN9F1G/HxozDV7bjdIh2EChlQea8FPwf/GepJMUVxg== ;{id = 30899}
202 SECTION AUTHORITY
203 SECTION ADDITIONAL
204 ENTRY_END
205 RANGE_END
206
207 STEP 1 QUERY
208 ENTRY_BEGIN
209 REPLY RD DO
210 SECTION QUESTION
211 www.sub.example.com. IN A
212 ENTRY_END
213
214 ; recursion happens here.
215 STEP 10 CHECK_ANSWER
216 ENTRY_BEGIN
217 MATCH all
218 REPLY QR RD RA AD DO NOERROR
219 SECTION QUESTION
220 www.sub.example.com. IN A
221 SECTION ANSWER
222 www.sub.example.com.    3600    IN      A       11.11.11.11
223 www.sub.example.com.    3600    IN      RRSIG   A 5 4 3600 20070926134150 20070829134150 30899 sub.example.com. 0DqqRfRtm7VSEQ4mmBbzrKRqQAay3JAE8DPDGmjtokrrjN9F1G/HxozDV7bjdIh2EChlQea8FPwf/GepJMUVxg== ;{id = 30899}
224 SECTION AUTHORITY
225 SECTION ADDITIONAL
226 ENTRY_END
227
228 SCENARIO_END