You need to set the HTTP API user ID and password credentials. See: https://www.cloudns.net/wiki/article/42/
You need to set the HTTP API user ID and password credentials. See: https://www.cloudns.net/wiki/article/42/. For security reasons, it's recommended to use a sub user ID that only has access to the necessary zones, as a regular API user has access to your entire account.
```
export CLOUDNS_AUTH_ID=XXXXX
# Use this for a sub auth ID
export CLOUDNS_SUB_AUTH_ID=XXXXX
# Use this for a regular auth ID
#export CLOUDNS_AUTH_ID=XXXXX
export CLOUDNS_AUTH_PASSWORD="YYYYYYYYY"
```
@ -585,7 +588,7 @@ For issues, please report to https://github.com/non7top/acme.sh/issues.
## 31. Use Hurricane Electric
Hurricane Electric doesn't have an API so just set your login credentials like so:
Hurricane Electric (https://dns.he.net/) doesn't have an API so just set your login credentials like so:
if ! aws_rest GET "2013-04-01$_domain_id/rrset""name=$fulldomain&type=TXT";then
return1
fi
if _contains "$response""<Name>$fulldomain.</Name>";then
_resource_record="$(echo"$response"| sed 's/<ResourceRecordSet>/"/g'| tr '"'"\n"| grep "<Name>$fulldomain.</Name>"| _egrep_o "<ResourceRecords.*</ResourceRecords>"| sed "s/<ResourceRecords>//"| sed "s#</ResourceRecords>##")"
if ! aws_rest GET "2013-04-01$_domain_id/rrset""name=$fulldomain&type=TXT";then
return1
fi
if _contains "$response""<Name>$fulldomain.</Name>";then
_resource_record="$(echo"$response"| sed 's/<ResourceRecordSet>/"/g'| tr '"'"\n"| grep "<Name>$fulldomain.</Name>"| _egrep_o "<ResourceRecords.*</ResourceRecords>"| sed "s/<ResourceRecords>//"| sed "s#</ResourceRecords>##")"
if _rest PUT "record/$record_id""{\"domain_id\": $_domain_id, \"host\":\"$_sub_domain\", \"value\":\"$txtvalue\", \"type\":\"TXT\",\"ttl\":600, \"line_id\":1}";then
if ! _rest POST "Record.Modify""login_token=$DP_Id,$DP_Key&format=json&domain_id=$_domain_id&sub_domain=$_sub_domain&record_type=TXT&value=$txtvalue&record_line=默认&record_id=$record_id";then
return1
fi
if _contains "$response""Action completed successful";then