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.
44 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
47 SCENARIO_BEGIN Test authority zone with zonefile with no upstream enabled
48 ; and therefore fallback is going to be used.
54 MATCH opcode qtype qname
60 . IN NS K.ROOT-SERVERS.NET.
62 K.ROOT-SERVERS.NET. IN A 193.0.14.129
66 MATCH opcode subdomain
67 ADJUST copy_id copy_query
72 com. IN NS a.gtld-servers.net.
74 a.gtld-servers.net. IN A 192.5.6.30
82 MATCH opcode qtype qname
88 com. IN NS a.gtld-servers.net.
90 a.gtld-servers.net. IN A 192.5.6.30
94 MATCH opcode subdomain
95 ADJUST copy_id copy_query
100 example.com. IN NS ns.example.com.
102 ns.example.com. IN A 1.2.3.44
110 MATCH opcode qtype qname
116 example.net. IN NS ns.example.net.
118 ns.example.net. IN A 1.2.3.44
122 MATCH opcode qtype qname
128 ns.example.net. IN A 1.2.3.44
130 example.net. IN NS ns.example.net.
134 MATCH opcode qtype qname
138 ns.example.net. IN AAAA
140 example.net. IN NS ns.example.net.
142 www.example.net. IN A 1.2.3.44
146 MATCH opcode qtype qname
152 example.com. IN NS ns.example.net.
156 MATCH opcode qtype qname
160 www.example.com. IN A
162 www.example.com. IN A 10.20.30.40
170 www.example.com. IN A
173 ; recursion happens here.
177 REPLY QR RD RA NOERROR
179 www.example.com. IN A
181 www.example.com. IN A 10.20.30.40