2017-08-10 23:31:20 +03:00
---
2017-10-11 08:33:17 -04:00
name: DigitalOcean
title: DigitalOcean Provider
2017-08-10 23:31:20 +03:00
layout: default
jsId: DIGITALOCEAN
---
2017-10-11 08:33:17 -04:00
# DigitalOcean Provider
2017-08-10 23:31:20 +03:00
## Configuration
2022-05-08 14:41:33 -04:00
To use this provider, add an entry to `creds.json` with `TYPE` set to `DIGITALOCEAN`
along with your [DigitalOcean OAuth Token ](https://cloud.digitalocean.com/settings/applications ).
Example:
2017-08-10 23:31:20 +03:00
2022-02-17 18:22:31 +01:00
```json
2017-08-10 23:31:20 +03:00
{
2022-05-08 14:41:33 -04:00
"mydigitalocean": {
"TYPE": "DIGITALOCEAN",
2017-08-10 23:31:20 +03:00
"token": "your-digitalocean-ouath-token"
}
}
2022-02-17 18:22:31 +01:00
```
2017-08-10 23:31:20 +03:00
## Metadata
2017-10-11 13:13:31 -04:00
This provider does not recognize any special metadata fields unique to DigitalOcean.
2017-08-10 23:31:20 +03:00
## Usage
2022-05-08 14:41:33 -04:00
An example `dnsconfig.js` configuration:
2017-08-10 23:31:20 +03:00
2022-02-17 18:22:31 +01:00
```js
2022-05-08 14:41:33 -04:00
var REG_NONE = NewRegistrar("none");
var DSP_DIGITALOCEAN = NewDnsProvider("mydigitalocean");
2017-08-10 23:31:20 +03:00
2022-05-08 14:41:33 -04:00
D("example.tld", REG_NONE, DnsProvider(DSP_DIGITALOCEAN),
A("test", "1.2.3.4")
2017-08-10 23:31:20 +03:00
);
2022-02-17 18:22:31 +01:00
```
2017-08-10 23:31:20 +03:00
## Activation
[Create OAuth Token ](https://cloud.digitalocean.com/settings/applications )
2020-01-24 19:21:01 +02:00
## Limitations
2020-11-18 08:22:31 -05:00
- Digitalocean DNS doesn't support `;` value with CAA-records ([DigitalOcean documentation ](https://www.digitalocean.com/docs/networking/dns/how-to/create-caa-records/ ))
- While Digitalocean DNS supports TXT records with multiple strings,
2021-03-07 13:19:22 -05:00
their length is limited by the max API request of 512 octets.