summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-06-30 13:23:11 +0200
committerAlan Pearce2024-06-30 13:23:11 +0200
commit969b7083edf7f402235ad1bac4b8e374489d84b7 (patch)
tree9b1d3ce9af7180c6e334b84851c7e7aa3687f9b0
parent04b0f63a48edd219f6d05099d33ce91869f094ee (diff)
downloaddns-969b7083edf7f402235ad1bac4b8e374489d84b7.tar.lz
dns-969b7083edf7f402235ad1bac4b8e374489d84b7.tar.zst
dns-969b7083edf7f402235ad1bac4b8e374489d84b7.zip
enable management of ACME delegation records
-rw-r--r--dnsconfig.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/dnsconfig.js b/dnsconfig.js
index a6e5b27..823828b 100644
--- a/dnsconfig.js
+++ b/dnsconfig.js
@@ -58,6 +58,14 @@ function bulkCNAME(sources, target) {
   })
 }
 
+/**
+ * @param {string} source
+ * @param {string} subdomain
+ */
+function acme(source, subdomain) {
+  return CNAME(source, subdomain + '.acme.alanpearce.eu.')
+}
+
 var nameserversHE = [
   NAMESERVER('ns1.he.net.'),
   NAMESERVER('ns2.he.net.'),
@@ -72,8 +80,6 @@ var acmeLetsEncrypt = [
     issue: ['letsencrypt.org'],
     issuewild: ['letsencrypt.org'],
   }),
-  IGNORE('_acme-challenge', 'TXT'),
-  IGNORE('_acme-challenge.**', 'TXT'),
 ]
 
 var websiteHosting = [fly('@'), fly('www')]