X-Git-Url: https://git.exim.org/exim-dns.git/blobdiff_plain/f421e7d2f2ec66deba6cdf8e9981a3701b9e2de5..HEAD:/templates.lua diff --git a/templates.lua b/templates.lua index a9dfe06..8173c89 100644 --- a/templates.lua +++ b/templates.lua @@ -3,10 +3,7 @@ -- function google_app(domain, ttl) - local ttl = ttl - if ttl == nil then - ttl = 7200 - end + local ttl = ttl or 28800 -- Configure mail exchangers mx(domain, 'aspmx.l.google.com', 10, ttl) @@ -31,11 +28,15 @@ end function a_and_aaaa(domain, ipv4, ipv6, ttl) - local ttl = ttl - if ttl == nil then - ttl = 7200 - end + local ttl = ttl or 28800 a(domain, ipv4, ttl) aaaa(domain, ipv6, ttl) end + + + +function values (t) + local i = 0 + return function () i = i + 1; return t[i] end +end