Open yoursunny opened 3 years ago
thanks, did you try to use multiple &txt=${txt_encoded}
in the url ?
use multiple
&txt=${txt_encoded}
Specifying more than one &txt=
parameter: dyndns returns "badtxt" response.
Creating more than one TXT record in DNS panel: only the last TXT record can be updated. Others return "badauth" response.
This would not work with different -d domain.name -d domain2.name
with different keys in the DDNS.
Pull request: https://github.com/acmesh-official/acme.sh/pull/4318
Hurricane Electric Hosted DNS introduced dynamic TXT records sometime in 2020. It is now possible to use acme.sh DNS API with a dynamic update key instead of the HE.net account password.
Script ~/.acme.sh/dnsapi/dns_hedyn.sh:
Usage:
_acme-challenge.subdomain.example.com
with "dynamic DNS" enabled.Run this command:
A major limitation of my script is that it cannot support having both
-d subdomain.example.com
and-d *.subdomain.example.com
on the same certificate. That would require two TXT records with the same name_acme-challenge.subdomain.example.com
but different values, which isn't possible using this method.For this reason, my script is ineligible for the mainline codebase. Nevertheless, I decide to post it here in case others are looking for something similar.