Omit spaces between name and colon in header syntax verify error
[exim.git] / test / dnszones-src / db.test.ex
CommitLineData
c55a77db
PH
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
21test.ex. NS exim.test.ex.
22
23test.ex. TXT "A TXT record for test.ex."
24
25cname CNAME test.ex.
26
27ptr PTR data.for.ptr.test.ex.
28
29; Standard localhost handling
30
31localhost A 127.0.0.1
32localhost AAAA ::1
33
34; This name exists only if qualified; it is never automatically qualified
35
36dontqualify A V4NET.255.255.254
37
38; A host with upper case letters in its canonical name
39
40UpperCase A 127.0.0.1
41
42; A host with UTF-8 characters in its name
43
44mx.π A V4NET.255.255.255
45
46; A non-standard name for localhost
47
48thishost A 127.0.0.1
49
50; Another host with both A and AAAA records
51
5246 A V4NET.0.0.4
53 AAAA V6NET:ffff:836f:0a00:000a:0800:200a:c031
54
55; And another
56
5746b 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
6346c AAAA V6NET:ffff:836f:0a00:000a:0800:200a:c033
6446d A HOSTIPV4
65
66; A host with just a non-local IPv6 address
67
68v6 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
72eximtesthost A HOSTIPV4
73alias-eximtesthost CNAME eximtesthost.test.ex.
74
75; A bad CNAME
76
77badcname CNAME rhubarb.test.ex.
78
79; Test a name containing an underscore
80
81a_b A 99.99.99.99
82
83; The reverse registration for this name is an empty string
84
85empty A V4NET.255.255.255
86
87; Some IPv6 stuff
88
89eximtesthost.ipv6 AAAA HOSTIPV6
90test2.ipv6 AAAA V6NET:2101:12:1:a00:20ff:fe86:a062
91test3.ipv6 AAAA V6NET:1234:5:6:7:8:abc:0d
92
93; A case of forward and backward pointers disagreeing
94
95badA A V4NET.99.99.99
96badB 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
101x.gov.uk A V4NET.99.99.97
102x.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
107oneback A V4NET.99.99.90
108host1.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
113ten-1 A V4NET.0.0.1
114ten-2 A V4NET.0.0.2
115ten-3 A V4NET.0.0.3
116ten-3-alias A V4NET.0.0.3
117ten-3xtra A V4NET.0.0.3
118ten-4 A V4NET.0.0.4
119ten-5 A V4NET.0.0.5
120ten-6 A V4NET.0.0.6
121ten-5-6 A V4NET.0.0.5
122 A V4NET.0.0.6
123
124ten-99 A V4NET.0.0.99
125
126black-1 A V4NET.11.12.13
127black-2 A V4NET.11.12.14
128
129myhost A V4NET.10.10.10
130myhost2 A V4NET.10.10.10
131
132other1 A V4NET.12.4.5
133other2 A V4NET.12.3.1
134 A V4NET.12.3.2
135
136other99 A V4NET.99.0.1
137
138testsub.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
143recurse.test.ex A V4NET.99.0.2
144
145; -------- Testing RBL records -------
146
147; V4NET.11.12.13 is deliberately not reverse-registered
148
14913.12.11.V4NET.rbl A 127.0.0.2
150 TXT "This is a test blacklisting message"
15114.12.11.V4NET.rbl A 127.0.0.2
152 TXT "This is a test blacklisting message"
15315.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
15614.12.11.V4NET.rbl2 A 127.0.0.2
157 TXT "This is a test blacklisting2 message"
15816.12.11.V4NET.rbl2 A 127.0.0.2
159 TXT "This is a test blacklisting2 message"
160
16114.12.11.V4NET.rbl3 A 127.0.0.2
162 TXT "This is a test blacklisting3 message"
16315.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
16620.12.11.V4NET.rbl4 A 127.0.0.6
16721.12.11.V4NET.rbl4 A 127.0.0.7
168
1691.13.13.V4NET.rbl CNAME non-exist.test.ex.
1702.13.13.V4NET.rbl A 127.0.0.1
171 A 127.0.0.2
172
173; -------- Testing MX records --------
174
175mxcased MX 5 ten-99.TEST.EX.
176
177; Points to a host with both A and AAAA
178
179mx46 MX 46 46.test.ex.
180
181; Points to two hosts with both kinds of address, equal precedence
182
183mx4646 MX 46 46.test.ex.
184 MX 46 46b.test.ex.
185
186; Ditto, with a third IPv6 host
187
188mx46466 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
194mx46cd 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
199mx246 MX 10 v6.test.ex.
200 MX 10 ten-1.test.ex.
201
202; Lowest-numbered points to local host
203
204mxt1 MX 5 eximtesthost.test.ex.
205
206; Points only to non-existent hosts
207
208mxt2 MX 5 not-exist.test.ex.
209
210; Points to some non-existent hosts;
211; Lowest numbered existing points to local host
212
213mxt3 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
219mxt3r MX 5 not-exist.test.ex.
220 MX 6 exim.org.
221
222; Points to an alias
223
224mxt4 MX 5 alias-eximtesthost.test.ex.
225
226; Various combinations of precedence and local host
227
228mxt5 MX 5 eximtesthost.test.ex.
229 MX 5 ten-1.test.ex.
230
231mxt6 MX 5 ten-1.test.ex.
232 MX 6 eximtesthost.test.ex.
233 MX 6 ten-2.test.ex.
234
235mxt7 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
240mxt8 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
249mxt9 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
254mxt9a 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
259mxt9b 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
266mxt10 MX 5 V4NET.0.0.1.
267
268; Several MXs pointing to local host
269
270mxt11 MX 5 localhost.test.ex.
271 MX 6 localhost.test.ex.
272
273mxt11a MX 5 localhost.test.ex.
274 MX 6 ten-1.test.ex.
275
276mxt12 MX 5 local1.test.ex.
277 MX 6 local2.test.ex.
278
279local1 A 127.0.0.2
280local2 A 127.0.0.2
281
282; Some more
283
284mxt13 MX 4 other1.test.ex.
285 MX 5 other2.test.ex.
286
287; Different hosts with same IP addresses in the list
288
289mxt14 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
297mxt99 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
311mxt98 MX 1 98-1.test.ex.
312 MX 2 98-2.test.ex.
313
31498-1 A V4NET.1.2.3
315 A V4NET.4.5.6
316
31798-2 A V4NET.7.8.9
318 A HOSTIPV4
319
320; IP addresses with the same MX value
321
322mxt97 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
331mxt1c 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
357csa1 A V4NET.9.8.7
358csa2 A V4NET.9.8.8
359
360; End