Update dns_hexonet.sh

Set TTL for _acme-challenge TXT record to 300
This commit is contained in:
msamoylych 2021-06-18 21:12:09 +03:00 committed by GitHub
parent f1c361855e
commit 241d1b83ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,7 @@ dns_hexonet_add() {
fi fi
_info "Adding record" _info "Adding record"
if _hexonet_rest "command=UpdateDNSZone&dnszone=${_domain}.&addrr0=${_sub_domain}%20IN%20TXT%20${txtvalue}"; then if _hexonet_rest "command=UpdateDNSZone&dnszone=${_domain}.&addrr0=${_sub_domain}%20300%20IN%20TXT%20${txtvalue}"; then
if _contains "$response" "CODE=200"; then if _contains "$response" "CODE=200"; then
_info "Added, OK" _info "Added, OK"
return 0 return 0