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
36 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
39 SCENARIO_BEGIN Test authority zone with AXFR
45 MATCH opcode qtype qname
51 . IN NS K.ROOT-SERVERS.NET.
53 K.ROOT-SERVERS.NET. IN A 193.0.14.129
57 MATCH opcode subdomain
58 ADJUST copy_id copy_query
63 com. IN NS a.gtld-servers.net.
65 a.gtld-servers.net. IN A 192.5.6.30
73 MATCH opcode qtype qname
79 com. IN NS a.gtld-servers.net.
81 a.gtld-servers.net. IN A 192.5.6.30
85 MATCH opcode subdomain
86 ADJUST copy_id copy_query
91 example.com. IN NS ns.example.com.
93 ns.example.com. IN A 1.2.3.44
101 MATCH opcode qtype qname
107 example.net. IN NS ns.example.net.
109 ns.example.net. IN A 1.2.3.44
113 MATCH opcode qtype qname
119 ns.example.net. IN A 1.2.3.44
121 example.net. IN NS ns.example.net.
125 MATCH opcode qtype qname
129 ns.example.net. IN AAAA
131 example.net. IN NS ns.example.net.
133 www.example.net. IN A 1.2.3.44
137 MATCH opcode qtype qname
143 example.com. IN NS ns.example.net.
147 MATCH opcode qtype qname
151 www.example.com. IN A
153 www.example.com. IN A 10.20.30.40
157 MATCH opcode qtype qname
163 ; serial, refresh, retry, expire, minimum
164 example.com. IN SOA ns.example.com. hostmaster.example.com. 1 3600 900 86400 3600
168 MATCH opcode qtype qname
174 example.com. IN SOA ns.example.com. hostmaster.example.com. 1 3600 900 86400 3600
175 example.com. IN NS ns.example.net.
181 www.example.com. IN A 1.2.3.4
182 example.com. IN SOA ns.example.com. hostmaster.example.com. 1 3600 900 86400 3600
190 www.example.com. IN A
193 ; recursion happens here.
197 REPLY QR AA RD RA SERVFAIL
199 www.example.com. IN A
203 STEP 30 TIME_PASSES ELAPSE 10
210 www.example.com. IN A
213 ; recursion happens here.
217 REPLY QR AA RD RA NOERROR
219 www.example.com. IN A
221 www.example.com. IN A 1.2.3.4
224 ; the zonefile was updated with new contents
225 STEP 70 CHECK_TEMPFILE example.com
227 example.com. 3600 IN SOA ns.example.com. hostmaster.example.com. 1 3600 900 86400 3600
228 example.com. 3600 IN NS ns.example.net.
229 www.example.com. 3600 IN A 1.2.3.4