1 1.1 christos ; config options 2 1.1 christos server: 3 1.1 christos target-fetch-policy: "0 0 0 0 0" 4 1.1 christos 5 1.1 christos auth-zone: 6 1.1 christos name: "example.com." 7 1.1 christos ## zonefile (or none). 8 1.1 christos ## zonefile: "example.com.zone" 9 1.1 christos ## master by IP address or hostname 10 1.1 christos ## can list multiple masters, each on one line. 11 1.1 christos ## master: 12 1.1 christos ## url for http fetch 13 1.1 christos ## url: 14 1.1 christos ## queries from downstream clients get authoritative answers. 15 1.1 christos ## for-downstream: yes 16 1.1 christos for-downstream: no 17 1.1 christos ## queries are used to fetch authoritative answers from this zone, 18 1.1 christos ## instead of unbound itself sending queries there. 19 1.1 christos ## for-upstream: yes 20 1.1 christos for-upstream: yes 21 1.1 christos ## on failures with for-upstream, fallback to sending queries to 22 1.1 christos ## the authority servers 23 1.1 christos ## fallback-enabled: no 24 1.1 christos zonemd-check: yes 25 1.1 christos 26 1.1 christos ## this line generates zonefile: \n"/tmp/xxx.example.com"\n 27 1.1 christos zonefile: 28 1.1 christos TEMPFILE_NAME example.com 29 1.1 christos ## this is the inline file /tmp/xxx.example.com 30 1.1 christos ## the tempfiles are deleted when the testrun is over. 31 1.1 christos TEMPFILE_CONTENTS example.com 32 1.1 christos example.com. IN SOA ns.example.com. hostmaster.example.com. 200154054 28800 7200 604800 3600 33 1.1 christos example.com. IN NS ns.example.com. 34 1.1 christos example.com. IN ZONEMD 200154054 1 22 EFAA5B78B38AB1C45DE57B8167BCCE906451D0E72118E1F5E80B5F0C3CF04BFFC65D53C011185528EAD439D6F3A02F511961E090E5E4E0DFA013BD276D728B22 35 1.1 christos example.com. IN ZONEMD 200154054 21 2 EFAA5B78B38AB1C45DE57B8167BCCE906451D0E72118E1F5E80B5F0C3CF04BFFC65D53C011185528EAD439D6F3A02F511961E090E5E4E0DFA013BD276D728B22 36 1.1 christos www.example.com. IN A 127.0.0.1 37 1.1 christos ns.example.com. IN A 127.0.0.1 38 1.1 christos bar.example.com. IN A 1.2.3.4 39 1.1 christos ding.example.com. IN A 1.2.3.4 40 1.1 christos foo.example.com. IN A 1.2.3.4 41 1.1 christos TEMPFILE_END 42 1.1 christos 43 1.1 christos stub-zone: 44 1.1 christos name: "." 45 1.1 christos stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET. 46 1.1 christos CONFIG_END 47 1.1 christos 48 1.1 christos SCENARIO_BEGIN Test authority zone with ZONEMD with unknown algo from zonefile 49 1.1 christos 50 1.1 christos ; K.ROOT-SERVERS.NET. 51 1.1 christos RANGE_BEGIN 0 100 52 1.1 christos ADDRESS 193.0.14.129 53 1.1 christos ENTRY_BEGIN 54 1.1 christos MATCH opcode qtype qname 55 1.1 christos ADJUST copy_id 56 1.1 christos REPLY QR NOERROR 57 1.1 christos SECTION QUESTION 58 1.1 christos . IN NS 59 1.1 christos SECTION ANSWER 60 1.1 christos . IN NS K.ROOT-SERVERS.NET. 61 1.1 christos SECTION ADDITIONAL 62 1.1 christos K.ROOT-SERVERS.NET. IN A 193.0.14.129 63 1.1 christos ENTRY_END 64 1.1 christos 65 1.1 christos ENTRY_BEGIN 66 1.1 christos MATCH opcode subdomain 67 1.1 christos ADJUST copy_id copy_query 68 1.1 christos REPLY QR NOERROR 69 1.1 christos SECTION QUESTION 70 1.1 christos com. IN NS 71 1.1 christos SECTION AUTHORITY 72 1.1 christos com. IN NS a.gtld-servers.net. 73 1.1 christos SECTION ADDITIONAL 74 1.1 christos a.gtld-servers.net. IN A 192.5.6.30 75 1.1 christos ENTRY_END 76 1.1 christos RANGE_END 77 1.1 christos 78 1.1 christos ; a.gtld-servers.net. 79 1.1 christos RANGE_BEGIN 0 100 80 1.1 christos ADDRESS 192.5.6.30 81 1.1 christos ENTRY_BEGIN 82 1.1 christos MATCH opcode qtype qname 83 1.1 christos ADJUST copy_id 84 1.1 christos REPLY QR NOERROR 85 1.1 christos SECTION QUESTION 86 1.1 christos com. IN NS 87 1.1 christos SECTION ANSWER 88 1.1 christos com. IN NS a.gtld-servers.net. 89 1.1 christos SECTION ADDITIONAL 90 1.1 christos a.gtld-servers.net. IN A 192.5.6.30 91 1.1 christos ENTRY_END 92 1.1 christos 93 1.1 christos ENTRY_BEGIN 94 1.1 christos MATCH opcode subdomain 95 1.1 christos ADJUST copy_id copy_query 96 1.1 christos REPLY QR NOERROR 97 1.1 christos SECTION QUESTION 98 1.1 christos example.com. IN NS 99 1.1 christos SECTION AUTHORITY 100 1.1 christos example.com. IN NS ns.example.com. 101 1.1 christos SECTION ADDITIONAL 102 1.1 christos ns.example.com. IN A 1.2.3.44 103 1.1 christos ENTRY_END 104 1.1 christos RANGE_END 105 1.1 christos 106 1.1 christos ; ns.example.net. 107 1.1 christos RANGE_BEGIN 0 100 108 1.1 christos ADDRESS 1.2.3.44 109 1.1 christos ENTRY_BEGIN 110 1.1 christos MATCH opcode qtype qname 111 1.1 christos ADJUST copy_id 112 1.1 christos REPLY QR NOERROR 113 1.1 christos SECTION QUESTION 114 1.1 christos example.net. IN NS 115 1.1 christos SECTION ANSWER 116 1.1 christos example.net. IN NS ns.example.net. 117 1.1 christos SECTION ADDITIONAL 118 1.1 christos ns.example.net. IN A 1.2.3.44 119 1.1 christos ENTRY_END 120 1.1 christos 121 1.1 christos ENTRY_BEGIN 122 1.1 christos MATCH opcode qtype qname 123 1.1 christos ADJUST copy_id 124 1.1 christos REPLY QR NOERROR 125 1.1 christos SECTION QUESTION 126 1.1 christos ns.example.net. IN A 127 1.1 christos SECTION ANSWER 128 1.1 christos ns.example.net. IN A 1.2.3.44 129 1.1 christos SECTION AUTHORITY 130 1.1 christos example.net. IN NS ns.example.net. 131 1.1 christos ENTRY_END 132 1.1 christos 133 1.1 christos ENTRY_BEGIN 134 1.1 christos MATCH opcode qtype qname 135 1.1 christos ADJUST copy_id 136 1.1 christos REPLY QR NOERROR 137 1.1 christos SECTION QUESTION 138 1.1 christos ns.example.net. IN AAAA 139 1.1 christos SECTION AUTHORITY 140 1.1 christos example.net. IN NS ns.example.net. 141 1.1 christos SECTION ADDITIONAL 142 1.1 christos www.example.net. IN A 1.2.3.44 143 1.1 christos ENTRY_END 144 1.1 christos 145 1.1 christos ENTRY_BEGIN 146 1.1 christos MATCH opcode qtype qname 147 1.1 christos ADJUST copy_id 148 1.1 christos REPLY QR NOERROR 149 1.1 christos SECTION QUESTION 150 1.1 christos example.com. IN NS 151 1.1 christos SECTION ANSWER 152 1.1 christos example.com. IN NS ns.example.net. 153 1.1 christos ENTRY_END 154 1.1 christos 155 1.1 christos ENTRY_BEGIN 156 1.1 christos MATCH opcode qtype qname 157 1.1 christos ADJUST copy_id 158 1.1 christos REPLY QR NOERROR 159 1.1 christos SECTION QUESTION 160 1.1 christos www.example.com. IN A 161 1.1 christos SECTION ANSWER 162 1.1 christos www.example.com. IN A 10.20.30.40 163 1.1 christos ENTRY_END 164 1.1 christos RANGE_END 165 1.1 christos 166 1.1 christos STEP 1 QUERY 167 1.1 christos ENTRY_BEGIN 168 1.1 christos REPLY RD 169 1.1 christos SECTION QUESTION 170 1.1 christos www.example.com. IN A 171 1.1 christos ENTRY_END 172 1.1 christos 173 1.1 christos ; recursion happens here. 174 1.1 christos STEP 20 CHECK_ANSWER 175 1.1 christos ENTRY_BEGIN 176 1.1 christos MATCH all 177 1.1 christos REPLY QR RD RA NOERROR 178 1.1 christos SECTION QUESTION 179 1.1 christos www.example.com. IN A 180 1.1 christos SECTION ANSWER 181 1.1 christos www.example.com. IN A 127.0.0.1 182 1.1 christos ENTRY_END 183 1.1 christos 184 1.1 christos SCENARIO_END 185