mirror of
https://github.com/acmesh-official/acme.sh
synced 2025-08-31 14:25:37 +00:00
reduce nanelo dns ttl
This commit is contained in:
@@ -25,7 +25,7 @@ dns_nanelo_add() {
|
|||||||
_saveaccountconf_mutable NANELO_TOKEN "$NANELO_TOKEN"
|
_saveaccountconf_mutable NANELO_TOKEN "$NANELO_TOKEN"
|
||||||
|
|
||||||
_info "Adding TXT record to ${fulldomain}"
|
_info "Adding TXT record to ${fulldomain}"
|
||||||
response="$(_get "$NANELO_API$NANELO_TOKEN/dns/addrecord?type=TXT&name=${fulldomain}&value=${txtvalue}")"
|
response="$(_get "$NANELO_API$NANELO_TOKEN/dns/addrecord?type=TXT&ttl=60&name=${fulldomain}&value=${txtvalue}")"
|
||||||
if _contains "${response}" 'success'; then
|
if _contains "${response}" 'success'; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
@@ -49,7 +49,7 @@ dns_nanelo_rm() {
|
|||||||
_saveaccountconf_mutable NANELO_TOKEN "$NANELO_TOKEN"
|
_saveaccountconf_mutable NANELO_TOKEN "$NANELO_TOKEN"
|
||||||
|
|
||||||
_info "Deleting resource record $fulldomain"
|
_info "Deleting resource record $fulldomain"
|
||||||
response="$(_get "$NANELO_API$NANELO_TOKEN/dns/deleterecord?type=TXT&name=${fulldomain}&value=${txtvalue}")"
|
response="$(_get "$NANELO_API$NANELO_TOKEN/dns/deleterecord?type=TXT&ttl=60&name=${fulldomain}&value=${txtvalue}")"
|
||||||
if _contains "${response}" 'success'; then
|
if _contains "${response}" 'success'; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user