| 1 | ; $Cambridge: exim/test/dnszones-src/db.test.ex,v 1.1 2006/02/06 16:22:56 ph10 Exp $ |
| 2 | |
| 3 | ; This is a testing zone file for use when testing DNS handling in Exim. This |
| 4 | ; is a fake zone of no real use - hence no SOA record. The zone name is |
| 5 | ; test.ex. This file is passed through the substitution mechanism before being |
| 6 | ; used by the fakens auxiliary program. This inserts the actual IP addresses |
| 7 | ; of the local host into the zone. |
| 8 | |
| 9 | ; NOTE (1): apart from ::1, IPv6 addresses must always have 8 components. Do |
| 10 | ; not abbreviate them by using the :: feature. Leading zeros in components may, |
| 11 | ; however, be omitted. |
| 12 | |
| 13 | ; NOTE (2): the fakens program is very simple and assumes that the buffer into |
| 14 | ; which is puts the response is always going to be big enough. In other words, |
| 15 | ; the expectation is for just a few RRs for each query. |
| 16 | |
| 17 | ; NOTE (3): the top-level networks for testing addresses are parameterized by |
| 18 | ; the use of V4NET and V6NET. These networks should be such that no real |
| 19 | ; host ever uses them. |
| 20 | |
| 21 | test.ex. NS exim.test.ex. |
| 22 | |
| 23 | test.ex. TXT "A TXT record for test.ex." |
| 24 | |
| 25 | cname CNAME test.ex. |
| 26 | |
| 27 | ptr PTR data.for.ptr.test.ex. |
| 28 | |
| 29 | ; Standard localhost handling |
| 30 | |
| 31 | localhost A 127.0.0.1 |
| 32 | localhost AAAA ::1 |
| 33 | |
| 34 | ; This name exists only if qualified; it is never automatically qualified |
| 35 | |
| 36 | dontqualify A V4NET.255.255.254 |
| 37 | |
| 38 | ; A host with upper case letters in its canonical name |
| 39 | |
| 40 | UpperCase A 127.0.0.1 |
| 41 | |
| 42 | ; A host with UTF-8 characters in its name |
| 43 | |
| 44 | mx.π A V4NET.255.255.255 |
| 45 | |
| 46 | ; A non-standard name for localhost |
| 47 | |
| 48 | thishost A 127.0.0.1 |
| 49 | |
| 50 | ; Another host with both A and AAAA records |
| 51 | |
| 52 | 46 A V4NET.0.0.4 |
| 53 | AAAA V6NET:ffff:836f:0a00:000a:0800:200a:c031 |
| 54 | |
| 55 | ; And another |
| 56 | |
| 57 | 46b A V4NET.0.0.5 |
| 58 | AAAA V6NET:ffff:836f:0a00:000a:0800:200a:c033 |
| 59 | |
| 60 | ; A working IPv4 address and a non-working IPv6 address, with different |
| 61 | ; names so they can have different MX values |
| 62 | |
| 63 | 46c AAAA V6NET:ffff:836f:0a00:000a:0800:200a:c033 |
| 64 | 46d A HOSTIPV4 |
| 65 | |
| 66 | ; A host with just a non-local IPv6 address |
| 67 | |
| 68 | v6 AAAA V6NET:ffff:836f:0a00:000a:0800:200a:c032 |
| 69 | |
| 70 | ; Alias A and CNAME records for the local host, under the name "eximtesthost" |
| 71 | |
| 72 | eximtesthost A HOSTIPV4 |
| 73 | alias-eximtesthost CNAME eximtesthost.test.ex. |
| 74 | |
| 75 | ; A bad CNAME |
| 76 | |
| 77 | badcname CNAME rhubarb.test.ex. |
| 78 | |
| 79 | ; Test a name containing an underscore |
| 80 | |
| 81 | a_b A 99.99.99.99 |
| 82 | |
| 83 | ; The reverse registration for this name is an empty string |
| 84 | |
| 85 | empty A V4NET.255.255.255 |
| 86 | |
| 87 | ; Some IPv6 stuff |
| 88 | |
| 89 | eximtesthost.ipv6 AAAA HOSTIPV6 |
| 90 | test2.ipv6 AAAA V6NET:2101:12:1:a00:20ff:fe86:a062 |
| 91 | test3.ipv6 AAAA V6NET:1234:5:6:7:8:abc:0d |
| 92 | |
| 93 | ; A case of forward and backward pointers disagreeing |
| 94 | |
| 95 | badA A V4NET.99.99.99 |
| 96 | badB A V4NET.99.99.98 |
| 97 | |
| 98 | ; A host with multiple names in different (sub) domains |
| 99 | ; These are intended to be within test.ex - absence of final dots is deliberate |
| 100 | |
| 101 | x.gov.uk A V4NET.99.99.97 |
| 102 | x.co.uk A V4NET.99.99.97 |
| 103 | |
| 104 | ; A host, the reverse lookup of whose IP address gives this name plus another |
| 105 | ; that does not forward resolve to the same address |
| 106 | |
| 107 | oneback A V4NET.99.99.90 |
| 108 | host1.masq A V4NET.90.90.90 |
| 109 | |
| 110 | ; Fake hosts are registered in the V4NET.0.0.0 subnet. In the past, the |
| 111 | ; 10.0.0.0/8 network was used; hence the names of the hosts. |
| 112 | |
| 113 | ten-1 A V4NET.0.0.1 |
| 114 | ten-2 A V4NET.0.0.2 |
| 115 | ten-3 A V4NET.0.0.3 |
| 116 | ten-3-alias A V4NET.0.0.3 |
| 117 | ten-3xtra A V4NET.0.0.3 |
| 118 | ten-4 A V4NET.0.0.4 |
| 119 | ten-5 A V4NET.0.0.5 |
| 120 | ten-6 A V4NET.0.0.6 |
| 121 | ten-5-6 A V4NET.0.0.5 |
| 122 | A V4NET.0.0.6 |
| 123 | |
| 124 | ten-99 A V4NET.0.0.99 |
| 125 | |
| 126 | black-1 A V4NET.11.12.13 |
| 127 | black-2 A V4NET.11.12.14 |
| 128 | |
| 129 | myhost A V4NET.10.10.10 |
| 130 | myhost2 A V4NET.10.10.10 |
| 131 | |
| 132 | other1 A V4NET.12.4.5 |
| 133 | other2 A V4NET.12.3.1 |
| 134 | A V4NET.12.3.2 |
| 135 | |
| 136 | other99 A V4NET.99.0.1 |
| 137 | |
| 138 | testsub.sub A V4NET.99.0.3 |
| 139 | |
| 140 | ; This one's real name really is recurse.test.ex.test.ex. It is done like |
| 141 | ; this for testing host widening, without getting tangled up in qualify issues. |
| 142 | |
| 143 | recurse.test.ex A V4NET.99.0.2 |
| 144 | |
| 145 | ; -------- Testing RBL records ------- |
| 146 | |
| 147 | ; V4NET.11.12.13 is deliberately not reverse-registered |
| 148 | |
| 149 | 13.12.11.V4NET.rbl A 127.0.0.2 |
| 150 | TXT "This is a test blacklisting message" |
| 151 | 14.12.11.V4NET.rbl A 127.0.0.2 |
| 152 | TXT "This is a test blacklisting message" |
| 153 | 15.12.11.V4NET.rbl A 127.0.0.2 |
| 154 | TXT "This is a very long blacklisting message, continuing for ages and ages and certainly being longer than 128 characters which was a previous limit on the length that Exim was prepared to handle." |
| 155 | |
| 156 | 14.12.11.V4NET.rbl2 A 127.0.0.2 |
| 157 | TXT "This is a test blacklisting2 message" |
| 158 | 16.12.11.V4NET.rbl2 A 127.0.0.2 |
| 159 | TXT "This is a test blacklisting2 message" |
| 160 | |
| 161 | 14.12.11.V4NET.rbl3 A 127.0.0.2 |
| 162 | TXT "This is a test blacklisting3 message" |
| 163 | 15.12.11.V4NET.rbl3 A 127.0.0.3 |
| 164 | TXT "This is a very long blacklisting message, continuing for ages and ages and certainly being longer than 128 characters which was a previous limit on the length that Exim was prepared to handle." |
| 165 | |
| 166 | 20.12.11.V4NET.rbl4 A 127.0.0.6 |
| 167 | 21.12.11.V4NET.rbl4 A 127.0.0.7 |
| 168 | |
| 169 | 1.13.13.V4NET.rbl CNAME non-exist.test.ex. |
| 170 | 2.13.13.V4NET.rbl A 127.0.0.1 |
| 171 | A 127.0.0.2 |
| 172 | |
| 173 | ; -------- Testing MX records -------- |
| 174 | |
| 175 | mxcased MX 5 ten-99.TEST.EX. |
| 176 | |
| 177 | ; Points to a host with both A and AAAA |
| 178 | |
| 179 | mx46 MX 46 46.test.ex. |
| 180 | |
| 181 | ; Points to two hosts with both kinds of address, equal precedence |
| 182 | |
| 183 | mx4646 MX 46 46.test.ex. |
| 184 | MX 46 46b.test.ex. |
| 185 | |
| 186 | ; Ditto, with a third IPv6 host |
| 187 | |
| 188 | mx46466 MX 46 46.test.ex. |
| 189 | MX 46 46b.test.ex. |
| 190 | MX 46 v6.test.ex. |
| 191 | |
| 192 | ; Points to a host with a working IPv4 and a non-working IPv6 record |
| 193 | |
| 194 | mx46cd MX 10 46c.test.ex. |
| 195 | MX 11 46d.test.ex. |
| 196 | |
| 197 | ; Two equal precedence pointing to a v4 and a v6 host |
| 198 | |
| 199 | mx246 MX 10 v6.test.ex. |
| 200 | MX 10 ten-1.test.ex. |
| 201 | |
| 202 | ; Lowest-numbered points to local host |
| 203 | |
| 204 | mxt1 MX 5 eximtesthost.test.ex. |
| 205 | |
| 206 | ; Points only to non-existent hosts |
| 207 | |
| 208 | mxt2 MX 5 not-exist.test.ex. |
| 209 | |
| 210 | ; Points to some non-existent hosts; |
| 211 | ; Lowest numbered existing points to local host |
| 212 | |
| 213 | mxt3 MX 5 not-exist.test.ex. |
| 214 | MX 6 eximtesthost.test.ex. |
| 215 | |
| 216 | ; Points to some non-existent hosts; |
| 217 | ; Lowest numbered existing points to non-local host |
| 218 | |
| 219 | mxt3r MX 5 not-exist.test.ex. |
| 220 | MX 6 exim.org. |
| 221 | |
| 222 | ; Points to an alias |
| 223 | |
| 224 | mxt4 MX 5 alias-eximtesthost.test.ex. |
| 225 | |
| 226 | ; Various combinations of precedence and local host |
| 227 | |
| 228 | mxt5 MX 5 eximtesthost.test.ex. |
| 229 | MX 5 ten-1.test.ex. |
| 230 | |
| 231 | mxt6 MX 5 ten-1.test.ex. |
| 232 | MX 6 eximtesthost.test.ex. |
| 233 | MX 6 ten-2.test.ex. |
| 234 | |
| 235 | mxt7 MX 5 ten-2.test.ex. |
| 236 | MX 6 ten-3.test.ex. |
| 237 | MX 7 eximtesthost.test.ex. |
| 238 | MX 8 ten-1.test.ex. |
| 239 | |
| 240 | mxt8 MX 5 ten-2.test.ex. |
| 241 | MX 6 ten-3.test.ex. |
| 242 | MX 7 eximtesthost.test.ex. |
| 243 | MX 7 ten-4.test.ex. |
| 244 | MX 8 ten-1.test.ex. |
| 245 | |
| 246 | ; Same host appearing twice; make some variants in different orders to |
| 247 | ; simulate a real nameserver and its round robinning |
| 248 | |
| 249 | mxt9 MX 5 ten-1.test.ex. |
| 250 | MX 6 ten-2.test.ex. |
| 251 | MX 7 ten-3.test.ex. |
| 252 | MX 8 ten-1.test.ex. |
| 253 | |
| 254 | mxt9a MX 6 ten-2.test.ex. |
| 255 | MX 7 ten-3.test.ex. |
| 256 | MX 8 ten-1.test.ex. |
| 257 | MX 5 ten-1.test.ex. |
| 258 | |
| 259 | mxt9b MX 7 ten-3.test.ex. |
| 260 | MX 8 ten-1.test.ex. |
| 261 | MX 5 ten-1.test.ex. |
| 262 | MX 6 ten-2.test.ex. |
| 263 | |
| 264 | ; MX pointing to IP address |
| 265 | |
| 266 | mxt10 MX 5 V4NET.0.0.1. |
| 267 | |
| 268 | ; Several MXs pointing to local host |
| 269 | |
| 270 | mxt11 MX 5 localhost.test.ex. |
| 271 | MX 6 localhost.test.ex. |
| 272 | |
| 273 | mxt11a MX 5 localhost.test.ex. |
| 274 | MX 6 ten-1.test.ex. |
| 275 | |
| 276 | mxt12 MX 5 local1.test.ex. |
| 277 | MX 6 local2.test.ex. |
| 278 | |
| 279 | local1 A 127.0.0.2 |
| 280 | local2 A 127.0.0.2 |
| 281 | |
| 282 | ; Some more |
| 283 | |
| 284 | mxt13 MX 4 other1.test.ex. |
| 285 | MX 5 other2.test.ex. |
| 286 | |
| 287 | ; Different hosts with same IP addresses in the list |
| 288 | |
| 289 | mxt14 MX 4 ten-5-6.test.ex. |
| 290 | MX 5 ten-5.test.ex. |
| 291 | MX 6 ten-6.test.ex. |
| 292 | |
| 293 | ; Large number of IP addresses at one MX value, and then some |
| 294 | ; at another, to check that hosts_max_try tries the MX different |
| 295 | ; values if it can. |
| 296 | |
| 297 | mxt99 MX 1 ten-1.test.ex. |
| 298 | MX 1 ten-2.test.ex. |
| 299 | MX 1 ten-3.test.ex. |
| 300 | MX 1 ten-4.test.ex. |
| 301 | MX 1 ten-5.test.ex. |
| 302 | MX 1 ten-6.test.ex. |
| 303 | MX 3 black-1.test.ex. |
| 304 | MX 3 black-2.test.ex. |
| 305 | |
| 306 | ; Special case test for @mx_any (to doublecheck a reported Exim 3 bug isn't |
| 307 | ; in Exim 4). The MX points to two names, each with multiple addresses. The |
| 308 | ; very last address is the local host. When Exim is testing, it will sort |
| 309 | ; these addresses into ascending order. |
| 310 | |
| 311 | mxt98 MX 1 98-1.test.ex. |
| 312 | MX 2 98-2.test.ex. |
| 313 | |
| 314 | 98-1 A V4NET.1.2.3 |
| 315 | A V4NET.4.5.6 |
| 316 | |
| 317 | 98-2 A V4NET.7.8.9 |
| 318 | A HOSTIPV4 |
| 319 | |
| 320 | ; IP addresses with the same MX value |
| 321 | |
| 322 | mxt97 MX 1 ten-1.test.ex. |
| 323 | MX 1 ten-2.test.ex. |
| 324 | MX 1 ten-3.test.ex. |
| 325 | MX 1 ten-4.test.ex. |
| 326 | |
| 327 | ; MX pointing to a single-component name that exists if qualified, but not |
| 328 | ; if not. We use the special name dontqualify to stop the fake resolver |
| 329 | ; qualifying it. |
| 330 | |
| 331 | mxt1c MX 1 dontqualify. |
| 332 | |
| 333 | ; MX with UTF-8 characters in its name |
| 334 | |
| 335 | π MX 0 mx.π.test.ex. |
| 336 | |
| 337 | ; -------- Testing SRV records -------- |
| 338 | |
| 339 | _smtp._tcp.srv01 SRV 0 0 25 ten-1.test.ex. |
| 340 | |
| 341 | _smtp._tcp.srv02 SRV 1 3 99 ten-1.test.ex. |
| 342 | SRV 1 1 99 ten-2.test.ex. |
| 343 | SRV 3 0 66 ten-3.test.ex. |
| 344 | |
| 345 | _smtp._tcp.nosmtp SRV 0 0 0 . |
| 346 | |
| 347 | _smtp2._tcp.srv03 SRV 0 0 88 ten-4.test.ex. |
| 348 | |
| 349 | _smtp._tcp.srv27 SRV 0 0 PORT_S localhost |
| 350 | |
| 351 | |
| 352 | ; -------- With some for CSA testing plus their A records ------- |
| 353 | |
| 354 | _client._smtp.csa1 SRV 1 2 0 csa1.test.ex. |
| 355 | _client._smtp.csa2 SRV 1 1 0 csa2.test.ex. |
| 356 | |
| 357 | csa1 A V4NET.9.8.7 |
| 358 | csa2 A V4NET.9.8.8 |
| 359 | |
| 360 | ; End |