DDNS

Alibaba Cloud DNS Configuration Guide

Overview

Alibaba Cloud DNS (AliDNS) is an authoritative DNS resolution service provided by Alibaba Cloud, supporting high concurrency and high availability domain name resolution. This DDNS project supports authentication through Alibaba Cloud AccessKey.

Authentication Method

AccessKey Authentication

Alibaba Cloud DNS uses AccessKey ID and AccessKey Secret for API authentication, which is the standard authentication method for Alibaba Cloud.

How to Obtain AccessKey

  1. Login to Alibaba Cloud Console
  2. Go to AccessKey Management
  3. Create New AccessKey
    • Click the “Create AccessKey” button
    • Copy the generated AccessKey ID and AccessKey Secret
    • Important: Save both values securely
  4. Verify Permissions
    • Ensure your account has Alibaba Cloud DNS operation permissions
    • Check RAM Access Control if needed

Configuration Using AccessKey

{
  "dns": "alidns",
  "id": "LTAI4xxxxxxxxxxxxxxx",
  "token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}

Parameters:

Complete Configuration Examples

Basic Configuration

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

Configuration with Optional Parameters

{
  "id": "LTAI4xxxxxxxxxxxxxxx",
  "token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "dns": "alidns",
  "ipv6": ["dynamic.mydomain.com"],
  "ttl": 600,
  "record_type": "A"
}

Optional Configuration Parameters

TTL (Time To Live)

{
  "ttl": 600
}

Record Type

{
  "record_type": "A"
}

Resolution Line

{
  "line": "default"
}

Permission Requirements

Ensure the Alibaba Cloud account has the following permissions:

You can view and configure permissions in the RAM Access Control.

Troubleshooting

Common Issues

“Signature Error” or “Authentication Failed”

“Domain Does Not Exist”

“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 RAM sub-accounts and grant only the necessary DNS permissions to improve security. Regularly rotate AccessKeys to ensure account security.