Skip to content

West.cn Configuration Guide ​

Overview ​

West.cn is a well-known domain service provider in China, offering domain registration, DNS resolution and other services. This DDNS project supports dynamic DNS record management for West.cn.

Official Links:

Note: 35.cn (三五互联) uses the same API and can use 35cn as the provider identifier.

Authentication Information ​

West.cn supports two authentication methods:

Authenticate using the domain management password, only requires token (apidomainkey).

Obtaining Credentials ​

  1. Login to West.cn Member Center
  2. Go to "Domain Management" > Select domain > "Management Password"
  3. Copy the APIkey (32-character MD5 value), which is the MD5 hash of the domain management password
json
{
    "dns": "west",
    "token": "ec4c66e34561428b2e9ad65048f9bsed"  // Domain APIkey
}

2. Account Authentication ​

Authenticate using member account and API password.

Obtaining Credentials ​

  1. Login to West.cn Member Center
  2. Go to "Account Management" > "API Interface Settings"
  3. Set the API password
  4. id is your member account username
  5. token is the 32-character MD5 of your API password
json
{
    "dns": "west",
    "id": "your_username",                      // Member account
    "token": "md5_of_your_api_password"         // MD5 of API password
}

Complete Configuration Examples ​

Domain Authentication ​

json
{
    "$schema": "https://ddns.newfuture.cc/schema/v4.1.json",
    "dns": "west",
    "token": "ec4c66e34561428b2e9ad65048f9bsed",
    "index4": ["url:http://api.ipify.cn", "public"],
    "index6": "public",
    "ipv4": ["ddns.example.com"],
    "ipv6": ["ipv6.example.com"],
    "ttl": 900
}

Account Authentication ​

json
{
    "$schema": "https://ddns.newfuture.cc/schema/v4.1.json",
    "dns": "west",
    "id": "your_username",
    "token": "md5_of_your_api_password",
    "index4": ["url:http://api.ipify.cn", "public"],
    "index6": "public",
    "ipv4": ["ddns.example.com"],
    "ipv6": ["ipv6.example.com"],
    "ttl": 900
}

35.cn Configuration ​

35.cn uses the same API, just change the dns parameter or use the endpoint parameter:

json
{
    "$schema": "https://ddns.newfuture.cc/schema/v4.1.json",
    "dns": "35cn",
    "token": "your_apidomainkey",
    "endpoint": "https://api.35.cn/API/v2/domain/dns/",
    "ipv4": ["ddns.example.com"]
}

Parameter Description ​

ParameterDescriptionTypeRange/OptionsDefaultParameter Type
dnsProvider identifierStringwest, 35cnNoneProvider Parameter
idMember accountStringRequired for account authNoneProvider Parameter
tokenAuth credentialStringapidomainkey or MD5(API password)NoneProvider Parameter
endpointAPI endpointStringCustom API endpointWest.cnProvider Parameter
index4IPv4 sourceArrayReferencedefaultCommon Config
index6IPv6 sourceArrayReferencedefaultCommon Config
ipv4IPv4 domainsArrayDomain listNoneCommon Config
ipv6IPv6 domainsArrayDomain listNoneCommon Config
lineResolution lineStringReference belowDefaultProvider Parameter
ttlTTL timeInteger (seconds)60 - 86400900Provider Parameter
proxyProxy settingsArrayReferenceNoneCommon Network
sslSSL verificationBoolean/String"auto", true, falseautoCommon Network
cacheCache settingsBoolean/Stringtrue, false, filepathtrueCommon Config
logLog configurationObjectReferenceNoneCommon 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

line ​

The line parameter specifies DNS resolution lines. West.cn supported line codes:

Line CodeDescription
(empty)Default line
LTELChina Telecom
LCNCChina Unicom
LMOBChina Mobile
LEDUChina Education Network
LSEOSearch Engine
LFOROverseas

Troubleshooting ​

Debug Mode ​

Enable debug logging to view detailed information:

sh
ddns -c config.json --debug

Common Issues ​

  • Authentication Failed: Check if APIkey or account password is correct, confirm token is a 32-character MD5 value
  • Domain Not Found: Ensure domain is under your West.cn account, check configuration spelling
  • Record Creation Failed: Check if subdomain has conflicting records, verify TTL settings are reasonable
  • Request Rate Limit: Reduce request frequency

Support and Resources ​

Recommendation: Use domain authentication (apidomainkey) for simpler and more secure configuration.

Released under the MIT License