Lookups: Fix dnsdb lookup of multi-chunk TXT. Bug 3054
[exim.git] / test / dnszones-src / db.test.ex
1 ; This is a testing zone file for use when testing DNS handling in Exim. This
2 ; is a fake zone of no real use. The zone name is
3 ; test.ex. This file is passed through the substitution mechanism before being
4 ; used by the fakens auxiliary program. This inserts the actual IP addresses
5 ; of the local host into the zone.
6
7 ; NOTE (1): apart from ::1, IPv6 addresses must always have 8 components. Do
8 ; not abbreviate them by using the :: feature. Leading zeros in components may,
9 ; however, be omitted.
10
11 ; NOTE (2): the fakens program is very simple and assumes that the buffer into
12 ; which is puts the response is always going to be big enough. In other words,
13 ; the expectation is for just a few RRs for each query.
14
15 ; NOTE (3): the top-level networks for testing addresses are parameterized by
16 ; the use of V4NET and V6NET. These networks should be such that no real
17 ; host ever uses them.
18 ;
19 ; Several prefixes may be used, see the source in src/fakens.c for a complete list
20 ; and description.
21
22 test.ex.     NS      exim.test.ex.
23 test.ex.     SOA     exim.test.ex. hostmaster.exim.test.ex 1430683638 1200 120 604800 3000
24
25 test.ex.     TXT     "A TXT record for test.ex."
26 s/lash       TXT     "A TXT record for s/lash.test.ex."
27 long         TXT     "This is a max-length chunk 789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234" "A short chunk" "A final chunk"
28
29 cname        CNAME   test.ex.
30
31 ptr          PTR     data.for.ptr.test.ex.
32
33 ; Standard localhost handling
34
35 localhost    A       127.0.0.1
36 localhost    AAAA    ::1
37
38 ; This name exists only if qualified; it is never automatically qualified
39
40 dontqualify  A       V4NET.255.255.254
41
42 ; A host with upper case letters in its canonical name
43
44 UpperCase    A       127.0.0.1
45
46 ; A host with punycoded UTF-8 characters used for its lookup ( mx.π.test.ex )
47
48 mx.xn--1xa         A       V4NET.255.255.255
49
50 ; A non-standard name for localhost
51
52 thishost     A       127.0.0.1
53 localhost4   A       127.0.0.1
54
55 ; A localhost with short TTL
56
57 TTL=2 shorthost A    127.0.0.1
58
59
60 ; Something that gives both the IP and the loopback
61
62 thisloop     A       HOSTIPV4
63              A       127.0.0.1
64
65 ; Something that gives an unreachable IP and the loopback
66
67 badloop      A       V4NET.0.0.1
68              A       127.0.0.1
69
70 ; Another host with both A and AAAA records
71
72 46           A       V4NET.0.0.4
73              AAAA    V6NET:ffff:836f:0a00:000a:0800:200a:c031
74
75 ; And another
76
77 46b          A       V4NET.0.0.5
78              AAAA    V6NET:ffff:836f:0a00:000a:0800:200a:c033
79
80 ; A working IPv4 address and a non-working IPv6 address, with different
81 ; names so they can have different MX values
82
83 46c          AAAA    V6NET:ffff:836f:0a00:000a:0800:200a:c033
84 46d          A       HOSTIPV4
85
86 ; A host with just a non-local IPv6 address
87
88 v6           AAAA    V6NET:ffff:836f:0a00:000a:0800:200a:c032
89
90 ; Alias A and CNAME records for the local host, under the name "eximtesthost"
91 ; Make the A covered by DNSSEC and add a TLSA for it.
92
93 eximtesthost     A       HOSTIPV4
94 alias-eximtesthost CNAME eximtesthost.test.ex.
95
96 ; A bad CNAME
97
98 badcname     CNAME   rhubarb.test.ex.
99
100 ; Test a name containing an underscore
101
102 a_b          A       99.99.99.99
103
104 ; The reverse registration for this name is an empty string
105
106 empty        A       V4NET.255.255.255
107
108 ; Some IPv6 stuff
109
110 eximtesthost.ipv6 AAAA   HOSTIPV6
111 test2.ipv6   AAAA    V6NET:2101:12:1:a00:20ff:fe86:a062
112 test3.ipv6   AAAA    V6NET:1234:5:6:7:8:abc:0d
113
114 ; A case of forward and backward pointers disagreeing
115
116 badA         A       V4NET.99.99.99
117 badB         A       V4NET.99.99.98
118
119 ; A host with multiple names in different (sub) domains
120 ; These are intended to be within test.ex - absence of final dots is deliberate
121
122 x.gov.uk     A       V4NET.99.99.97
123 x.co.uk      A       V4NET.99.99.97
124
125 ; A host, the reverse lookup of whose IP address gives this name plus another
126 ; that does not forward resolve to the same address
127
128 oneback      A       V4NET.99.99.90
129 host1.masq   A       V4NET.90.90.90
130
131 ; Fake hosts are registered in the V4NET.0.0.0 subnet. In the past, the
132 ; 10.0.0.0/8 network was used; hence the names of the hosts.
133
134 ten-1        A       V4NET.0.0.1
135 ten-2        A       V4NET.0.0.2
136 ten-3        A       V4NET.0.0.3
137 ten-3-alias  A       V4NET.0.0.3
138 ten-3xtra    A       V4NET.0.0.3
139 ten-4        A       V4NET.0.0.4
140 ten-5        A       V4NET.0.0.5
141 ten-6        A       V4NET.0.0.6
142 ten-5-6      A       V4NET.0.0.5
143              A       V4NET.0.0.6
144
145 ten-99       A       V4NET.0.0.99
146
147 black-1      A       V4NET.11.12.13
148 black-2      A       V4NET.11.12.14
149
150 myhost       A       V4NET.10.10.10
151 myhost2      A       V4NET.10.10.10
152
153 other1       A       V4NET.12.4.5
154 other2       A       V4NET.12.3.1
155              A       V4NET.12.3.2
156
157 other99      A       V4NET.99.0.1
158
159 testsub.sub  A       V4NET.99.0.3
160
161 ; This one's real name really is recurse.test.ex.test.ex. It is done like
162 ; this for testing host widening, without getting tangled up in qualify issues.
163
164 recurse.test.ex   A  V4NET.99.0.2
165
166 ; a CNAME pointing to a name with both ipv4 and ipv6 A-records
167 ; and one with only ipv4
168
169 cname46      CNAME   localhost
170 cname4       CNAME   thishost
171
172 ; -------- Testing RBL records -------
173
174 ; V4NET.11.12.13 is deliberately not reverse-registered
175
176 TTL=3 13.12.11.V4NET.rbl    A   127.0.0.2
177                       TXT "This is a test blacklisting message"
178 TTL=2 14.12.11.V4NET.rbl A 127.0.0.2
179                       TXT "This is a test blacklisting message"
180 15.12.11.V4NET.rbl    A   127.0.0.2
181                       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."
182
183 14.12.11.V4NET.rbl2   A   127.0.0.2
184                       TXT "This is a test blacklisting2 message"
185 16.12.11.V4NET.rbl2   A   127.0.0.2
186                       TXT "This is a test blacklisting2 message"
187
188 14.12.11.V4NET.rbl3   A   127.0.0.2
189                       TXT "This is a test blacklisting3 message"
190 15.12.11.V4NET.rbl3   A   127.0.0.3
191                       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."
192
193 20.12.11.V4NET.rbl4   A   127.0.0.6
194 21.12.11.V4NET.rbl4   A   127.0.0.7
195 22.12.11.V4NET.rbl4   A   127.0.0.128
196                       TXT "This is a test blacklisting4 message"
197
198 22.12.11.V4NET.rbl5   A   127.0.0.1
199                       TXT "This is a test blacklisting5 message"
200
201 1.13.13.V4NET.rbl     CNAME non-exist.test.ex.
202 2.13.13.V4NET.rbl     A   127.0.0.1
203                       A   127.0.0.2
204
205 ; Foolish return values outside 127.0/8
206
207 100.13.13.V4NET.rbl    A   0.0.0.0
208 101.13.13.V4NET.rbl    A   126.255.255.255
209 102.13.13.V4NET.rbl    A   128.0.0.0
210 103.13.13.V4NET.rbl    A   255.255.255.255
211 104.13.13.V4NET.rbl    A   255.255.255.255
212                        A   127.0.0.0
213 105.13.13.V4NET.rbl    A   255.255.255.255
214                        A   255.255.255.254
215
216 ; -------- Testing MX records --------
217
218 mxcased      MX  5  ten-99.TEST.EX.
219
220 ; Points to a host with both A and AAAA
221
222 mx46         MX  46 46.test.ex.
223
224 ; Points to two hosts with both kinds of address, equal precedence
225
226 mx4646       MX  46 46.test.ex.
227              MX  46 46b.test.ex.
228
229 ; Ditto, with a third IPv6 host
230
231 mx46466      MX  46 46.test.ex.
232              MX  46 46b.test.ex.
233              MX  46 v6.test.ex.
234
235 ; This time, change precedence
236
237 mx46466b     MX  46 46.test.ex.
238              MX  47 46b.test.ex.
239              MX  48 v6.test.ex.
240
241 ; Points to a host with a working IPv4 and a non-working IPv6 record
242
243 mx46cd       MX  10 46c.test.ex.
244              MX  11 46d.test.ex.
245
246 ; Two equal precedence pointing to a v4 and a v6 host
247
248 mx246        MX  10 v6.test.ex.
249              MX  10 ten-1.test.ex.
250
251 ; Lowest-numbered points to local host
252
253 mxt1         MX  5  eximtesthost.test.ex.
254
255 ; Points only to non-existent hosts
256
257 mxt2         MX  5  not-exist.test.ex.
258
259 ; Points to some non-existent hosts;
260 ; Lowest numbered existing points to local host
261
262 mxt3         MX  5  not-exist.test.ex.
263              MX  6  eximtesthost.test.ex.
264
265 ; Points to some non-existent hosts;
266 ; Lowest numbered existing points to non-local host
267
268 mxt3r        MX  5  not-exist.test.ex.
269              MX  6  exim.org.
270
271 ; Points to an alias
272
273 mxt4         MX  5  alias-eximtesthost.test.ex.
274
275 ; Various combinations of precedence and local host
276
277 mxt5         MX  5  eximtesthost.test.ex.
278              MX  5  ten-1.test.ex.
279
280 mxt6         MX  5  ten-1.test.ex.
281              MX  6  eximtesthost.test.ex.
282              MX  6  ten-2.test.ex.
283
284 mxt7         MX  5  ten-2.test.ex.
285              MX  6  ten-3.test.ex.
286              MX  7  eximtesthost.test.ex.
287              MX  8  ten-1.test.ex.
288
289 mxt8         MX  5  ten-2.test.ex.
290              MX  6  ten-3.test.ex.
291              MX  7  eximtesthost.test.ex.
292              MX  7  ten-4.test.ex.
293              MX  8  ten-1.test.ex.
294
295 ; Same host appearing twice; make some variants in different orders to
296 ; simulate a real nameserver and its round robinning
297
298 mxt9         MX  5  ten-1.test.ex.
299              MX  6  ten-2.test.ex.
300              MX  7  ten-3.test.ex.
301              MX  8  ten-1.test.ex.
302
303 mxt9a        MX  6  ten-2.test.ex.
304              MX  7  ten-3.test.ex.
305              MX  8  ten-1.test.ex.
306              MX  5  ten-1.test.ex.
307
308 mxt9b        MX  7  ten-3.test.ex.
309              MX  8  ten-1.test.ex.
310              MX  5  ten-1.test.ex.
311              MX  6  ten-2.test.ex.
312
313 ; MX pointing to IP address
314
315 mxt10        MX  5  V4NET.0.0.1.
316
317 ; Several MXs pointing to local host
318
319 mxt11        MX  5  localhost.test.ex.
320              MX  6  localhost.test.ex.
321
322 mxt11a       MX  5  localhost.test.ex.
323              MX  6  ten-1.test.ex.
324
325 mxt12        MX  5  local1.test.ex.
326              MX  6  local2.test.ex.
327
328 local1       A   127.0.0.2
329 local2       A   127.0.0.2
330
331 ; Some more
332
333 mxt13        MX  4  other1.test.ex.
334              MX  5  other2.test.ex.
335
336 ; Different hosts with same IP addresses in the list
337
338 mxt14        MX  4  ten-5-6.test.ex.
339              MX  5  ten-5.test.ex.
340              MX  6  ten-6.test.ex.
341
342 ; Non-local hosts with different precedence
343
344 mxt15        MX 10  ten-1.test.ex.
345              MX 20  ten-2.test.ex.
346
347 ; Large number of IP addresses at one MX value, and then some
348 ; at another, to check that hosts_max_try tries the MX different
349 ; values if it can.
350
351 mxt99        MX  1  ten-1.test.ex.
352              MX  1  ten-2.test.ex.
353              MX  1  ten-3.test.ex.
354              MX  1  ten-4.test.ex.
355              MX  1  ten-5.test.ex.
356              MX  1  ten-6.test.ex.
357              MX  3  black-1.test.ex.
358              MX  3  black-2.test.ex.
359
360 ; Special case test for @mx_any (to doublecheck a reported Exim 3 bug isn't
361 ; in Exim 4). The MX points to two names, each with multiple addresses. The
362 ; very last address is the local host. When Exim is testing, it will sort
363 ; these addresses into ascending order.
364
365 mxt98        MX  1  98-1.test.ex.
366              MX  2  98-2.test.ex.
367
368 98-1         A   V4NET.1.2.3
369              A   V4NET.4.5.6
370
371 98-2         A   V4NET.7.8.9
372              A   HOSTIPV4
373
374 ; IP addresses with the same MX value
375
376 mxt97        MX  1  ten-1.test.ex.
377              MX  1  ten-2.test.ex.
378              MX  1  ten-3.test.ex.
379              MX  1  ten-4.test.ex.
380
381 ; MX pointing to a single-component name that exists if qualified, but not
382 ; if not. We use the special name dontqualify to stop the fake resolver
383 ; qualifying it.
384
385 mxt1c        MX  1  dontqualify.
386
387 ; MX with punycoded UTF-8 characters used for its lookup ( π.test.ex )
388
389 xn--1xa      MX  0  mx.π.test.ex.
390
391 ; MX with actual UTF-8 characters in its name, for allow_utf8_domains mode test
392
393 π            MX  0  mx.xn--1xa.test.ex.
394
395 ; -------- Testing SRV records --------
396
397 _smtp._tcp.srv01    SRV  0 0 25 ten-1.test.ex.
398
399 _smtp._tcp.srv02    SRV  1 3 99 ten-1.test.ex.
400                     SRV  1 1 99 ten-2.test.ex.
401                     SRV  3 0 66 ten-3.test.ex.
402
403 _smtp._tcp.nosmtp   SRV  0 0 0  .
404
405 _smtp2._tcp.srv03   SRV  0 0 88 ten-4.test.ex.
406
407 _smtp._tcp.srv27    SRV  0 0 PORT_S localhost
408
409
410 ; -------- With some for CSA testing plus their A records -------
411
412 _client._smtp.csa1  SRV  1 2 0  csa1.test.ex.
413 _client._smtp.csa2  SRV  1 1 0  csa2.test.ex.
414
415 csa1         A   V4NET.9.8.7
416 csa2         A   V4NET.9.8.8
417
418 ; ------- Testing DNSSEC ----------
419
420 mx-unsec-a-unsec        MX 5 a-unsec
421 mx-unsec-a-sec          MX 5 a-sec
422 DNSSEC mx-sec-a-unsec   MX 5 a-unsec
423 DNSSEC mx-sec-a-sec     MX 5 a-sec
424 DNSSEC mx-sec-a-aa      MX 5 a-aa
425 AA mx-aa-a-sec          MX 5 a-sec
426
427 a-unsec        A V4NET.0.0.100
428 DNSSEC a-sec   A V4NET.0.0.100
429 DNSSEC l-sec   A 127.0.0.1
430
431 AA a-aa        A V4NET.0.0.100
432
433 ; ------- Testing DANE ------------
434 ; Since these refer to certs in the exim-ca tree, they must be regenerated any time that tree is.
435 ;
436
437 ; full suite dns chain, sha512
438 ;
439 ; TLSA_AUTOGEN
440 ; openssl x509 -in aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.pem -noout -pubkey \
441 ; | openssl pkey -pubin -outform DER \
442 ; | openssl dgst -sha512 \
443 ; | awk '{print $2}'
444 ;
445 DNSSEC mxnodane             MX  1  nodane
446 DNSSEC mxdane512ee          MX  1  dane512ee
447 DNSSEC mxdane512ee1         MX  1  dane512ee
448 mxnondane512ee              MX  1  dane512ee
449 DNSSEC dane512ee            A      HOSTIPV4
450 DNSSEC nodane               A      HOSTIPV4
451
452 DNSSEC _1225._tcp.dane512ee TLSA 3 1 2 e8173aaefffadc6c96700f7f396a17b8e590ebd15b081f1455abb152afecceb16a5534707ecd64611c8b6d8b9111f82e3fa954b98c6b230cda0e9be386747b71
453
454 # mx of mxdane owns a secure A and TLSA record
455 # used in 5802
456 DNSSEC mxdane               MX  1  dane512ee
457
458 # mx of mxdanesecchain is a CNAME, with a secure target, that owns a secure A and TLSA record
459 DNSSEC mxdanesecchain       MX  1  danesecchain
460 DNSSEC danesecchain         CNAME  dane512ee
461
462 # mx of mxdaneinsecchain is CNAME, with an insecure target that own a secure A and TLSA record
463 # DANE should report a failure if the message is for ...@mxdaneinsecurechain
464 DNSSEC mxdaneinsecchain     MX  1  daneinsecchain
465 daneinsecchain              CNAME  dane512ee
466
467 ; A-only, sha256
468 ;
469 ; TLSA_AUTOGEN
470 ; openssl x509 -in aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.pem -noout -pubkey \
471 ; | openssl pkey -pubin -outform DER \
472 ; | openssl dgst -sha256 \
473 ; | awk '{print $2}'
474 ;
475 DNSSEC dane256ee            A      HOSTIPV4
476 DNSSEC _1225._tcp.dane256ee TLSA 3 1 1 e9f6e8fe73b130c720eb1fb5c94eaff522ec6f9759ed4c6815351d827b1226a7
477
478 ; full MX, sha256, TA-mode
479 ;
480 ; TLSA_AUTOGEN
481 ; openssl x509 -in aux-fixed/exim-ca/example.com/CA/CA.pem -fingerprint -sha256 -noout \
482 ; | awk -F= '{print $2}' | tr -d : | tr '[A-F]' '[a-f]'
483 ;
484 DNSSEC mxdane256ta          MX  1  dane256ta
485 DNSSEC dane256ta            A      HOSTIPV4
486 DNSSEC _1225._tcp.dane256ta TLSA 2 0 1 0d643c1ebcdf2cb83634e0c2f5102c1e268983401c9f4d8711d60b44d7fb7a3e
487
488
489 ; full MX, sha256, TA-mode, cert-key-only
490 ; Indicates a trust-anchor for a chain involving an Authority Key ID extension
491 ; linkage, as this excites a bug in OpenSSL 1.0.2 which the DANE code has to
492 ; work around, while synthesizing a selfsigned parent for it.
493 ; As it happens it is also an intermediate cert in the CA-rooted chain, as this
494 ; was initially thought to be a factor.
495 ;
496 ; TLSA_AUTOGEN
497 ; openssl x509 -in aux-fixed/exim-ca/example.com/CA/Signer.pem -noout -pubkey \
498 ; | openssl pkey -pubin -outform DER \
499 ; | openssl dgst -sha256 \
500 ; | awk '{print $2}'
501 ;
502 DNSSEC mxdane256tak          MX  1  dane256tak
503 DNSSEC dane256tak            A      HOSTIPV4
504 DNSSEC _1225._tcp.dane256tak TLSA 2 1 1 beabbe636030e4c26d15a015e878c2a607ed5a87774443ffbc6991ec01d2b6b1
505
506
507
508 ; A multiple-return MX where all TLSA lookups defer
509 DNSSEC mxdanelazy           MX  1   danelazy
510 DNSSEC                      MX  2   danelazy2
511
512 DNSSEC danelazy             A       HOSTIPV4
513 DNSSEC danelazy2            A       127.0.0.1
514
515 DNSSEC _1225._tcp.danelazy  CNAME   test.again.dns.
516 DNSSEC _1225._tcp.danelazy2 CNAME   test.again.dns.
517
518 ; hosts with no TLSA (just missing here, hence the TLSA NXDMAIN is _insecure_; a broken dane config)
519 ; 1 for dane-required, 2 for merely requested
520 DNSSEC dane.no.1            A       HOSTIPV4
521 DNSSEC dane.no.2            A       127.0.0.1
522
523 ; a broken dane config (or under attack) where the TLSA lookup fails (as opposed to there not being one)
524 DNSSEC danebroken1          A       127.0.0.1
525 _1225._tcp.danebroken1      CNAME   test.fail.dns.
526
527 ; a broken dane config (or under attack) where the TLSA record is wrong
528 ; (127.0.0.1 for merely dane-requested, but having gotten the TLSA it is supposedly definitive)
529 DNSSEC danebroken2          A       127.0.0.1
530 DNSSEC _1225._tcp.danebroken2 TLSA 2 0 1 cb0fa60000000000000000000000000000000000000000000000000000000000
531
532 ; a broken dane config (or under attack) where the TLSA record is correct but not DNSSEC-assured
533 ; (record copied from dane256ee above)
534 ; TLSA_AUTOGEN
535 ; openssl x509 -in aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.pem -noout -pubkey \
536 ; | openssl pkey -pubin -outform DER \
537 ; | openssl dgst -sha256 \
538 ; | awk '{print $2}'
539 ; 3 for dane-requested, 4 for dane-required
540 DNSSEC danebroken3          A       127.0.0.1
541 _1225._tcp.danebroken3 TLSA 2 0 1 beabbe636030e4c26d15a015e878c2a607ed5a87774443ffbc6991ec01d2b6b1
542 ; TLSA_AUTOGEN
543 ; openssl x509 -in aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.pem -noout -pubkey \
544 ; | openssl pkey -pubin -outform DER \
545 ; | openssl dgst -sha256 \
546 ; | awk '{print $2}'
547 DNSSEC danebroken4          A       HOSTIPV4
548 _1225._tcp.danebroken4 TLSA 2 0 1 beabbe636030e4c26d15a015e878c2a607ed5a87774443ffbc6991ec01d2b6b1
549
550 ; a broken dane config (or under attack) where the address record is correct but not DNSSEC-assured
551 ; (TLSA record copied from dane256ee above)
552 ; 5 for dane-requested, 6 for dane-required
553 ; TLSA_AUTOGEN
554 ; openssl x509 -in aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.pem -noout -pubkey \
555 ; | openssl pkey -pubin -outform DER \
556 ; | openssl dgst -sha256 \
557 ; | awk '{print $2}'
558 danebroken5          A       127.0.0.1
559 DNSSEC _1225._tcp.danebroken5 TLSA 2 0 1 beabbe636030e4c26d15a015e878c2a607ed5a87774443ffbc6991ec01d2b6b1
560 ; TLSA_AUTOGEN
561 ; openssl x509 -in aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.pem -noout -pubkey \
562 ; | openssl pkey -pubin -outform DER \
563 ; | openssl dgst -sha256 \
564 ; | awk '{print $2}'
565 danebroken6          A       HOSTIPV4
566 DNSSEC _1225._tcp.danebroken6 TLSA 2 0 1 beabbe636030e4c26d15a015e878c2a607ed5a87774443ffbc6991ec01d2b6b1
567
568 ; a good dns config saying there is no dane support, by securely returning NOXDOMAIN for TLSA lookups
569 ; 3 for dane-required, 4 for merely requested
570 ; the TLSA data here is dummy; ignored
571 DNSSEC dane.no.3            A       HOSTIPV4
572 DNSSEC dane.no.4            A       127.0.0.1
573
574 DNSSEC NXDOMAIN _1225._tcp.dane.no.3 TLSA 2 0 1 eec923139018c540a344c5191660ecba1ac3708525a98bfc338e17f31d3fa741
575 DNSSEC NXDOMAIN _1225._tcp.dane.no.4 TLSA 2 0 1 eec923139018c540a344c5191660ecba1ac3708525a98bfc338e17f31d3fa741
576
577 ; a mixed-usage set of TLSA records, EE one failing.  TA one coped from dane256ta.
578 ;
579 ; TLSA_AUTOGEN
580 ; openssl x509 -in aux-fixed/exim-ca/example.com/CA/CA.pem -fingerprint -sha256 -noout \
581 ; | awk -F= '{print $2}' | tr -d : | tr '[A-F]' '[a-f]'
582 ;
583 DNSSEC danemixed            A      127.0.0.1
584 DNSSEC _1225._tcp.danemixed TLSA  2 0 1 0d643c1ebcdf2cb83634e0c2f5102c1e268983401c9f4d8711d60b44d7fb7a3e
585 DNSSEC                      TLSA  3 1 1 8276000000000000000000000000000000000000000000000000000000000000
586
587 ; have the TLSA lookup, only, return SERVFAIL
588 ;
589 DNSSEC daneservfail         A      127.0.0.1
590 DNSSEC _1225._tcp.daneservfail CNAME test.again.dns.
591
592 ; ------- Testing delays ------------
593
594 DELAY=500 delay500   A HOSTIPV4
595 DELAY=1500 delay1500 A HOSTIPV4
596
597 ; ------- DKIM ---------
598
599 ; public key, base64 - matches private key in aux-fixed/dkim/dkim.private
600 ;  openssl genrsa -out aux-fixed/dkim/dkim.private 1024
601 ;  openssl rsa -in aux-fixed/dkim/dkim.private -out /dev/stdout -pubout -outform PEM
602 ;
603 ; Deliberate bad version, having extra backslashes
604 ; sha256-hash-only version.... appears to be too long, gets truncated
605 ;
606 ; Another, 512-bit (with a Notes field)
607 ; 512 requiring sha1 hash
608 ; 512 requiring sha256 hash
609 ;
610 sel._domainkey TXT "v=DKIM1; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDXRFf+VhT+lCgFhhSkinZKcFNeRzjYdW8vT29Rbb3NadvTFwAd+cVLPFwZL8H5tUD/7JbUPqNTCPxmpgIL+V5T4tEZMorHatvvUM2qfcpQ45IfsZ+YdhbIiAslHCpy4xNxIR3zylgqRUF4+Dtsaqy3a5LhwMiKCLrnzhXk1F1hxwIDAQAB"
611 sel_bad._domainkey TXT "v=DKIM1\; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDXRFf+VhT+lCgFhhSkinZKcFNeRzjYdW8vT29Rbb3NadvTFwAd+cVLPFwZL8H5tUD/7JbUPqNTCPxmpgIL+V5T4tEZMorHatvvUM2qfcpQ45IfsZ+YdhbIiAslHCpy4xNxIR3zylgqRUF4+Dtsaqy3a5LhwMiKCLrnzhXk1F1hxwIDAQAB"
612 sel_sha256._domainkey TXT "v=DKIM1; h=sha256; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDXRFf+VhT+lCgFhhSkinZKcFNeRzjYdW8vT29Rbb3NadvTFwAd+cVLPFwZL8H5tUD/7JbUPqNTCPxmpgIL+V5T4tEZMorHatvvUM2qfcpQ45IfsZ+YdhbIiAslHCpy4xNxIR3zylgqRUF4+Dtsaqy3a5LhwMiKCLrnzhXk1F1hxwIDAQAB"
613
614 ses._domainkey TXT "v=DKIM1; n=halfkilo; p=MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAL6eAQxd9didJ0/+05iDwJOqT6ly826Vi8aGPecsBiYK5/tAT97fxXk+dPWMZp9kQxtknEzYjYjAydzf+HQ2yJMCAwEAAQ=="
615 ses_sha1._domainkey TXT "v=DKIM1; h=sha1; p=MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAL6eAQxd9didJ0/+05iDwJOqT6ly826Vi8aGPecsBiYK5/tAT97fxXk+dPWMZp9kQxtknEzYjYjAydzf+HQ2yJMCAwEAAQ=="
616 ses_sha256._domainkey TXT "v=DKIM1; h=sha256; p=MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAL6eAQxd9didJ0/+05iDwJOqT6ly826Vi8aGPecsBiYK5/tAT97fxXk+dPWMZp9kQxtknEzYjYjAydzf+HQ2yJMCAwEAAQ=="
617
618 sel2._domainkey TXT "v=spf1 mx a include:spf.nl2go.com -all"
619 sel2._domainkey TXT "v=DKIM1; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDXRFf+VhT+lCgFhhSkinZKcFNeRzjYdW8vT29Rbb3NadvTFwAd+cVLPFwZL8H5tUD/7JbUPqNTCPxmpgIL+V5T4tEZMorHatvvUM2qfcpQ45IfsZ+YdhbIiAslHCpy4xNxIR3zylgqRUF4+Dtsaqy3a5LhwMiKCLrnzhXk1F1hxwIDAQAB"
620
621 ; EC signing, using Ed25519
622 ; - needs GnuTLS 3.6.0 (fedora rawhide has that)
623 ;           certtool --generate-privkey --key-type=ed25519 --outfile=dkim_ed25519.private
624 ;           certtool --load_privkey=dkim_ed25519.private --pubkey_info --outder | tail -c +13 | base64
625
626 sed._domainkey TXT "v=DKIM1; k=ed25519; p=sPs07Vu29FpHT/80UXUcYHFOHifD4o2ZlP2+XUh9g6E="
627
628 ; version of the above wrapped in SubjectPublicKeyInfo, in case the WG plumps in that direction
629 ;       certtool --load_privkey=aux-fixed/dkim/dkim_ed25519.private --pubkey_info
630 ;        (and grab the b64 content from between the pem headers)
631
632 sedw._domainkey TXT "v=DKIM1; k=ed25519; p=MCowBQYDK2VwAyEAsPs07Vu29FpHT/80UXUcYHFOHifD4o2ZlP2+XUh9g6E="
633
634
635 ; ------- DMARC ---------
636
637 _dmarc TXT v=DMARC1; p=none
638
639 ; End