github.com/teknogeek/dnscontrol/v2@v2.10.1-0.20200227202244-ae299b55ba42/docs/_providers/cloudns.md (about)

     1  ---
     2  name: ClouDNS
     3  title: ClouDNS Provider
     4  layout: default
     5  jsId: CLOUDNS
     6  ---
     7  # ClouDNS Provider
     8  
     9  ## Configuration
    10  In your credentials file, you must provide your [Api user ID and password](https://asia.cloudns.net/wiki/article/42/). 
    11  
    12  Current version of provider doesn't support `sub-auth-id` or  `sub-auth-user`. 
    13  
    14  {% highlight json %}
    15  {
    16    "cloudns": {
    17      "auth-id": "12345",
    18      "auth-password": "your-password"
    19    }
    20  }
    21  {% endhighlight %}
    22  
    23  ## Metadata
    24  This provider does not recognize any special metadata fields unique to ClouDNS.
    25  
    26  ## Usage
    27  Example Javascript:
    28  
    29  {% highlight js %}
    30  var REG_NONE = NewRegistrar('none', 'NONE')
    31  var CLOUDNS = NewDnsProvider("cloudns", "CLOUDNS");
    32  
    33  D("example.tld", REG_NONE, DnsProvider(CLOUDNS),
    34      A("test","1.2.3.4")
    35  );
    36  {%endhighlight%}
    37  
    38  ## Activation
    39  [Create Auth ID](https://asia.cloudns.net/api-settings/).  Only paid account can use API
    40  
    41  ## Caveats
    42  ClouDNS does not allow all TTLs, but only a specific subset of TTLs. The following [TTLs are supported](https://asia.cloudns.net/wiki/article/188/):
    43  - 60  (1 minute)
    44  - 300 (5 minutes)
    45  - 900 (15 minutes)
    46  - 1800 (30 minutes)
    47  - 3600 (1 hour)
    48  - 21600 (6 hours)
    49  - 43200 (12 hours)
    50  - 86400 (1 day)
    51  - 172800 (2 days)
    52  - 259200 (3 days)
    53  - 604800 (1 week)
    54  - 1209600 (2 weeks)
    55  - 2419200 (4 weeks)
    56  
    57  The provider will automatically round up your TTL to one of these values. For example, 350 seconds would become 900
    58  seconds, but 300 seconds would stay 300 seconds.