3 target-fetch-policy: "0 0 0 0 0"
8 stub-addr: 193.0.14.129
17 SCENARIO_BEGIN Test stub zone leaking to the internet on last resort fallback
26 ADJUST copy_id copy_query
31 . IN NS k.root-servers.net.
33 k.root-servers.net. IN A 193.0.14.129
38 ; stub server for example.com
42 ; subzone is delegated
44 MATCH opcode subdomain
45 ADJUST copy_id copy_query
48 subzone.example.com. IN A
50 subzone.example.com. IN NS sub-ns1.example.com.
51 subzone.example.com. IN NS sub-ns2.example.com.
52 subzone.example.com. IN NS example.net.
54 sub-ns1.example.com. IN A 10.0.2.3
55 sub-ns2.example.com. IN A 10.0.2.4
60 ADJUST copy_id copy_query
63 sub-ns1.example.com. IN A
65 sub-ns1.example.com. IN A 10.0.2.3
70 ADJUST copy_id copy_query
73 sub-ns2.example.com. IN A
75 sub-ns2.example.com. IN A 10.0.2.4
80 ADJUST copy_id copy_query
83 sub-ns1.example.com. IN AAAA
85 example.com. 300 SOA master.example.com etc 1 2 3 4 300
90 ADJUST copy_id copy_query
93 sub-ns2.example.com. IN AAAA
95 example.com. 300 SOA master.example.com etc 1 2 3 4 300
100 ; stub server for example.net
105 MATCH opcode question
106 ADJUST copy_id copy_query
111 example.net. IN NS ns.example.net.
113 ns.example.net. IN A 10.0.5.1
117 MATCH opcode question
118 ADJUST copy_id copy_query
123 example.net. IN A 10.0.5.4
127 MATCH opcode question
128 ADJUST copy_id copy_query
133 example.net. 300 SOA master.example.net etc 1 2 3 4 300
138 ; stub server for subzone.example.com
141 ; match anything, servfail
144 ADJUST copy_id copy_query
147 subzone.example.com. IN A
152 ; stub server for subzone.example.com
155 ; match anything, servfail
158 ADJUST copy_id copy_query
161 subzone.example.com. IN A
166 ; stub server for subzone.example.com
169 ; match anything, servfail
172 ADJUST copy_id copy_query
175 subzone.example.com. IN A
181 ; fetch the delegation point for example.net in cache.
189 ; recursion happens here.
193 REPLY QR RD RA NOERROR
197 example.net. IN NS ns.example.net.
199 ns.example.net. IN A 10.0.5.1
206 whatever.subzone.example.com. IN A
209 ; recursion happens here.
210 ; the query should not leak subzone ns queries to the internet
214 REPLY QR RD RA SERVFAIL
216 whatever.subzone.example.com. IN A