2017-03-19 02:58:47 +01:00
|
|
|
## Configuration
|
2022-05-08 14:41:33 -04:00
|
|
|
|
2022-07-22 06:36:28 -07:00
|
|
|
To use this provider, add an entry to `creds.json` with `TYPE` set to `DNSIMPLE`
|
2022-05-08 14:41:33 -04:00
|
|
|
along with a DNSimple account access token.
|
|
|
|
|
2022-07-22 06:36:28 -07:00
|
|
|
You can also set the `baseurl` to use [DNSimple's free sandbox](https://developer.dnsimple.com/sandbox/) for testing.
|
|
|
|
|
|
|
|
Examples:
|
2017-03-19 02:58:47 +01:00
|
|
|
|
2023-03-02 22:17:27 +01:00
|
|
|
{% code title="creds.json" %}
|
2022-02-17 18:22:31 +01:00
|
|
|
```json
|
2017-03-19 02:58:47 +01:00
|
|
|
{
|
2017-10-11 08:33:52 -04:00
|
|
|
"dnsimple": {
|
2022-05-08 14:41:33 -04:00
|
|
|
"TYPE": "DNSIMPLE",
|
2017-03-19 02:58:47 +01:00
|
|
|
"token": "your-dnsimple-account-access-token"
|
2022-07-22 06:36:28 -07:00
|
|
|
},
|
|
|
|
"dnsimple_sandbox": {
|
|
|
|
"TYPE": "DNSIMPLE",
|
|
|
|
"baseurl": "https://api.sandbox.dnsimple.com",
|
|
|
|
"token": "your-sandbox-account-access-token"
|
2017-03-19 02:58:47 +01:00
|
|
|
}
|
|
|
|
}
|
2022-02-17 18:22:31 +01:00
|
|
|
```
|
2023-03-02 22:17:27 +01:00
|
|
|
{% endcode %}
|
2017-03-19 02:58:47 +01:00
|
|
|
|
|
|
|
## Metadata
|
2024-01-02 21:54:13 +01:00
|
|
|
|
2017-03-19 02:58:47 +01:00
|
|
|
This provider does not recognize any special metadata fields unique to DNSimple.
|
|
|
|
|
|
|
|
## Usage
|
2024-01-02 21:54:13 +01:00
|
|
|
|
2023-03-11 14:42:01 +01:00
|
|
|
An example configuration:
|
2017-03-19 02:58:47 +01:00
|
|
|
|
2023-03-11 14:42:01 +01:00
|
|
|
{% code title="dnsconfig.js" %}
|
2023-01-20 13:56:20 +01:00
|
|
|
```javascript
|
2022-05-08 14:41:33 -04:00
|
|
|
var REG_DNSIMPLE = NewRegistrar("dnsimple");
|
|
|
|
var DSP_DNSIMPLE = NewDnsProvider("dnsimple");
|
2017-03-19 02:58:47 +01:00
|
|
|
|
2023-06-17 14:58:17 +02:00
|
|
|
D("example.com", REG_DNSIMPLE, DnsProvider(DSP_DNSIMPLE),
|
2022-05-08 14:41:33 -04:00
|
|
|
A("test", "1.2.3.4")
|
2017-03-19 02:58:47 +01:00
|
|
|
);
|
2022-02-17 18:22:31 +01:00
|
|
|
```
|
2023-03-11 14:42:01 +01:00
|
|
|
{% endcode %}
|
2017-03-19 02:58:47 +01:00
|
|
|
|
|
|
|
## Activation
|
2024-01-02 21:54:13 +01:00
|
|
|
|
2022-02-17 18:22:31 +01:00
|
|
|
DNSControl depends on a DNSimple account access token.
|
2022-07-08 22:14:04 -07:00
|
|
|
|
|
|
|
## Caveats
|
|
|
|
|
2024-01-02 21:54:13 +01: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.
|