]>
Commit | Line | Data |
---|---|---|
89c4ed63 A |
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 iterative resolve with two recursion lame servers. | |
11 | ; both servers are recursion lame. The iterator tries both servers, | |
12 | ; but they are both lame. Then it concludes that it only has reclame. | |
13 | ||
14 | ; K.ROOT-SERVERS.NET. | |
15 | RANGE_BEGIN 0 100 | |
16 | ADDRESS 193.0.14.129 | |
17 | ENTRY_BEGIN | |
18 | MATCH opcode qtype qname | |
19 | ADJUST copy_id | |
20 | REPLY QR NOERROR | |
21 | SECTION QUESTION | |
22 | . IN NS | |
23 | SECTION ANSWER | |
24 | . IN NS K.ROOT-SERVERS.NET. | |
25 | SECTION ADDITIONAL | |
26 | K.ROOT-SERVERS.NET. IN A 193.0.14.129 | |
27 | ENTRY_END | |
28 | ||
29 | ENTRY_BEGIN | |
30 | MATCH opcode subdomain | |
31 | ADJUST copy_id copy_query | |
32 | REPLY QR NOERROR | |
33 | SECTION QUESTION | |
34 | com. IN A | |
35 | SECTION AUTHORITY | |
36 | com. IN NS a.gtld-servers.net. | |
37 | SECTION ADDITIONAL | |
38 | a.gtld-servers.net. IN A 192.5.6.30 | |
39 | ENTRY_END | |
40 | RANGE_END | |
41 | ||
42 | ; a.gtld-servers.net. | |
43 | RANGE_BEGIN 0 100 | |
44 | ADDRESS 192.5.6.30 | |
45 | ENTRY_BEGIN | |
46 | MATCH opcode qtype qname | |
47 | ADJUST copy_id | |
48 | REPLY QR NOERROR | |
49 | SECTION QUESTION | |
50 | com. IN NS | |
51 | SECTION ANSWER | |
52 | com. IN NS a.gtld-servers.net. | |
53 | SECTION ADDITIONAL | |
54 | a.gtld-servers.net. IN A 192.5.6.30 | |
55 | ENTRY_END | |
56 | ||
57 | ENTRY_BEGIN | |
58 | MATCH opcode subdomain | |
59 | ADJUST copy_id copy_query | |
60 | REPLY QR NOERROR | |
61 | SECTION QUESTION | |
62 | example.com. IN A | |
63 | SECTION AUTHORITY | |
64 | example.com. IN NS ns.example.com. | |
65 | example.com. IN NS lame.example.com. | |
66 | SECTION ADDITIONAL | |
67 | ns.example.com. IN A 1.2.3.4 | |
68 | lame.example.com. IN A 1.2.3.5 | |
69 | ENTRY_END | |
70 | RANGE_END | |
71 | ||
72 | ; ns.example.com. | |
73 | RANGE_BEGIN 0 100 | |
74 | ADDRESS 1.2.3.4 | |
75 | ENTRY_BEGIN | |
76 | MATCH opcode qtype qname | |
77 | ADJUST copy_id | |
78 | REPLY QR RA NOERROR | |
79 | SECTION QUESTION | |
80 | example.com. IN NS | |
81 | SECTION ANSWER | |
82 | example.com. IN NS ns.example.com. | |
83 | example.com. IN NS lame.example.com. | |
84 | SECTION ADDITIONAL | |
85 | ns.example.com. IN A 1.2.3.4 | |
86 | lame.example.com. IN A 1.2.3.5 | |
87 | ENTRY_END | |
88 | ||
89 | ENTRY_BEGIN | |
90 | MATCH opcode qtype qname | |
91 | ADJUST copy_id | |
92 | REPLY QR RA NOERROR | |
93 | SECTION QUESTION | |
94 | ns.example.com. IN AAAA | |
95 | SECTION ANSWER | |
96 | ENTRY_END | |
97 | ||
98 | ENTRY_BEGIN | |
99 | MATCH opcode qtype qname | |
100 | ADJUST copy_id | |
101 | REPLY QR RA NOERROR | |
102 | SECTION QUESTION | |
103 | lame.example.com. IN AAAA | |
104 | SECTION ANSWER | |
105 | ENTRY_END | |
106 | ||
107 | ENTRY_BEGIN | |
108 | MATCH opcode qtype qname | |
109 | ADJUST copy_id | |
110 | REPLY QR RA NOERROR | |
111 | SECTION QUESTION | |
112 | www.example.com. IN A | |
113 | SECTION ANSWER | |
114 | www.example.com. IN A 10.20.30.40 | |
115 | SECTION AUTHORITY | |
116 | example.com. IN NS ns.example.com. | |
117 | example.com. IN NS lame.example.com. | |
118 | SECTION ADDITIONAL | |
119 | ns.example.com. IN A 1.2.3.4 | |
120 | lame.example.com. IN A 1.2.3.5 | |
121 | ENTRY_END | |
122 | RANGE_END | |
123 | ||
124 | ; lame.example.com. | |
125 | RANGE_BEGIN 0 100 | |
126 | ADDRESS 1.2.3.5 | |
127 | ENTRY_BEGIN | |
128 | MATCH opcode qtype qname | |
129 | ADJUST copy_id | |
130 | REPLY QR RA NOERROR | |
131 | SECTION QUESTION | |
132 | example.com. IN NS | |
133 | SECTION ANSWER | |
134 | example.com. IN NS ns.example.com. | |
135 | example.com. IN NS lame.example.com. | |
136 | SECTION ADDITIONAL | |
137 | ns.example.com. IN A 1.2.3.4 | |
138 | lame.example.com. IN A 1.2.3.5 | |
139 | ENTRY_END | |
140 | ||
141 | ENTRY_BEGIN | |
142 | MATCH opcode | |
143 | ADJUST copy_id copy_query | |
144 | REPLY QR RA NOERROR | |
145 | SECTION QUESTION | |
146 | www.example.com. IN A | |
147 | SECTION ANSWER | |
148 | www.example.com. IN A 10.20.30.40 | |
149 | SECTION AUTHORITY | |
150 | example.com. IN NS ns.example.com. | |
151 | example.com. IN NS lame.example.com. | |
152 | SECTION ADDITIONAL | |
153 | ns.example.com. IN A 1.2.3.4 | |
154 | lame.example.com. IN A 1.2.3.5 | |
155 | ENTRY_END | |
156 | RANGE_END | |
157 | ||
158 | STEP 1 QUERY | |
159 | ENTRY_BEGIN | |
160 | REPLY RD | |
161 | SECTION QUESTION | |
162 | www.example.com. IN A | |
163 | ENTRY_END | |
164 | ||
165 | ; recursion happens here. | |
166 | STEP 10 CHECK_ANSWER | |
167 | ENTRY_BEGIN | |
168 | MATCH all | |
169 | REPLY QR RD RA NOERROR | |
170 | SECTION QUESTION | |
171 | www.example.com. IN A | |
172 | SECTION ANSWER | |
173 | www.example.com. IN A 10.20.30.40 | |
174 | SECTION AUTHORITY | |
175 | example.com. IN NS ns.example.com. | |
176 | example.com. IN NS lame.example.com. | |
177 | SECTION ADDITIONAL | |
178 | ns.example.com. IN A 1.2.3.4 | |
179 | lame.example.com. IN A 1.2.3.5 | |
180 | ENTRY_END | |
181 | ||
182 | SCENARIO_END |