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.
13 allow-notify: 127.0.0.1
16 ## queries from downstream clients get authoritative answers.
17 ## for-downstream: yes
19 ## queries are used to fetch authoritative answers from this zone,
20 ## instead of unbound itself sending queries there.
23 ## on failures with for-upstream, fallback to sending queries to
24 ## the authority servers
25 ## fallback-enabled: no
27 ## this line generates zonefile: \n"/tmp/xxx.example.com"\n
29 TEMPFILE_NAME example.com
30 ## this is the inline file /tmp/xxx.example.com
31 ## the tempfiles are deleted when the testrun is over.
32 TEMPFILE_CONTENTS example.com
33 example.com. 3600 IN SOA ns.example.com. hostmaster.example.com. 1 3600 900 86400 3600
38 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
41 SCENARIO_BEGIN Test authority zone with a NOTIFY
47 MATCH opcode qtype qname
53 . IN NS K.ROOT-SERVERS.NET.
55 K.ROOT-SERVERS.NET. IN A 193.0.14.129
59 MATCH opcode subdomain
60 ADJUST copy_id copy_query
65 com. IN NS a.gtld-servers.net.
67 a.gtld-servers.net. IN A 192.5.6.30
75 MATCH opcode qtype qname
81 com. IN NS a.gtld-servers.net.
83 a.gtld-servers.net. IN A 192.5.6.30
87 MATCH opcode subdomain
88 ADJUST copy_id copy_query
93 example.com. IN NS ns.example.com.
95 ns.example.com. IN A 1.2.3.44
103 MATCH opcode qtype qname
109 example.net. IN NS ns.example.net.
111 ns.example.net. IN A 1.2.3.44
115 MATCH opcode qtype qname
121 ns.example.net. IN A 1.2.3.44
123 example.net. IN NS ns.example.net.
127 MATCH opcode qtype qname
131 ns.example.net. IN AAAA
133 example.net. IN NS ns.example.net.
135 www.example.net. IN A 1.2.3.44
139 MATCH opcode qtype qname
145 example.com. IN NS ns.example.net.
149 MATCH opcode qtype qname
153 www.example.com. IN A
155 www.example.com. IN A 10.20.30.40
159 MATCH opcode qtype qname
165 ; serial, refresh, retry, expire, minimum
166 example.com. IN SOA ns.example.com. hostmaster.example.com. 2 3600 900 86400 3600
170 MATCH opcode qtype qname
179 MATCH opcode qtype qname
185 example.com. IN SOA ns.example.com. hostmaster.example.com. 2 3600 900 86400 3600
186 example.com. IN NS ns.example.net.
192 www.example.com. IN A 1.2.3.4
193 example.com. IN SOA ns.example.com. hostmaster.example.com. 2 3600 900 86400 3600
197 ; lookups for notify hostnames.
198 STEP 1 TIME_PASSES ELAPSE 0
205 www.example.com. IN A
208 ; recursion happens here.
212 REPLY QR AA RD RA NXDOMAIN
214 www.example.com. IN A
216 example.com. 3600 IN SOA ns.example.com. hostmaster.example.com. 1 3600 900 86400 3600
230 REPLY QR RA NOTIFY NOERROR
240 www.example.com. IN A
243 ; recursion happens here.
247 REPLY QR AA RD RA NOERROR
249 www.example.com. IN A
251 www.example.com. IN A 1.2.3.4
254 ; the zonefile was updated with new contents
255 STEP 70 CHECK_TEMPFILE example.com
257 example.com. 3600 IN SOA ns.example.com. hostmaster.example.com. 2 3600 900 86400 3600
258 example.com. 3600 IN NS ns.example.net.
259 www.example.com. 3600 IN A 1.2.3.4