Browse Source

Add VirakCloud DNS API support

pull/6739/head
Amin Sharifi 1 week ago
parent
commit
ef035248c3
  1. 1
      dnsapi/dns_virakcloud.sh

1
dnsapi/dns_virakcloud.sh

@ -43,6 +43,7 @@ dns_virakcloud_add() {
_info "Adding TXT record"
if _virakcloud_rest POST "domains/${_domain}/records" "{\"record\":\"${fulldomain}\",\"type\":\"TXT\",\"ttl\":3600,\"content\":\"${txtvalue}\"}"; then
if echo "$response" | grep -q "success" || echo "$response" | grep -q "\"data\""; then
_info "Added, OK"

Loading…
Cancel
Save