1 ; $Cambridge: exim/test/dnszones-src/db.test.ex,v 1.5 2006/10/03 15:11:22 ph10 Exp $
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.
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.
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.
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.
21 test.ex. NS exim.test.ex.
23 test.ex. TXT "A TXT record for test.ex."
24 s/lash TXT "A TXT record for s/lash.test.ex."
28 ptr PTR data.for.ptr.test.ex.
30 ; Standard localhost handling
35 ; This name exists only if qualified; it is never automatically qualified
37 dontqualify A V4NET.255.255.254
39 ; A host with upper case letters in its canonical name
43 ; A host with UTF-8 characters in its name
45 mx.π A V4NET.255.255.255
47 ; A non-standard name for localhost
51 ; Something that gives both the IP and the loopback
56 ; Something that gives an unreachable IP and the loopback
61 ; Another host with both A and AAAA records
64 AAAA V6NET:ffff:836f:0a00:000a:0800:200a:c031
69 AAAA V6NET:ffff:836f:0a00:000a:0800:200a:c033
71 ; A working IPv4 address and a non-working IPv6 address, with different
72 ; names so they can have different MX values
74 46c AAAA V6NET:ffff:836f:0a00:000a:0800:200a:c033
77 ; A host with just a non-local IPv6 address
79 v6 AAAA V6NET:ffff:836f:0a00:000a:0800:200a:c032
81 ; Alias A and CNAME records for the local host, under the name "eximtesthost"
83 eximtesthost A HOSTIPV4
84 alias-eximtesthost CNAME eximtesthost.test.ex.
88 badcname CNAME rhubarb.test.ex.
90 ; Test a name containing an underscore
94 ; The reverse registration for this name is an empty string
96 empty A V4NET.255.255.255
100 eximtesthost.ipv6 AAAA HOSTIPV6
101 test2.ipv6 AAAA V6NET:2101:12:1:a00:20ff:fe86:a062
102 test3.ipv6 AAAA V6NET:1234:5:6:7:8:abc:0d
104 ; A case of forward and backward pointers disagreeing
106 badA A V4NET.99.99.99
107 badB A V4NET.99.99.98
109 ; A host with multiple names in different (sub) domains
110 ; These are intended to be within test.ex - absence of final dots is deliberate
112 x.gov.uk A V4NET.99.99.97
113 x.co.uk A V4NET.99.99.97
115 ; A host, the reverse lookup of whose IP address gives this name plus another
116 ; that does not forward resolve to the same address
118 oneback A V4NET.99.99.90
119 host1.masq A V4NET.90.90.90
121 ; Fake hosts are registered in the V4NET.0.0.0 subnet. In the past, the
122 ; 10.0.0.0/8 network was used; hence the names of the hosts.
127 ten-3-alias A V4NET.0.0.3
128 ten-3xtra A V4NET.0.0.3
132 ten-5-6 A V4NET.0.0.5
135 ten-99 A V4NET.0.0.99
137 black-1 A V4NET.11.12.13
138 black-2 A V4NET.11.12.14
140 myhost A V4NET.10.10.10
141 myhost2 A V4NET.10.10.10
143 other1 A V4NET.12.4.5
144 other2 A V4NET.12.3.1
147 other99 A V4NET.99.0.1
149 testsub.sub A V4NET.99.0.3
151 ; This one's real name really is recurse.test.ex.test.ex. It is done like
152 ; this for testing host widening, without getting tangled up in qualify issues.
154 recurse.test.ex A V4NET.99.0.2
156 ; -------- Testing RBL records -------
158 ; V4NET.11.12.13 is deliberately not reverse-registered
160 13.12.11.V4NET.rbl A 127.0.0.2
161 TXT "This is a test blacklisting message"
162 14.12.11.V4NET.rbl A 127.0.0.2
163 TXT "This is a test blacklisting message"
164 15.12.11.V4NET.rbl A 127.0.0.2
165 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."
167 14.12.11.V4NET.rbl2 A 127.0.0.2
168 TXT "This is a test blacklisting2 message"
169 16.12.11.V4NET.rbl2 A 127.0.0.2
170 TXT "This is a test blacklisting2 message"
172 14.12.11.V4NET.rbl3 A 127.0.0.2
173 TXT "This is a test blacklisting3 message"
174 15.12.11.V4NET.rbl3 A 127.0.0.3
175 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."
177 20.12.11.V4NET.rbl4 A 127.0.0.6
178 21.12.11.V4NET.rbl4 A 127.0.0.7
179 22.12.11.V4NET.rbl4 A 127.0.0.128
180 TXT "This is a test blacklisting4 message"
182 22.12.11.V4NET.rbl5 A 127.0.0.1
183 TXT "This is a test blacklisting5 message"
185 1.13.13.V4NET.rbl CNAME non-exist.test.ex.
186 2.13.13.V4NET.rbl A 127.0.0.1
189 ; -------- Testing MX records --------
191 mxcased MX 5 ten-99.TEST.EX.
193 ; Points to a host with both A and AAAA
195 mx46 MX 46 46.test.ex.
197 ; Points to two hosts with both kinds of address, equal precedence
199 mx4646 MX 46 46.test.ex.
202 ; Ditto, with a third IPv6 host
204 mx46466 MX 46 46.test.ex.
208 ; This time, change precedence
210 mx46466b MX 46 46.test.ex.
214 ; Points to a host with a working IPv4 and a non-working IPv6 record
216 mx46cd MX 10 46c.test.ex.
219 ; Two equal precedence pointing to a v4 and a v6 host
221 mx246 MX 10 v6.test.ex.
224 ; Lowest-numbered points to local host
226 mxt1 MX 5 eximtesthost.test.ex.
228 ; Points only to non-existent hosts
230 mxt2 MX 5 not-exist.test.ex.
232 ; Points to some non-existent hosts;
233 ; Lowest numbered existing points to local host
235 mxt3 MX 5 not-exist.test.ex.
236 MX 6 eximtesthost.test.ex.
238 ; Points to some non-existent hosts;
239 ; Lowest numbered existing points to non-local host
241 mxt3r MX 5 not-exist.test.ex.
246 mxt4 MX 5 alias-eximtesthost.test.ex.
248 ; Various combinations of precedence and local host
250 mxt5 MX 5 eximtesthost.test.ex.
253 mxt6 MX 5 ten-1.test.ex.
254 MX 6 eximtesthost.test.ex.
257 mxt7 MX 5 ten-2.test.ex.
259 MX 7 eximtesthost.test.ex.
262 mxt8 MX 5 ten-2.test.ex.
264 MX 7 eximtesthost.test.ex.
268 ; Same host appearing twice; make some variants in different orders to
269 ; simulate a real nameserver and its round robinning
271 mxt9 MX 5 ten-1.test.ex.
276 mxt9a MX 6 ten-2.test.ex.
281 mxt9b MX 7 ten-3.test.ex.
286 ; MX pointing to IP address
288 mxt10 MX 5 V4NET.0.0.1.
290 ; Several MXs pointing to local host
292 mxt11 MX 5 localhost.test.ex.
293 MX 6 localhost.test.ex.
295 mxt11a MX 5 localhost.test.ex.
298 mxt12 MX 5 local1.test.ex.
306 mxt13 MX 4 other1.test.ex.
309 ; Different hosts with same IP addresses in the list
311 mxt14 MX 4 ten-5-6.test.ex.
315 ; Large number of IP addresses at one MX value, and then some
316 ; at another, to check that hosts_max_try tries the MX different
319 mxt99 MX 1 ten-1.test.ex.
325 MX 3 black-1.test.ex.
326 MX 3 black-2.test.ex.
328 ; Special case test for @mx_any (to doublecheck a reported Exim 3 bug isn't
329 ; in Exim 4). The MX points to two names, each with multiple addresses. The
330 ; very last address is the local host. When Exim is testing, it will sort
331 ; these addresses into ascending order.
333 mxt98 MX 1 98-1.test.ex.
342 ; IP addresses with the same MX value
344 mxt97 MX 1 ten-1.test.ex.
349 ; MX pointing to a single-component name that exists if qualified, but not
350 ; if not. We use the special name dontqualify to stop the fake resolver
353 mxt1c MX 1 dontqualify.
355 ; MX with UTF-8 characters in its name
359 ; -------- Testing SRV records --------
361 _smtp._tcp.srv01 SRV 0 0 25 ten-1.test.ex.
363 _smtp._tcp.srv02 SRV 1 3 99 ten-1.test.ex.
364 SRV 1 1 99 ten-2.test.ex.
365 SRV 3 0 66 ten-3.test.ex.
367 _smtp._tcp.nosmtp SRV 0 0 0 .
369 _smtp2._tcp.srv03 SRV 0 0 88 ten-4.test.ex.
371 _smtp._tcp.srv27 SRV 0 0 PORT_S localhost
374 ; -------- With some for CSA testing plus their A records -------
376 _client._smtp.csa1 SRV 1 2 0 csa1.test.ex.
377 _client._smtp.csa2 SRV 1 1 0 csa2.test.ex.