summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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
 )