Alibaba Cloud Edge Security Acceleration (ESA) is an edge security acceleration service provided by Alibaba Cloud, supporting dynamic management of DNS records. This DDNS project uses AccessKey ID and AccessKey Secret to update ESA DNS records.
Official Links:
Use Alibaba Cloud AccessKey ID and AccessKey Secret for authentication.
AliyunESAFullAccess
) permissions{
"dns": "aliesa",
"id": "your_access_key_id", // AccessKey ID
"token": "your_access_key_secret" // AccessKey Secret
}
Ensure the Alibaba Cloud account has the following permissions:
You can view and configure permissions in the RAM Console.
{
"$schema": "https://ddns.newfuture.cc/schema/v4.0.json", // Format validation
"dns": "aliesa", // Current provider
"id": "your_access_key_id", // AccessKey ID
"token": "your_access_key_secret", // AccessKey Secret
"index4": ["url:http://api.ipify.cn", "public"], // IPv4 address source
"index6": "public", // IPv6 address source
"ipv4": ["ddns.newfuture.cc"], // IPv4 domains
"ipv6": ["ddns.newfuture.cc", "ipv6.ddns.newfuture.cc"], // IPv6 domains
"endpoint": "https://esa.cn-hangzhou.aliyuncs.com", // API endpoint
"ttl": 600 // DNS record TTL (seconds)
}
Parameter | Description | Type | Range/Options | Default | Parameter Type |
---|---|---|---|---|---|
dns | Provider identifier | String | aliesa |
None | Provider Parameter |
id | Authentication ID | String | Alibaba Cloud AccessKey ID | None | Provider Parameter |
token | Authentication key | String | Alibaba Cloud AccessKey Secret | None | Provider Parameter |
index4 | IPv4 source | Array | Reference | default |
Common Config |
index6 | IPv6 source | Array | Reference | default |
Common Config |
ipv4 | IPv4 domains | Array | Domain list | None | Common Config |
ipv6 | IPv6 domains | Array | Domain list | None | Common Config |
endpoint | API endpoint | URL | See below | https://esa.cn-hangzhou.aliyuncs.com |
Provider Parameter |
ttl | TTL time | Integer (seconds) | 1-86400 | None | Provider Parameter |
proxy | Proxy settings | Array | Reference | None | Common Network |
ssl | SSL verification | Boolean/String | auto , true , false |
auto |
Common Network |
cache | Cache settings | Boolean/String | true , false , filepath |
true |
Common Config |
log | Log configuration | Object | Reference | None | Common Config |
Parameter Type Description:
- Common Config: Standard DNS configuration parameters applicable to all supported DNS providers
- Common Network: Network setting parameters applicable to all supported DNS providers
- Provider Parameter: Supported by current provider, values related to current provider
Alibaba Cloud ESA supports multiple regional endpoints, you can choose the optimal node based on region and network environment:
https://esa.cn-hangzhou.aliyuncs.com
(Default)https://esa.ap-southeast-1.aliyuncs.com
Enable debug logging to view detailed information:
ddns -c config.json --debug
Recommendation: Use RAM sub-accounts and regularly rotate AccessKeys to improve account security.