3 harden-referral-path: no
4 target-fetch-policy: "0 0 0 0 0"
5 qname-minimisation: "no"
10 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
13 SCENARIO_BEGIN Test lame detection if AA bit is omitted
14 ; the query is answered with a reply that has
18 ; NS record in there which is not a down delegation (==).
19 ; the query is not sent to a forward zone
29 STEP 20 CHECK_OUT_QUERY
31 MATCH qname qtype opcode
37 MATCH opcode qtype qname
43 . IN NS K.ROOT-SERVERS.NET.
45 K.ROOT-SERVERS.NET. IN A 193.0.14.129
48 ; query sent to root server
49 STEP 40 CHECK_OUT_QUERY
51 MATCH qname qtype opcode
57 MATCH opcode qtype qname
63 com. IN NS a.gtld-servers.net.
65 a.gtld-servers.net. IN A 192.5.6.30
68 ; query sent to .com server
69 STEP 60 CHECK_OUT_QUERY
71 MATCH qname qtype opcode
76 ; answer the NS queries that have been generated
77 ; STEP 62 CHECK_OUT_QUERY
79 ; MATCH qname qtype opcode
86 ; MATCH opcode qtype qname
92 ; com. IN NS a.gtld-servers.net.
94 ; a.gtld-servers.net. IN A 192.5.6.30
99 MATCH opcode qtype qname
103 www.example.com. IN A
105 example.com. IN NS ns1.example.com.
106 example.com. IN NS ns2.example.com.
108 ns1.example.com. IN A 168.192.2.2
109 ns2.example.com. IN A 168.192.3.3
112 ; no matter which one the iterator tries first, we present it as 'lame'
113 ; query to ns1.example.com or ns2.example.com.
114 STEP 80 CHECK_OUT_QUERY
116 MATCH qname qtype opcode
118 www.example.com. IN A
121 ; STEP 82 CHECK_OUT_QUERY
123 ; MATCH qname qtype opcode
130 ; MATCH opcode qtype qname
132 ; REPLY QR AA NOERROR
136 ; example.com. IN NS ns1.example.com.
137 ; example.com. IN NS ns2.example.com.
139 ; ns1.example.com. IN A 168.192.2.2
140 ; ns2.example.com. IN A 168.192.3.3
145 MATCH opcode qtype qname
149 www.example.com. IN A
151 ; This is the BROKEN ANSWER here.
152 ; it is lame. A delegation to example.com. itself.
153 example.com. IN NS ns1.example.com.
154 example.com. IN NS ns2.example.com.
156 ns1.example.com. IN A 168.192.2.2
157 ns2.example.com. IN A 168.192.3.3
160 ; iterator should try again and ask the other nameserver.
161 STEP 100 CHECK_OUT_QUERY
163 MATCH qname qtype opcode
165 www.example.com. IN A
170 MATCH opcode qtype qname
174 www.example.com. IN A
176 www.example.com. IN A 10.20.30.40
178 example.com. IN NS ns1.example.com.
179 example.com. IN NS ns2.example.com.
181 ns1.example.com. IN A 168.192.2.2
182 ns2.example.com. IN A 168.192.3.3
186 ; is the final answer correct?
187 STEP 200 CHECK_ANSWER
192 www.example.com. IN A
194 www.example.com. IN A 10.20.30.40
196 example.com. IN NS ns1.example.com.
197 example.com. IN NS ns2.example.com.
199 ns1.example.com. IN A 168.192.2.2
200 ns2.example.com. IN A 168.192.3.3