mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-04-30 04:22:44 +00:00
Add DNS API for ClouDNS
This commit is contained in:
parent
3d8598654c
commit
ac11ba3d60
@ -28,7 +28,7 @@ dns_cloudns_add() {
|
|||||||
_debug host "$host"
|
_debug host "$host"
|
||||||
_debug record "$record"
|
_debug record "$record"
|
||||||
_debug record_id "$record_id"
|
_debug record_id "$record_id"
|
||||||
|
|
||||||
if [ -z "$record_id" ]; then
|
if [ -z "$record_id" ]; then
|
||||||
_info "Adding the TXT record for $1"
|
_info "Adding the TXT record for $1"
|
||||||
_dns_cloudns_http_api_call "dns/add-record.json" "domain-name=$zone&record-type=TXT&host=$host&record=$record&ttl=60"
|
_dns_cloudns_http_api_call "dns/add-record.json" "domain-name=$zone&record-type=TXT&host=$host&record=$record&ttl=60"
|
||||||
@ -126,7 +126,7 @@ _dns_cloudns_get_zone_name() {
|
|||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
i=$((${i} + 1))
|
i=$((i + 1))
|
||||||
done
|
done
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user