Reworked to use included values function and not pairs
[exim-dns.git] / exim.org.lua
1 -- File: exim.org.lua
2 -- Zone: exim.org
3 -- SOA record is automatically generated
4 -- Variable _a is replaced with zone name
5 -- _a = 'exim.org'
6
7 -- NS records
8 -- automatically added - these are just for history
9 --    .exim.org::a.ns.bytemark.co.uk:21600
10 --    .exim.org::b.ns.bytemark.co.uk:21600
11 --    .exim.org::c.ns.bytemark.co.uk:21600
12
13 -- IPs we use
14 local main_ipv4 = '131.111.8.192'
15 local main_ipv6 = '2001:630:212:8:204:23ff:fed6:b664'
16
17 -- Standard TTL
18 local ttl = 28800
19
20 -- Basic A/AAAA records
21
22 local a_record_names = {
23     _a, 'www', 'mail', 'ftp', 'wiki', 'lists', 'bugs',
24     'docs', 'vcs', 'git', 'dev', 'www2' }
25 for val in values(a_record_names) do
26     a_and_aaaa(val, main_ipv4, main_ipv6,       ttl)
27 end
28
29 -- MX records
30 mx(_a,              'tahini.csx.cam.ac.uk', 5,  ttl)
31 mx(_a,              'boom.graemef.net', 15,     ttl)
32 --
33 mx('bugs',          'tahini.csx.cam.ac.uk', 5,  ttl)
34
35 -- Mirrors etc - A and a few CNAME records
36 a('www.us',         '209.58.132.254',           ttl)
37 a('www.ie',         '193.120.14.243',           ttl)
38 a('www.fr',         '193.54.153.246',           ttl)
39 a('www.congo',      '194.7.39.155',             ttl)
40 a('ftp.de',         '195.211.161.101',          ttl)
41 a('www.de',         '195.211.161.101',          ttl)
42 a('www.tw',         '192.72.81.219',            ttl)
43 a('www.pl',         '193.219.28.2',             ttl)
44 cname('www.no',     'spheniscus.uninett.no',    ttl)
45 cname('www.in',     'exim.in.freeos.com',       ttl)
46
47 -- Delegation of testdns.exim.org for testsuite
48 ns('testdns',       'nlns.globnix.net',         ttl)
49 ns('testdns',       'us0ns.globnix.net',        ttl)
50
51 -- end