2017-08-11 04:31:20 +08:00
---
2017-10-11 20:33:17 +08:00
name: DigitalOcean
title: DigitalOcean Provider
2017-08-11 04:31:20 +08:00
layout: default
jsId: DIGITALOCEAN
---
2017-10-11 20:33:17 +08:00
# DigitalOcean Provider
2017-08-11 04:31:20 +08:00
## Configuration
2017-10-12 01:13:31 +08:00
In your credentials file, you must provide your
2019-05-23 21:29:21 +08:00
[DigitalOcean OAuth Token ](https://cloud.digitalocean.com/settings/applications )
2017-08-11 04:31:20 +08:00
2022-02-18 01:22:31 +08:00
```json
2017-08-11 04:31:20 +08:00
{
2017-10-11 20:33:52 +08:00
"digitalocean": {
2017-08-11 04:31:20 +08:00
"token": "your-digitalocean-ouath-token"
}
}
2022-02-18 01:22:31 +08:00
```
2017-08-11 04:31:20 +08:00
## Metadata
2017-10-12 01:13:31 +08:00
This provider does not recognize any special metadata fields unique to DigitalOcean.
2017-08-11 04:31:20 +08:00
## Usage
2017-10-12 01:13:31 +08:00
Example Javascript:
2017-08-11 04:31:20 +08:00
2022-02-18 01:22:31 +08:00
```js
2017-10-11 20:33:52 +08:00
var REG_NONE = NewRegistrar('none', 'NONE')
2017-12-11 23:02:13 +08:00
var DIGITALOCEAN = NewDnsProvider("digitalocean", "DIGITALOCEAN");
2017-08-11 04:31:20 +08:00
2017-10-11 20:33:52 +08:00
D("example.tld", REG_NONE, DnsProvider(DIGITALOCEAN),
2017-08-11 04:31:20 +08:00
A("test","1.2.3.4")
);
2022-02-18 01:22:31 +08:00
```
2017-08-11 04:31:20 +08:00
## Activation
[Create OAuth Token ](https://cloud.digitalocean.com/settings/applications )
2020-01-25 01:21:01 +08:00
## Limitations
2020-11-18 21:22:31 +08: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-08 02:19:22 +08:00
their length is limited by the max API request of 512 octets.