3 harden-referral-path: no
4 target-fetch-policy: "0 0 0 0 0"
5 qname-minimisation: "no"
11 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
14 SCENARIO_BEGIN Test lame detection if AA bit is omitted
15 ; the query is answered with a reply that has
19 ; NS record in there which is not a down delegation (==).
20 ; the query is not sent to a forward zone
30 STEP 20 CHECK_OUT_QUERY
32 MATCH qname qtype opcode
38 MATCH opcode qtype qname
44 . IN NS K.ROOT-SERVERS.NET.
46 K.ROOT-SERVERS.NET. IN A 193.0.14.129
49 ; query sent to root server
50 STEP 40 CHECK_OUT_QUERY
52 MATCH qname qtype opcode
58 MATCH opcode qtype qname
64 com. IN NS a.gtld-servers.net.
66 a.gtld-servers.net. IN A 192.5.6.30
69 ; query sent to .com server
70 STEP 60 CHECK_OUT_QUERY
72 MATCH qname qtype opcode
77 ; answer the NS queries that have been generated
78 ; STEP 62 CHECK_OUT_QUERY
80 ; MATCH qname qtype opcode
87 ; MATCH opcode qtype qname
93 ; com. IN NS a.gtld-servers.net.
95 ; a.gtld-servers.net. IN A 192.5.6.30
100 MATCH opcode qtype qname
104 www.example.com. IN A
106 example.com. IN NS ns1.example.com.
107 example.com. IN NS ns2.example.com.
109 ns1.example.com. IN A 168.192.2.2
110 ns2.example.com. IN A 168.192.3.3
113 ; no matter which one the iterator tries first, we present it as 'lame'
114 ; query to ns1.example.com or ns2.example.com.
115 STEP 80 CHECK_OUT_QUERY
117 MATCH qname qtype opcode
119 www.example.com. IN A
122 ; STEP 82 CHECK_OUT_QUERY
124 ; MATCH qname qtype opcode
131 ; MATCH opcode qtype qname
133 ; REPLY QR AA NOERROR
137 ; example.com. IN NS ns1.example.com.
138 ; example.com. IN NS ns2.example.com.
140 ; ns1.example.com. IN A 168.192.2.2
141 ; ns2.example.com. IN A 168.192.3.3
146 MATCH opcode qtype qname
150 www.example.com. IN A
152 ; This is the BROKEN ANSWER here.
153 ; it is lame. A delegation to example.com. itself.
154 example.com. IN NS ns1.example.com.
155 example.com. IN NS ns2.example.com.
157 ns1.example.com. IN A 168.192.2.2
158 ns2.example.com. IN A 168.192.3.3
161 ; iterator should try again and ask the other nameserver.
162 STEP 100 CHECK_OUT_QUERY
164 MATCH qname qtype opcode
166 www.example.com. IN A
171 MATCH opcode qtype qname
175 www.example.com. IN A
177 www.example.com. IN A 10.20.30.40
179 example.com. IN NS ns1.example.com.
180 example.com. IN NS ns2.example.com.
182 ns1.example.com. IN A 168.192.2.2
183 ns2.example.com. IN A 168.192.3.3
187 ; is the final answer correct?
188 STEP 200 CHECK_ANSWER
193 www.example.com. IN A
195 www.example.com. IN A 10.20.30.40
197 example.com. IN NS ns1.example.com.
198 example.com. IN NS ns2.example.com.
200 ns1.example.com. IN A 168.192.2.2
201 ns2.example.com. IN A 168.192.3.3