]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
Update dns_hexonet.sh
authormsamoylych <msamoylych@users.noreply.github.com>
Wed, 24 Jun 2020 09:26:11 +0000 (12:26 +0300)
committerGitHub <noreply@github.com>
Wed, 24 Jun 2020 09:26:11 +0000 (12:26 +0300)
Fix removing DNS records

dnsapi/dns_hexonet.sh

index a8ffd3d1e54898517eeb9197a38771fdcb5453af..525efe73932a52cbae278224163871733cb00d96 100755 (executable)
@@ -88,7 +88,7 @@ dns_hexonet_rm() {
   _debug _domain "$_domain"
 
   _debug "Getting txt records"
-  _hexonet_rest "command=QueryDNSZoneRRList&dnszone=${h}.&RRTYPE=TXT&RR=${txtvalue}"
+  _hexonet_rest "command=QueryDNSZoneRRList&dnszone=${h}.&RRTYPE=TXT&RR=${_sub_domain}%20IN%20TXT%20\"${txtvalue}\""
 
   if ! _contains "$response" "CODE=200"; then
     _err "Error"
@@ -100,7 +100,7 @@ dns_hexonet_rm() {
   if [ "$count" = "0" ]; then
     _info "Don't need to remove."
   else
-    if ! _hexonet_rest "command=UpdateDNSZone&dnszone=${_domain}.&delrr0='${_sub_domain}%20IN%20TXT%20\"${txtvalue}\""; then
+    if ! _hexonet_rest "command=UpdateDNSZone&dnszone=${_domain}.&delrr0=${_sub_domain}%20IN%20TXT%20\"${txtvalue}\""; then
       _err "Delete record error."
       return 1
     fi