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