3 harden-referral-path: no
4 target-fetch-policy: "0 0 0 0 0"
5 qname-minimisation: "no"
9 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
12 SCENARIO_BEGIN Test lame detection if AA bit is omitted
13 ; the query is answered with a reply that has
17 ; NS record in there which is not a down delegation (==).
18 ; the query is not sent to a forward zone
28 STEP 20 CHECK_OUT_QUERY
30 MATCH qname qtype opcode
36 MATCH opcode qtype qname
42 . IN NS K.ROOT-SERVERS.NET.
44 K.ROOT-SERVERS.NET. IN A 193.0.14.129
47 ; query sent to root server
48 STEP 40 CHECK_OUT_QUERY
50 MATCH qname qtype opcode
56 MATCH opcode qtype qname
62 com. IN NS a.gtld-servers.net.
64 a.gtld-servers.net. IN A 192.5.6.30
67 ; query sent to .com server
68 STEP 60 CHECK_OUT_QUERY
70 MATCH qname qtype opcode
75 ; answer the NS queries that have been generated
76 ; STEP 62 CHECK_OUT_QUERY
78 ; MATCH qname qtype opcode
85 ; MATCH opcode qtype qname
91 ; com. IN NS a.gtld-servers.net.
93 ; a.gtld-servers.net. IN A 192.5.6.30
98 MATCH opcode qtype qname
102 www.example.com. IN A
104 example.com. IN NS ns1.example.com.
105 example.com. IN NS ns2.example.com.
107 ns1.example.com. IN A 168.192.2.2
108 ns2.example.com. IN A 168.192.3.3
111 ; no matter which one the iterator tries first, we present it as 'lame'
112 ; query to ns1.example.com or ns2.example.com.
113 STEP 80 CHECK_OUT_QUERY
115 MATCH qname qtype opcode
117 www.example.com. IN A
120 ; STEP 82 CHECK_OUT_QUERY
122 ; MATCH qname qtype opcode
129 ; MATCH opcode qtype qname
131 ; REPLY QR AA NOERROR
135 ; example.com. IN NS ns1.example.com.
136 ; example.com. IN NS ns2.example.com.
138 ; ns1.example.com. IN A 168.192.2.2
139 ; ns2.example.com. IN A 168.192.3.3
144 MATCH opcode qtype qname
148 www.example.com. IN A
150 ; This is the BROKEN ANSWER here.
151 ; it is lame. A delegation to example.com. itself.
152 example.com. IN NS ns1.example.com.
153 example.com. IN NS ns2.example.com.
155 ns1.example.com. IN A 168.192.2.2
156 ns2.example.com. IN A 168.192.3.3
159 ; iterator should try again and ask the other nameserver.
160 STEP 100 CHECK_OUT_QUERY
162 MATCH qname qtype opcode
164 www.example.com. IN A
169 MATCH opcode qtype qname
173 www.example.com. IN A
175 www.example.com. IN A 10.20.30.40
177 example.com. IN NS ns1.example.com.
178 example.com. IN NS ns2.example.com.
180 ns1.example.com. IN A 168.192.2.2
181 ns2.example.com. IN A 168.192.3.3
185 ; is the final answer correct?
186 STEP 200 CHECK_ANSWER
191 www.example.com. IN A
193 www.example.com. IN A 10.20.30.40
195 example.com. IN NS ns1.example.com.
196 example.com. IN NS ns2.example.com.
198 ns1.example.com. IN A 168.192.2.2
199 ns2.example.com. IN A 168.192.3.3