Skip to content

Commit 06e12a3

Browse files
authored
reduce nanelo dns ttl
1 parent d3fefd2 commit 06e12a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dnsapi/dns_nanelo.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ dns_nanelo_add() {
2525
_saveaccountconf_mutable NANELO_TOKEN "$NANELO_TOKEN"
2626

2727
_info "Adding TXT record to ${fulldomain}"
28-
response="$(_get "$NANELO_API$NANELO_TOKEN/dns/addrecord?type=TXT&name=${fulldomain}&value=${txtvalue}")"
28+
response="$(_get "$NANELO_API$NANELO_TOKEN/dns/addrecord?type=TXT&ttl=60&name=${fulldomain}&value=${txtvalue}")"
2929
if _contains "${response}" 'success'; then
3030
return 0
3131
fi
@@ -49,7 +49,7 @@ dns_nanelo_rm() {
4949
_saveaccountconf_mutable NANELO_TOKEN "$NANELO_TOKEN"
5050

5151
_info "Deleting resource record $fulldomain"
52-
response="$(_get "$NANELO_API$NANELO_TOKEN/dns/deleterecord?type=TXT&name=${fulldomain}&value=${txtvalue}")"
52+
response="$(_get "$NANELO_API$NANELO_TOKEN/dns/deleterecord?type=TXT&ttl=60&name=${fulldomain}&value=${txtvalue}")"
5353
if _contains "${response}" 'success'; then
5454
return 0
5555
fi

0 commit comments

Comments
 (0)