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.
14 ## queries from downstream clients get authoritative answers.
15 ## for-downstream: yes
17 ## queries are used to fetch authoritative answers from this zone,
18 ## instead of unbound itself sending queries there.
21 ## on failures with for-upstream, fallback to sending queries to
22 ## the authority servers
23 ## fallback-enabled: no
25 ## this line generates zonefile: \n"/tmp/xxx.example.com"\n
27 TEMPFILE_NAME example.com
28 ## this is the inline file /tmp/xxx.example.com
29 ## the tempfiles are deleted when the testrun is over.
30 TEMPFILE_CONTENTS example.com
32 example 3600 IN SOA dns.example.de. hostmaster.dns.example.de. (
33 1379078166 28800 7200 604800 7200 )
34 3600 IN NS ns1.example.com.
35 3600 IN NS ns2.example.com.
38 mail 3600 IN A 1.2.3.5
46 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
49 SCENARIO_BEGIN Test authority zone with zonefile for downstream responses
55 MATCH opcode qtype qname
61 . IN NS K.ROOT-SERVERS.NET.
63 K.ROOT-SERVERS.NET. IN A 193.0.14.129
67 MATCH opcode subdomain
68 ADJUST copy_id copy_query
73 com. IN NS a.gtld-servers.net.
75 a.gtld-servers.net. IN A 192.5.6.30
83 MATCH opcode qtype qname
89 com. IN NS a.gtld-servers.net.
91 a.gtld-servers.net. IN A 192.5.6.30
95 MATCH opcode subdomain
96 ADJUST copy_id copy_query
101 example.com. IN NS ns.example.com.
103 ns.example.com. IN A 1.2.3.44
111 MATCH opcode qtype qname
117 example.net. IN NS ns.example.net.
119 ns.example.net. IN A 1.2.3.44
123 MATCH opcode qtype qname
129 ns.example.net. IN A 1.2.3.44
131 example.net. IN NS ns.example.net.
135 MATCH opcode qtype qname
139 ns.example.net. IN AAAA
141 example.net. IN NS ns.example.net.
143 www.example.net. IN A 1.2.3.44
147 MATCH opcode qtype qname
153 example.com. IN NS ns.example.net.
157 MATCH opcode qtype qname
161 www.example.com. IN A
163 www.example.com. IN A 10.20.30.40
171 www.example.com. IN A
174 ; recursion happens here.
178 REPLY QR RD RA AA NOERROR
180 www.example.com. IN A
182 www.example.com. IN A 1.2.3.4