mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-10 19:02:47 +00:00
Fix removal of DNS record after completion
Changes undocumented API function to `dns/records/$_domain_name`. Since it checks for root right before asking for the ID, there is not need to check again and the `$_domain_name` should be accurate. Just changed the function name and it worked for me (no need to patch sed), but not sure why the other patch wants to change the sed call. ---------------------------------------- API Reference: https://www.dynu.com/en-US/Resources/API/Documentation#DNSRecords
This commit is contained in:
parent
c31db83b26
commit
56af0e2c52
@ -152,7 +152,7 @@ _get_recordid() {
|
|||||||
fulldomain=$1
|
fulldomain=$1
|
||||||
txtvalue=$2
|
txtvalue=$2
|
||||||
|
|
||||||
if ! _dynu_rest GET "dns/record/get?hostname=$fulldomain&rrtype=TXT"; then
|
if ! _dynu_rest GET "dns/records/$_domain_name"; then
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user