From 5a4b6f3593de0756301e99ea2736553af20575ff Mon Sep 17 00:00:00 2001 From: Andrew Burdo Date: Mon, 10 Feb 2025 18:07:09 +0200 Subject: [PATCH] Fix _check_dns_entries for suggested apex domain substitutions for --domain-alias Current checks don't support @.domain.tld or .domain.tld, which are suggested to be used instead of the domain apex with --domain-alias at https://github.com/acmesh-official/acme.sh/wiki/DNS-alias-mode#7-challenge-alias-or-domain-alias This fix removes "@." or "." at the beginning of the domain, so the correct domain will be checked. --- acme.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/acme.sh b/acme.sh index 9842e3f1..e2a45a75 100755 --- a/acme.sh +++ b/acme.sh @@ -4219,6 +4219,7 @@ _check_dns_entries() { _debug "aliasDomain" "$aliasDomain" _debug "txt" "$txt" _debug "d_api" "$d_api" + aliasDomain="$(echo "$aliasDomain" | sed "s/^@\{0,1\}\.//")" _info "Checking $d for $aliasDomain" if _contains "$_success_txt" ",$txt,"; then _info "Already succeeded, continuing."