]> git.saurik.com Git - apple/network_cmds.git/blob - unbound/testdata/iter_dp_turnsuseless.rpl
9d0c35518b826cee95a755f069d7d72e29edafb4
[apple/network_cmds.git] / unbound / testdata / iter_dp_turnsuseless.rpl
1 ; config options
2 server:
3 target-fetch-policy: "0 0 0 0 0"
4
5 stub-zone:
6 name: "."
7 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
8 CONFIG_END
9
10 SCENARIO_BEGIN Test parent-child dichotomy where dp turns useless
11
12 ; K.ROOT-SERVERS.NET.
13 RANGE_BEGIN 0 100
14 ADDRESS 193.0.14.129
15 ENTRY_BEGIN
16 MATCH opcode qtype qname
17 ADJUST copy_id
18 REPLY QR NOERROR
19 SECTION QUESTION
20 . IN NS
21 SECTION ANSWER
22 . IN NS K.ROOT-SERVERS.NET.
23 SECTION ADDITIONAL
24 K.ROOT-SERVERS.NET. IN A 193.0.14.129
25 ENTRY_END
26
27 ENTRY_BEGIN
28 MATCH opcode subdomain
29 ADJUST copy_id copy_query
30 REPLY QR NOERROR
31 SECTION QUESTION
32 com. IN NS
33 SECTION AUTHORITY
34 com. IN NS a.gtld-servers.net.
35 SECTION ADDITIONAL
36 a.gtld-servers.net. IN A 192.5.6.30
37 ENTRY_END
38
39 ; data for ns-crap does not exist.
40 ENTRY_BEGIN
41 MATCH opcode qname
42 ADJUST copy_id copy_query
43 REPLY QR NXDOMAIN
44 SECTION QUESTION
45 ns-crap. IN NS
46 SECTION AUTHORITY
47 ; very short TTL so it'll expire.
48 . 2 SOA . . 1 2 3 4 5
49 SECTION ADDITIONAL
50 ENTRY_END
51 RANGE_END
52
53 ; a.gtld-servers.net.
54 RANGE_BEGIN 0 100
55 ADDRESS 192.5.6.30
56 ENTRY_BEGIN
57 MATCH opcode qtype qname
58 ADJUST copy_id
59 REPLY QR NOERROR
60 SECTION QUESTION
61 com. IN NS
62 SECTION ANSWER
63 com. IN NS a.gtld-servers.net.
64 SECTION ADDITIONAL
65 a.gtld-servers.net. IN A 192.5.6.30
66 ENTRY_END
67
68 ENTRY_BEGIN
69 MATCH opcode subdomain
70 ADJUST copy_id copy_query
71 REPLY QR NOERROR
72 SECTION QUESTION
73 example.com. IN NS
74 SECTION AUTHORITY
75 ; very short TTL so it can time out quickly.
76 example.com. 2 IN NS ns.example.com.
77 SECTION ADDITIONAL
78 ns.example.com. IN A 1.2.3.4
79 ENTRY_END
80 RANGE_END
81
82 ; ns.example.com.
83 RANGE_BEGIN 0 100
84 ADDRESS 1.2.3.4
85 ENTRY_BEGIN
86 MATCH opcode qtype qname
87 ADJUST copy_id
88 REPLY QR NOERROR
89 SECTION QUESTION
90 example.com. IN NS
91 SECTION ANSWER
92 example.com. IN NS ns-crap.
93 SECTION ADDITIONAL
94 ENTRY_END
95
96 ENTRY_BEGIN
97 MATCH opcode qtype qname
98 ADJUST copy_id
99 REPLY QR NOERROR
100 SECTION QUESTION
101 www.example.com. IN A
102 SECTION ANSWER
103 www.example.com. 2 IN A 10.20.30.40
104 ENTRY_END
105 RANGE_END
106
107 STEP 1 QUERY
108 ENTRY_BEGIN
109 REPLY RD
110 SECTION QUESTION
111 example.com. IN NS
112 ENTRY_END
113
114 STEP 10 CHECK_ANSWER
115 ENTRY_BEGIN
116 MATCH all
117 REPLY QR RD RA NOERROR
118 SECTION QUESTION
119 example.com. IN NS
120 SECTION ANSWER
121 example.com. IN NS ns-crap.
122 SECTION AUTHORITY
123 SECTION ADDITIONAL
124 ENTRY_END
125
126 STEP 20 QUERY
127 ENTRY_BEGIN
128 REPLY RD
129 SECTION QUESTION
130 www.example.com. IN A
131 ENTRY_END
132
133 STEP 30 CHECK_ANSWER
134 ENTRY_BEGIN
135 MATCH all
136 REPLY QR RD RA NOERROR
137 SECTION QUESTION
138 www.example.com. IN A
139 SECTION ANSWER
140 www.example.com. 2 IN A 10.20.30.40
141 ENTRY_END
142
143 ; parent side stuff times out
144 STEP 40 TIME_PASSES ELAPSE 5.0
145
146 ; actual retry logic must fire
147 STEP 50 QUERY
148 ENTRY_BEGIN
149 REPLY RD
150 SECTION QUESTION
151 www.example.com. IN A
152 ENTRY_END
153
154 STEP 60 CHECK_ANSWER
155 ENTRY_BEGIN
156 MATCH all
157 REPLY QR RD RA NOERROR
158 SECTION QUESTION
159 www.example.com. IN A
160 SECTION ANSWER
161 www.example.com. 2 IN A 10.20.30.40
162 ENTRY_END
163
164
165
166 SCENARIO_END