DDNS

Tencent Cloud DNS Configuration Guide

Overview

Tencent Cloud DNS (TencentCloud DNSPod) is a professional DNS resolution service provided by Tencent Cloud, suitable for users who need high availability and high-performance DNS resolution. This DDNS project supports authentication through Tencent Cloud API keys.

Authentication Method

API Key Authentication

Tencent Cloud DNS uses SecretId and SecretKey for API authentication, which is the most secure and recommended authentication method.

How to Obtain API Keys

From DNSPod
  1. Login to DNSPod Console
  2. Go to API Key Management
  3. Create a New Secret Key
    • Click the “Create Key” button
    • Enter a descriptive name (e.g., “DDNS Host”)
    • Select appropriate permissions (domain management permission required)
    • Click “Confirm” to create
From Tencent Cloud
  1. Login to Tencent Cloud Console
  2. Go to API Key Management
  3. Create New API Key
    • Click the “Create Key” button
    • Copy the generated SecretId and SecretKey
    • Important: Save both values securely, as they provide full access to your account
  4. Verify Permissions

Configuration Using API Keys

{
  "dns": "tencentcloud",
  "id": "AKIDxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}

Parameters:

Complete Configuration Examples

Basic Configuration

{
  "id": "AKIDxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "dns": "tencentcloud",
  "ipv6": ["home.example.com", "server.example.com"]
}

Configuration with Optional Parameters

{
  "id": "AKIDxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "dns": "tencentcloud",
  "ipv6": ["dynamic.mydomain.com"],
  "ttl": 300,
  "record_type": "A"
}

Optional Configuration Parameters

TTL (Time To Live)

{
  "ttl": 300
}

Record Type

{
  "record_type": "A"
}

Line Type (ISP Route)

{
  "line": "默认"
}

Permission Requirements

Ensure the Tencent Cloud account has the following permissions:

You can view and configure permissions in the Access Management Console.

Troubleshooting

Common Issues

“Signature Error” or “Authentication Failed”

“Domain Not Found” Error

“Record Operation Failed”

“API Call Limit Exceeded”

Debug Mode

Enable debug logging to see detailed information:

ddns --debug

Common Error Codes

API Limitations

Support and Resources

It is recommended to use sub-account API keys and grant only the necessary DNSPod permissions to improve security.