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
2017-10-11 13:13:31 -04:00
In your credentials file, you must provide your
2019-05-23 06:29:21 -07:00
[DigitalOcean OAuth Token ](https://cloud.digitalocean.com/settings/applications )
2017-08-10 23:31:20 +03:00
{% highlight json %}
{
2017-10-11 08:33:52 -04:00
"digitalocean": {
2017-08-10 23:31:20 +03:00
"token": "your-digitalocean-ouath-token"
}
}
{% endhighlight %}
## 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
2017-10-11 13:13:31 -04:00
Example Javascript:
2017-08-10 23:31:20 +03:00
{% highlight js %}
2017-10-11 08:33:52 -04:00
var REG_NONE = NewRegistrar('none', 'NONE')
2017-12-11 09:02:13 -06:00
var DIGITALOCEAN = NewDnsProvider("digitalocean", "DIGITALOCEAN");
2017-08-10 23:31:20 +03:00
2017-10-11 08:33:52 -04:00
D("example.tld", REG_NONE, DnsProvider(DIGITALOCEAN),
2017-08-10 23:31:20 +03:00
A("test","1.2.3.4")
);
{%endhighlight%}
## Activation
[Create OAuth Token ](https://cloud.digitalocean.com/settings/applications )
2020-01-24 19:21:01 +02:00
## Limitations
- Digialocean DNS doesn't support `;` value with CAA-records ([DigitalOcean documentation ](https://www.digitalocean.com/docs/networking/dns/how-to/create-caa-records/ ))
- No support for TXT records with multiple strings, as the API prevents espacing quotes.