2017-03-19 09:58:47 +08:00
|
|
|
## Configuration
|
2022-05-09 02:41:33 +08:00
|
|
|
|
2022-07-22 21:36:28 +08:00
|
|
|
To use this provider, add an entry to `creds.json` with `TYPE` set to `DNSIMPLE`
|
2022-05-09 02:41:33 +08:00
|
|
|
along with a DNSimple account access token.
|
|
|
|
|
2022-07-22 21:36:28 +08:00
|
|
|
You can also set the `baseurl` to use [DNSimple's free sandbox](https://developer.dnsimple.com/sandbox/) for testing.
|
|
|
|
|
|
|
|
Examples:
|
2017-03-19 09:58:47 +08:00
|
|
|
|
2023-03-03 05:17:27 +08:00
|
|
|
{% code title="creds.json" %}
|
2022-02-18 01:22:31 +08:00
|
|
|
```json
|
2017-03-19 09:58:47 +08:00
|
|
|
{
|
2017-10-11 20:33:52 +08:00
|
|
|
"dnsimple": {
|
2022-05-09 02:41:33 +08:00
|
|
|
"TYPE": "DNSIMPLE",
|
2017-03-19 09:58:47 +08:00
|
|
|
"token": "your-dnsimple-account-access-token"
|
2022-07-22 21:36:28 +08:00
|
|
|
},
|
|
|
|
"dnsimple_sandbox": {
|
|
|
|
"TYPE": "DNSIMPLE",
|
|
|
|
"baseurl": "https://api.sandbox.dnsimple.com",
|
|
|
|
"token": "your-sandbox-account-access-token"
|
2017-03-19 09:58:47 +08:00
|
|
|
}
|
|
|
|
}
|
2022-02-18 01:22:31 +08:00
|
|
|
```
|
2023-03-03 05:17:27 +08:00
|
|
|
{% endcode %}
|
2017-03-19 09:58:47 +08:00
|
|
|
|
|
|
|
## Metadata
|
2024-01-03 04:54:13 +08:00
|
|
|
|
2017-03-19 09:58:47 +08:00
|
|
|
This provider does not recognize any special metadata fields unique to DNSimple.
|
|
|
|
|
|
|
|
## Usage
|
2024-01-03 04:54:13 +08:00
|
|
|
|
2023-03-11 21:42:01 +08:00
|
|
|
An example configuration:
|
2017-03-19 09:58:47 +08:00
|
|
|
|
2023-03-11 21:42:01 +08:00
|
|
|
{% code title="dnsconfig.js" %}
|
2023-01-20 20:56:20 +08:00
|
|
|
```javascript
|
2022-05-09 02:41:33 +08:00
|
|
|
var REG_DNSIMPLE = NewRegistrar("dnsimple");
|
|
|
|
var DSP_DNSIMPLE = NewDnsProvider("dnsimple");
|
2017-03-19 09:58:47 +08:00
|
|
|
|
2023-06-17 20:58:17 +08:00
|
|
|
D("example.com", REG_DNSIMPLE, DnsProvider(DSP_DNSIMPLE),
|
2022-05-09 02:41:33 +08:00
|
|
|
A("test", "1.2.3.4")
|
2017-03-19 09:58:47 +08:00
|
|
|
);
|
2022-02-18 01:22:31 +08:00
|
|
|
```
|
2023-03-11 21:42:01 +08:00
|
|
|
{% endcode %}
|
2017-03-19 09:58:47 +08:00
|
|
|
|
|
|
|
## Activation
|
2024-01-03 04:54:13 +08:00
|
|
|
|
2022-02-18 01:22:31 +08:00
|
|
|
DNSControl depends on a DNSimple account access token.
|
2022-07-09 13:14:04 +08:00
|
|
|
|
|
|
|
## Caveats
|
|
|
|
|
2024-01-03 04:54:13 +08:00
|
|
|
### TXT record length
|
|
|
|
|
|
|
|
The DNSimple API supports TXT records of up to 1000 "characters" (assumed to
|
|
|
|
be octets, per DNS norms, not Unicode characters in an encoding).
|
|
|
|
|
|
|
|
See https://support.dnsimple.com/articles/txt-record/
|
|
|
|
|
|
|
|
## Development
|
|
|
|
|
|
|
|
### Debugging
|
|
|
|
|
|
|
|
Set `DNSIMPLE_DEBUG_HTTP` environment variable to `1` to dump all API calls made by this provider.
|