> For the complete documentation index, see [llms.txt](https://docs.dnscontrol.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dnscontrol.org/provider/cloudns.md). Agents can also search and read this documentation through its [MCP server](https://docs.dnscontrol.org/~gitbook/mcp).

# ClouDNS

### Configuration

To use this provider, add an entry to `creds.json` with `TYPE` set to `CLOUDNS` along with your [Api user ID and password](https://www.cloudns.net/wiki/article/42/).

Example:

{% code title="creds.json" %}

```json
{
  "cloudns": {
    "TYPE": "CLOUDNS",
    "auth-id": "12345",
    "sub-auth-id": "12345",
    "auth-password": "your-password"
  }
}
```

{% endcode %}

Current version of provider doesn't support `sub-auth-user`.

### Records

ClouDNS does support DS Record on subdomains (not the apex domain itself).

ClouDNS requires NS records exist for any DS records. No other records for the same label may exist (A, MX, TXT, etc.). If DNSControl is adding NS and DS records in the same update, the NS records will be inserted first.

### Metadata

This provider does not recognize any special metadata fields unique to ClouDNS.

### Web Redirects

ClouDNS supports ClouDNS-specific "WR record (web redirects)" for your domains. Simply use the `CLOUDNS_WR` functions to make redirects like any other record:

{% code title="dnsconfig.js" %}

```javascript
D("example.com", REGISTRAR(), SERVICE("cloudns"),
  CLOUDNS_WR("@", "http://example.com/"),
  CLOUDNS_WR("www", "http://example.com/"),
);
```

{% endcode %}

### Usage

An example configuration:

{% code title="dnsconfig.js" %}

```javascript
D("example.com", REGISTRAR(), SERVICE("cloudns"),
    A("test", "1.2.3.4"),
);
```

{% endcode %}

### Activation

[Create Auth ID](https://www.cloudns.net/api-settings/). Only paid account can use API

### Caveats

ClouDNS does not allow all TTLs, only a specific subset of TTLs. By default, the following [TTLs are supported](https://www.cloudns.net/wiki/article/188/):

* 60 (1 minute)
* 300 (5 minutes)
* 900 (15 minutes)
* 1800 (30 minutes)
* 3600 (1 hour)
* 21600 (6 hours)
* 43200 (12 hours)
* 86400 (1 day)
* 172800 (2 days)
* 259200 (3 days)
* 604800 (1 week)
* 1209600 (2 weeks)
* 2419200 (4 weeks)

The provider will automatically round up your TTL to one of these values. For example, 350 seconds would become 900 seconds, but 300 seconds would stay 300 seconds.

This provider may not work propoerly with SKIP\_AUDIT. If you need to use SKIP\_AUDIT with this provider, please [file a bug report](https://github.com/DNSControl/dnscontrol/issues/new/choose).

### Feature Summary

* Support Level and Type
  * [Official Support](https://docs.dnscontrol.org/provider/index.md#providers-with-official-support): ❌
  * DNS Provider: ✅
  * Registrar: ✅
* API-level Features
  * [Concurrent fetching](https://docs.dnscontrol.org/advanced-features/concurrency-verified.md): ✅
  * [dual host](https://docs.dnscontrol.org/advanced-features/dual-host.md): ✅
  * create-domains: ✅
  * [get-zones](https://docs.dnscontrol.org/commands/get-zones.md): ✅
  * [AUTODNSSEC](https://docs.dnscontrol.org/language-reference/domain-modifiers/autodnssec_on.md): ✅
* Supported Record Types
  * [A](https://docs.dnscontrol.org/language-reference/domain-modifiers/a.md) [AAAA](https://docs.dnscontrol.org/language-reference/domain-modifiers/aaaa.md) [ALIAS](https://docs.dnscontrol.org/language-reference/domain-modifiers/alias.md) [CAA](https://docs.dnscontrol.org/language-reference/domain-modifiers/caa.md) [CLOUDNS\_WR](https://docs.dnscontrol.org/language-reference/domain-modifiers/service-provider-specific/cloudns/cloudns_wr.md) [CNAME](https://docs.dnscontrol.org/language-reference/domain-modifiers/cname.md) [DNAME](https://docs.dnscontrol.org/language-reference/domain-modifiers/dname.md) [LOC](https://docs.dnscontrol.org/language-reference/domain-modifiers/loc.md) [MX](https://docs.dnscontrol.org/language-reference/domain-modifiers/mx.md) [NAPTR](https://docs.dnscontrol.org/language-reference/domain-modifiers/naptr.md) [NS](https://docs.dnscontrol.org/language-reference/domain-modifiers/ns.md) [PTR](https://docs.dnscontrol.org/language-reference/domain-modifiers/ptr.md) [SRV](https://docs.dnscontrol.org/language-reference/domain-modifiers/srv.md) [SSHFP](https://docs.dnscontrol.org/language-reference/domain-modifiers/sshfp.md) [TLSA](https://docs.dnscontrol.org/language-reference/domain-modifiers/tlsa.md) [TXT](https://docs.dnscontrol.org/language-reference/domain-modifiers/txt.md)
    * Unimplemented: [SOA](https://docs.dnscontrol.org/language-reference/domain-modifiers/soa.md) (Supported by cloudns at a separate API endpoint (/dns/modify-soa.json), not implemented yet)
    * Not supported: [DS](https://docs.dnscontrol.org/language-reference/domain-modifiers/ds.md) (Not supported for root, only for children)
