summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-07-10 20:43:46 +0200
committerAlan Pearce2024-07-10 20:43:46 +0200
commitecea4c5169976e334dfdbe992605bd055f622917 (patch)
tree9016d2b0fb73420b332e945da44b01858a94aa9e
parent969b7083edf7f402235ad1bac4b8e374489d84b7 (diff)
downloaddns-ecea4c5169976e334dfdbe992605bd055f622917.tar.lz
dns-ecea4c5169976e334dfdbe992605bd055f622917.tar.zst
dns-ecea4c5169976e334dfdbe992605bd055f622917.zip
use acme-dns for dns-based validation
-rw-r--r--dnsconfig.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/dnsconfig.js b/dnsconfig.js
index 823828b..c50c192 100644
--- a/dnsconfig.js
+++ b/dnsconfig.js
@@ -59,11 +59,10 @@ function bulkCNAME(sources, target) {
 }
 
 /**
- * @param {string} source
  * @param {string} subdomain
  */
-function acme(source, subdomain) {
-  return CNAME(source, subdomain + '.acme.alanpearce.eu.')
+function acme(subdomain) {
+  return CNAME('_acme-challenge', subdomain + '.acme.alanpearce.eu.')
 }
 
 var nameserversHE = [
@@ -82,7 +81,7 @@ var acmeLetsEncrypt = [
   }),
 ]
 
-var websiteHosting = [fly('@'), fly('www')]
+var websiteHosting = [fly('@'), fly('www'), acme('6b17e53d-6090-4820-a557-51ee3324f38c')]
 
 // Providers:
 
@@ -192,7 +191,7 @@ D(
     parts: ['v=spf1', '-all'],
   }),
 
-  DNAME('@', 'alanpearce.eu.'),
+  CNAME('*', 'alanpearce.eu.'),
 
   nameserversHE
 )