Huawei Cloud DNS is an authoritative DNS resolution service provided by Huawei Cloud, featuring high availability, high scalability, and high security, supporting dynamic DNS record creation and updates. This DDNS project authenticates through Access Key ID and Secret Access Key.
⚠️ Important Note: Huawei Cloud DNS Provider is currently in verification pending status, lacking sufficient real-world testing. Please provide feedback through GitHub Issues.
Official Links:
Use Huawei Cloud Access Key ID and Secret Access Key for authentication.
{
"dns": "huaweidns",
"id": "your_access_key_id", // Huawei Cloud Access Key ID
"token": "your_secret_access_key" // Huawei Cloud Secret Access Key
}
Ensure the Huawei Cloud account has the following permissions:
You can view and configure permissions in Identity and Access Management.
{
"$schema": "https://ddns.newfuture.cc/schema/v4.0.json", // Format validation
"dns": "huaweidns", // Current provider
"id": "your_access_key_id", // Huawei Cloud Access Key ID
"token": "your_secret_access_key", // Huawei Cloud Secret Access Key
"index4": ["url:http://api.ipify.cn", "public"], // IPv4 address source
"index6": "public", // IPv6 address source
"ipv4": ["ddns.newfuture.cc"], // IPv4 domain
"ipv6": ["ddns.newfuture.cc", "ipv6.ddns.newfuture.cc"], // IPv6 domain
"endpoint": "https://dns.myhuaweicloud.com", // API endpoint
"line": "default", // Resolution line
"ttl": 600 // DNS record TTL (seconds)
}
Parameter | Description | Type | Value Range/Options | Default | Parameter Type |
---|---|---|---|---|---|
dns | Provider ID | String | huaweidns |
None | Provider Param |
id | Authentication ID | String | Huawei Cloud Access Key ID | None | Provider Param |
token | Authentication Key | String | Huawei Cloud Secret Access Key | None | Provider Param |
index4 | IPv4 Source | Array | Reference | default |
Common Config |
index6 | IPv6 Source | Array | Reference | default |
Common Config |
ipv4 | IPv4 Domain | Array | Domain list | None | Common Config |
ipv6 | IPv6 Domain | Array | Domain list | None | Common Config |
endpoint | API Endpoint | URL | Reference below | https://dns.myhuaweicloud.com |
Provider Param |
line | Resolution Line | String | Reference below | default |
Provider Param |
ttl | TTL Time | Integer (seconds) | 1~2147483647 | 300 |
Provider Param |
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 Config | 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 Param: Supported by current provider, values related to current provider
Note: The supported values for
ttl
andline
may vary depending on different service plans.
Huawei Cloud DNS supports multiple regional endpoints. You can choose the optimal node based on region and network environment:
https://dns.myhuaweicloud.com
https://dns.cn-north-4.myhuaweicloud.com
https://dns.cn-east-3.myhuaweicloud.com
https://dns.cn-south-1.myhuaweicloud.com
https://dns.cn-north-9.myhuaweicloud.com
https://dns.cn-southwest-2.myhuaweicloud.com
https://dns.ap-southeast-3.myhuaweicloud.com
https://dns.ap-southeast-1.myhuaweicloud.com
https://dns.ap-southeast-2.myhuaweicloud.com
https://dns.af-south-1.myhuaweicloud.com
https://dns.la-south-2.myhuaweicloud.com
https://dns.la-north-2.myhuaweicloud.com
https://dns.sa-brazil-1.myhuaweicloud.com
Note: It is recommended to use the default endpoint
https://dns.myhuaweicloud.com
, as Huawei Cloud will automatically route to the optimal node. Specific regional endpoints are only needed in special network environments.
The line
parameter specifies DNS resolution lines. For supported lines in Huawei Cloud: Configure Custom Line Resolution.
Enable debug logging to view detailed information:
ddns -c config.json --debug
Error Code | Description | Solution |
---|---|---|
APIGW.0301 | Authentication failed | Check access keys |
DNS.0101 | Domain not found | Check domain configuration |
DNS.0102 | Record set not found | Check record settings |
DNS.0103 | Record set exists | Check conflicting records |
DNS.0203 | Request rate too high | Reduce request frequency |
⚠️ Verification Pending Status: Huawei Cloud DNS Provider lacks sufficient real-world testing. It is recommended to conduct thorough testing before using in production environments. If you encounter issues, please provide feedback through GitHub Issues.