For International DNSPod, see DNSPod Global Configuration Guide.
DNSPod (dnspod.cn) is an authoritative DNS resolution service under Tencent Cloud, widely used in mainland China, supporting dynamic DNS record creation and updates. This DDNS project supports multiple authentication methods to connect to DNSPod for dynamic DNS record management.
Official Links:
API Token method is more secure and is the recommended integration method by DNSPod.
{
"dns": "dnspod",
"id": "123456", // DNSPod API Token ID
"token": "Your-API-TOKEN" // DNSPod API Token Secret
}
Uses DNSPod account email and password. Lower security, only recommended for special scenarios.
{
"dns": "dnspod",
"id": "your-email@example.com", // DNSPod account email
"token": "your-account-password" // DNSPod account password
}
For users using Tencent Cloud AccessKey, please refer to Tencent Cloud DNSPod Configuration Guide.
{
"$schema": "https://ddns.newfuture.cc/schema/v4.0.json", // Format validation
"dns": "dnspod", // Current provider
"id": "123456", // DNSPod API Token ID
"token": "Your-API-TOKEN", // DNSPod API Token
"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
"line": "默认", // Resolution line
"ttl": 600 // DNS record TTL (seconds)
}
Parameter | Description | Type | Range/Options | Default | Parameter Type |
---|---|---|---|---|---|
dns | Provider identifier | String | dnspod |
None | Provider Parameter |
id | Authentication ID | String | DNSPod API Token ID or email | None | Provider Parameter |
token | Authentication key | String | DNSPod API Token secret or password | 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 |
line | Resolution line | String | Reference below | 默认 |
Provider Parameter |
ttl | TTL time | Integer (seconds) | Reference below | 600 |
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 Note:
ttl
andline
supported values may vary by service plan.
The ttl
parameter specifies the Time To Live (TTL) of DNS records in seconds. DNSPod supports TTL range from 1 to 604800 seconds (7 days). If not set, the default value is used.
Plan Type | Supported TTL Range (seconds) |
---|---|
Free | 600 - 604800 |
Professional | 60 - 604800 |
Enterprise | 1 - 604800 |
Premium | 1 - 604800 |
Reference: DNSPod TTL Documentation
The line
parameter specifies DNS resolution lines. DNSPod supported lines:
Line Identifier | Description |
---|---|
默认 | Default |
电信 | China Telecom |
联通 | China Unicom |
移动 | China Mobile |
教育网 | China Education Network |
搜索引擎 | Search Engine |
境外 | Overseas |
More lines reference: DNSPod Resolution Line Documentation
Enable debug logging to view detailed information:
ddns -c config.json --debug
Recommendation: Use API Token method to improve security and management convenience, avoid using email/password method.