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