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
26 ## this line generates zonefile: \n"/tmp/xxx.example.com"\n
28 TEMPFILE_NAME root.zone
29 ## this is the inline file /tmp/xxx.example.com
30 ## the tempfiles are deleted when the testrun is over.
31 TEMPFILE_CONTENTS root.zone
32 . 86400 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2018013100 1800 900 604800 86400
33 . 518400 IN NS k.root-servers.net.
34 K.ROOT-SERVERS.NET. IN A 193.0.14.129
35 com. IN NS a.gtld-servers.net.
36 a.gtld-servers.net. IN A 192.5.6.30
41 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
44 SCENARIO_BEGIN Test authority zone with zonefile for root referrals
50 MATCH opcode qtype qname
56 . IN NS K.ROOT-SERVERS.NET.
58 K.ROOT-SERVERS.NET. IN A 193.0.14.129
62 MATCH opcode subdomain
63 ADJUST copy_id copy_query
68 com. IN NS a.gtld-servers.net.
70 ; disable this referral for the test, we want to use the builtin copy of the zone
71 ; a.gtld-servers.net. IN A 192.5.6.30
79 MATCH opcode qtype qname
85 com. IN NS a.gtld-servers.net.
87 a.gtld-servers.net. IN A 192.5.6.30
91 MATCH opcode subdomain
92 ADJUST copy_id copy_query
97 example.com. IN NS ns.example.com.
99 ns.example.com. IN A 1.2.3.44
107 MATCH opcode qtype qname
113 example.net. IN NS ns.example.net.
115 ns.example.net. IN A 1.2.3.44
119 MATCH opcode qtype qname
125 ns.example.net. IN A 1.2.3.44
127 example.net. IN NS ns.example.net.
131 MATCH opcode qtype qname
135 ns.example.net. IN AAAA
137 example.net. IN NS ns.example.net.
139 www.example.net. IN A 1.2.3.44
143 MATCH opcode qtype qname
149 example.com. IN NS ns.example.net.
153 MATCH opcode qtype qname
157 www.example.com. IN A
159 www.example.com. IN A 10.20.30.40
167 www.example.com. IN A
170 ; recursion happens here.
174 REPLY QR RD RA NOERROR
176 www.example.com. IN A
178 www.example.com. IN A 10.20.30.40