Browse Source
Update dns_hexonet.sh
Set TTL for _acme-challenge TXT record to 300
pull/3562/head
msamoylych
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
dnsapi/dns_hexonet.sh
|
|
|
@ -50,7 +50,7 @@ dns_hexonet_add() { |
|
|
|
fi |
|
|
|
|
|
|
|
_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 |
|
|
|
_info "Added, OK" |
|
|
|
return 0 |
|
|
|
|