5 function google_app(domain, ttl)
11 -- Configure mail exchangers
12 mx(domain, 'aspmx.l.google.com', 10, ttl)
13 mx(domain, 'alt1.aspmx.l.google.com', 20, ttl)
14 mx(domain, 'alt2.aspmx.l.google.com', 20, ttl)
15 mx(domain, 'aspmx2.googlemail.com', 30, ttl)
16 mx(domain, 'aspmx3.googlemail.com', 30, ttl)
17 mx(domain, 'aspmx4.googlemail.com', 30, ttl)
18 mx(domain, 'aspmx5.googlemail.com', 30, ttl)
20 -- Additional Google Apps records
21 cname(concat('calendar', domain), 'ghs.google.com', ttl)
22 cname(concat('docs', domain), 'ghs.google.com', ttl)
23 cname(concat('mail', domain), 'ghs.google.com', ttl)
24 cname(concat('sites', domain), 'ghs.google.com', ttl)
25 cname(concat('start', domain), 'ghs.google.com', ttl)
28 -- txt(domain, 'v=spf1 a mx include:_spf.google.com ~all', ttl)
33 function a_and_aaaa(domain, ipv4, ipv6, ttl)
40 aaaa(domain, ipv6, ttl)