3 target-fetch-policy: "0 0 0 0 0"
8 ## zonefile: "example.com.zone"
9 ## master by IP address or hostname
10 ## can list multiple masters, each on one line.
12 master: ns.example.net.
16 ## queries from downstream clients get authoritative answers.
17 ## for-downstream: yes
19 ## queries are used to fetch authoritative answers from this zone,
20 ## instead of unbound itself sending queries there.
23 ## on failures with for-upstream, fallback to sending queries to
24 ## the authority servers
25 ## fallback-enabled: no
27 ## this line generates zonefile: \n"/tmp/xxx.example.com"\n
29 TEMPFILE_NAME example.com
30 ## this is the inline file /tmp/xxx.example.com
31 ## the tempfiles are deleted when the testrun is over.
32 TEMPFILE_CONTENTS example.com
37 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
40 SCENARIO_BEGIN Test authority zone that needs host name lookup
46 MATCH opcode qtype qname
52 . IN NS K.ROOT-SERVERS.NET.
54 K.ROOT-SERVERS.NET. IN A 193.0.14.129
58 MATCH opcode subdomain
59 ADJUST copy_id copy_query
64 com. IN NS a.gtld-servers.net.
66 a.gtld-servers.net. IN A 192.5.6.30
70 MATCH opcode qtype qname
76 ns.example.net. IN A 1.2.3.44
80 MATCH opcode qtype qname
84 ns.example.net. IN AAAA
93 MATCH opcode qtype qname
99 com. IN NS a.gtld-servers.net.
101 a.gtld-servers.net. IN A 192.5.6.30
105 MATCH opcode subdomain
106 ADJUST copy_id copy_query
111 example.com. IN NS ns.example.com.
113 ns.example.com. IN A 1.2.3.44
121 MATCH opcode qtype qname
127 example.com. IN NS ns.example.com.
129 ns.example.com. IN A 1.2.3.44
133 MATCH opcode qtype qname
139 ns.example.com. IN A 1.2.3.44
141 example.com. IN NS ns.example.com.
145 MATCH opcode qtype qname
149 ns.example.com. IN AAAA
151 example.com. IN NS ns.example.com.
153 www.example.com. IN A 1.2.3.44
157 MATCH opcode qtype qname
163 example.com. IN NS ns.example.com.
167 MATCH opcode qtype qname
171 www.example.com. IN A
173 www.example.com. IN A 10.20.30.40
177 MATCH opcode qtype qname
183 ; serial, refresh, retry, expire, minimum
184 example.com. IN SOA ns.example.com. hostmaster.example.com. 1 3600 900 86400 3600
188 MATCH opcode qtype qname
194 example.com. IN SOA ns.example.com. hostmaster.example.com. 1 3600 900 86400 3600
195 example.com. IN NS ns.example.com.
196 www.example.com. IN A 1.2.3.4
197 example.com. IN SOA ns.example.com. hostmaster.example.com. 1 3600 900 86400 3600
205 www.example.com. IN A
208 ; recursion happens here.
212 REPLY QR AA RD RA SERVFAIL
214 www.example.com. IN A
218 STEP 30 TIME_PASSES ELAPSE 10
225 www.example.com. IN A
228 ; recursion happens here.
232 REPLY QR AA RD RA NOERROR
234 www.example.com. IN A
236 www.example.com. IN A 1.2.3.4
239 ; the zonefile was updated with new contents
240 STEP 70 CHECK_TEMPFILE example.com
242 example.com. 3600 IN SOA ns.example.com. hostmaster.example.com. 1 3600 900 86400 3600
243 example.com. 3600 IN NS ns.example.com.
244 www.example.com. 3600 IN A 1.2.3.4