]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
reduce nanelo dns ttl
authorAn | Anton Röhm <18481195+AnTheMaker@users.noreply.github.com>
Thu, 23 Feb 2023 23:13:21 +0000 (00:13 +0100)
committerGitHub <noreply@github.com>
Thu, 23 Feb 2023 23:13:21 +0000 (00:13 +0100)
dnsapi/dns_nanelo.sh

index 2a22ecdb58d193f38eb9afb2d7507765c133868e..8ccc8c290cd1204585206cf61ba9618d95541abd 100644 (file)
@@ -25,7 +25,7 @@ dns_nanelo_add() {
   _saveaccountconf_mutable NANELO_TOKEN "$NANELO_TOKEN"
 
   _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
     return 0
   fi
@@ -49,7 +49,7 @@ dns_nanelo_rm() {
   _saveaccountconf_mutable NANELO_TOKEN "$NANELO_TOKEN"
 
   _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
     return 0
   fi