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.
15 ## queries from downstream clients get authoritative answers.
16 ## for-downstream: yes
18 ## queries are used to fetch authoritative answers from this zone,
19 ## instead of unbound itself sending queries there.
22 ## on failures with for-upstream, fallback to sending queries to
23 ## the authority servers
24 ## fallback-enabled: no
26 ## this line generates zonefile: \n"/tmp/xxx.example.com"\n
28 TEMPFILE_NAME example.com
29 ## this is the inline file /tmp/xxx.example.com
30 ## the tempfiles are deleted when the testrun is over.
31 TEMPFILE_CONTENTS example.com
32 example.com. 3600 IN SOA ns.example.com. hostmaster.example.com. 1 3600 900 86400 3600
33 example.com. 3600 IN NS ns.example.net.
34 www.example.com. 3600 IN A 1.2.3.4
35 mail.example.com. 3600 IN A 1.2.3.4
36 mail.example.com. 3600 IN A 1.2.3.5
37 mail.example.com. 3600 IN A 1.2.3.6
38 mail.example.com. 3600 IN A 1.2.3.7
43 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
46 SCENARIO_BEGIN Test authority zone with IXFR NOTIMPL fallback
52 MATCH opcode qtype qname
58 . IN NS K.ROOT-SERVERS.NET.
60 K.ROOT-SERVERS.NET. IN A 193.0.14.129
64 MATCH opcode subdomain
65 ADJUST copy_id copy_query
70 com. IN NS a.gtld-servers.net.
72 a.gtld-servers.net. IN A 192.5.6.30
80 MATCH opcode qtype qname
86 com. IN NS a.gtld-servers.net.
88 a.gtld-servers.net. IN A 192.5.6.30
92 MATCH opcode subdomain
93 ADJUST copy_id copy_query
98 example.com. IN NS ns.example.com.
100 ns.example.com. IN A 1.2.3.44
108 MATCH opcode qtype qname
114 example.net. IN NS ns.example.net.
116 ns.example.net. IN A 1.2.3.44
120 MATCH opcode qtype qname
126 ns.example.net. IN A 1.2.3.44
128 example.net. IN NS ns.example.net.
132 MATCH opcode qtype qname
136 ns.example.net. IN AAAA
138 example.net. IN NS ns.example.net.
140 www.example.net. IN A 1.2.3.44
144 MATCH opcode qtype qname
150 example.com. IN NS ns.example.net.
154 MATCH opcode qtype qname
158 www.example.com. IN A
160 www.example.com. IN A 10.20.30.40
164 MATCH opcode qtype qname
170 ; serial, refresh, retry, expire, minimum
171 example.com. 3600 IN SOA ns.example.com. hostmaster.example.com. 2 3600 900 86400 3600
175 MATCH opcode qtype qname
184 MATCH opcode qtype qname
190 example.com. IN SOA ns.example.com. hostmaster.example.com. 2 3600 900 86400 3600
191 example.com. IN NS ns.example.net.
197 www.example.com. IN A 1.2.3.6
198 example.com. IN SOA ns.example.com. hostmaster.example.com. 2 3600 900 86400 3600
206 www.example.com. IN A
208 STEP 2 TIME_PASSES ELAPSE 1
210 ; recursion happens here.
214 REPLY QR AA RD RA NOERROR
216 www.example.com. IN A
218 www.example.com. IN A 1.2.3.4
221 STEP 30 TIME_PASSES ELAPSE 3600
228 www.example.com. IN A
231 ; recursion happens here.
235 REPLY QR AA RD RA NOERROR
237 www.example.com. IN A
239 www.example.com. IN A 1.2.3.6
242 ; the zonefile was updated with new contents
243 STEP 70 CHECK_TEMPFILE example.com
245 example.com. 3600 IN SOA ns.example.com. hostmaster.example.com. 2 3600 900 86400 3600
246 example.com. 3600 IN NS ns.example.net.
247 www.example.com. 3600 IN A 1.2.3.6