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
39 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
42 SCENARIO_BEGIN Test authority zone with probe of SOA
48 MATCH opcode qtype qname
54 . IN NS K.ROOT-SERVERS.NET.
56 K.ROOT-SERVERS.NET. IN A 193.0.14.129
60 MATCH opcode subdomain
61 ADJUST copy_id copy_query
66 com. IN NS a.gtld-servers.net.
68 a.gtld-servers.net. IN A 192.5.6.30
76 MATCH opcode qtype qname
82 com. IN NS a.gtld-servers.net.
84 a.gtld-servers.net. IN A 192.5.6.30
88 MATCH opcode subdomain
89 ADJUST copy_id copy_query
94 example.com. IN NS ns.example.com.
96 ns.example.com. IN A 1.2.3.44
104 MATCH opcode qtype qname
110 example.net. IN NS ns.example.net.
112 ns.example.net. IN A 1.2.3.44
116 MATCH opcode qtype qname
122 ns.example.net. IN A 1.2.3.44
124 example.net. IN NS ns.example.net.
128 MATCH opcode qtype qname
132 ns.example.net. IN AAAA
134 example.net. IN NS ns.example.net.
136 www.example.net. IN A 1.2.3.44
140 MATCH opcode qtype qname
146 example.com. IN NS ns.example.net.
150 MATCH opcode qtype qname
154 www.example.com. IN A
156 www.example.com. IN A 10.20.30.40
160 MATCH opcode qtype qname
166 ; serial, refresh, retry, expire, minimum
167 example.com. IN SOA ns.example.com. hostmaster.example.com. 1 3600 900 86400 3600
176 www.example.com. IN A
179 ; recursion happens here.
183 REPLY QR AA RD RA NOERROR
185 www.example.com. IN A
187 www.example.com. IN A 1.2.3.4
190 STEP 30 TIME_PASSES ELAPSE 3600
197 www.example.com. IN A
200 ; recursion happens here.
204 REPLY QR AA RD RA NOERROR
206 www.example.com. IN A
208 www.example.com. IN A 1.2.3.4
211 ; the zonefile was updated with new contents
212 STEP 70 CHECK_TEMPFILE example.com
214 example.com. 3600 IN SOA ns.example.com. hostmaster.example.com. 1 3600 900 86400 3600
215 example.com. 3600 IN NS ns.example.net.
216 www.example.com. 3600 IN A 1.2.3.4