summaryrefslogtreecommitdiff
path: root/hostnix/elmo/dyndns.nix
diff options
context:
space:
mode:
authorJoe Mou <dev@mou.fo>2024-04-24 02:09:31 -0400
committerJoe Mou <dev@mou.fo>2024-04-26 23:54:54 -0400
commit5c0b6b619b2a7ee4502aa66ad8ee03ffff64cacb (patch)
tree8cb4dc00b6afa879fe321fe6d3c7bb1f19daa33b /hostnix/elmo/dyndns.nix
parentcce8a71d3192f1ae596e49e86260b8da388e7625 (diff)
ACME with DNS challenge
Diffstat (limited to 'hostnix/elmo/dyndns.nix')
-rw-r--r--hostnix/elmo/dyndns.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/hostnix/elmo/dyndns.nix b/hostnix/elmo/dyndns.nix
index 3dc0144..aea6776 100644
--- a/hostnix/elmo/dyndns.nix
+++ b/hostnix/elmo/dyndns.nix
@@ -65,6 +65,9 @@
''${IP6:+update add $RR. 300 AAAA $IP6}
update delete $RR. TXT
update add $RR. 300 TXT "v=spf1 include:_spf.mou.fo ~all"
+ ; Wildcard all subdomains.
+ update delete \\*.$1.$RR. CNAME
+ update add \\*.$1.$RR. 300 CNAME $RR.
send
.
'';