mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-02-25 16:13:04 +08:00
* Replace Jekyll highlight tags with fenced code blocks Replace Jekyll highlight tags with fenced code blocks. Canonicalize javascript to js. Correct highlighting languages. Add highlighting to code blocks. Remove leading $ from bash blocks. Remove empty lines at start and end of code blocks. Stripped trailing whitespace. * Fix language of code highlighting
43 lines
1.1 KiB
Markdown
43 lines
1.1 KiB
Markdown
---
|
|
name: DigitalOcean
|
|
title: DigitalOcean Provider
|
|
layout: default
|
|
jsId: DIGITALOCEAN
|
|
---
|
|
# DigitalOcean Provider
|
|
|
|
## Configuration
|
|
In your credentials file, you must provide your
|
|
[DigitalOcean OAuth Token](https://cloud.digitalocean.com/settings/applications)
|
|
|
|
```json
|
|
{
|
|
"digitalocean": {
|
|
"token": "your-digitalocean-ouath-token"
|
|
}
|
|
}
|
|
```
|
|
|
|
## Metadata
|
|
This provider does not recognize any special metadata fields unique to DigitalOcean.
|
|
|
|
## Usage
|
|
Example Javascript:
|
|
|
|
```js
|
|
var REG_NONE = NewRegistrar('none', 'NONE')
|
|
var DIGITALOCEAN = NewDnsProvider("digitalocean", "DIGITALOCEAN");
|
|
|
|
D("example.tld", REG_NONE, DnsProvider(DIGITALOCEAN),
|
|
A("test","1.2.3.4")
|
|
);
|
|
```
|
|
|
|
## Activation
|
|
[Create OAuth Token](https://cloud.digitalocean.com/settings/applications)
|
|
|
|
## Limitations
|
|
|
|
- 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,
|
|
their length is limited by the max API request of 512 octets.
|