2020-04-28 20:40:58 +02:00
|
|
|
## Configuration
|
2022-05-08 14:41:33 -04:00
|
|
|
|
|
|
|
To use this provider, add an entry to `creds.json` with `TYPE` set to `DESEC`
|
|
|
|
along with a deSEC account auth token.
|
|
|
|
|
|
|
|
Example:
|
2020-04-28 20:40:58 +02:00
|
|
|
|
2023-03-02 22:17:27 +01:00
|
|
|
{% code title="creds.json" %}
|
2022-02-17 18:22:31 +01:00
|
|
|
```json
|
2020-04-28 20:40:58 +02:00
|
|
|
{
|
|
|
|
"desec": {
|
2022-05-08 14:41:33 -04:00
|
|
|
"TYPE": "DESEC",
|
2020-04-28 20:40:58 +02:00
|
|
|
"auth-token": "your-deSEC-auth-token"
|
|
|
|
}
|
|
|
|
}
|
2022-02-17 18:22:31 +01:00
|
|
|
```
|
2023-03-02 22:17:27 +01:00
|
|
|
{% endcode %}
|
2020-04-28 20:40:58 +02:00
|
|
|
|
|
|
|
## Metadata
|
|
|
|
This provider does not recognize any special metadata fields unique to deSEC.
|
|
|
|
|
|
|
|
## Usage
|
2023-03-11 14:42:01 +01:00
|
|
|
An example configuration:
|
2020-04-28 20:40:58 +02:00
|
|
|
|
2023-03-11 14:42:01 +01:00
|
|
|
{% code title="dnsconfig.js" %}
|
2023-01-20 13:56:20 +01:00
|
|
|
```javascript
|
2023-05-21 19:31:35 +02:00
|
|
|
var REG_NONE = NewRegistrar("none");
|
|
|
|
var DSP_DESEC = NewDnsProvider("desec");
|
2020-04-28 20:40:58 +02:00
|
|
|
|
2022-05-08 14:41:33 -04:00
|
|
|
D("example.tld", REG_NONE, DnsProvider(DSP_DESEC),
|
|
|
|
A("test", "1.2.3.4")
|
2020-04-28 20:40:58 +02:00
|
|
|
);
|
2022-02-17 18:22:31 +01:00
|
|
|
```
|
2023-03-11 14:42:01 +01:00
|
|
|
{% endcode %}
|
2020-04-28 20:40:58 +02:00
|
|
|
|
|
|
|
## Activation
|
|
|
|
DNSControl depends on a deSEC account auth token.
|
2023-03-13 19:45:03 +01:00
|
|
|
This token can be obtained by [logging in via the deSEC API](https://desec.readthedocs.io/en/latest/auth/account.html#log-in).
|