Drop Ed25519 SSHFP records
[exim-dns.git] / templates.lua
index a9dfe061200366fa1fc9f0e2d01202f671b7a3c8..8173c8977f3cb07d22913287f44f99e723ccc9f2 100644 (file)
@@ -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