2020-04-29 02:40:58 +08:00
|
|
|
## Configuration
|
2022-05-09 02:41:33 +08: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-29 02:40:58 +08:00
|
|
|
|
2022-02-18 01:22:31 +08:00
|
|
|
```json
|
2020-04-29 02:40:58 +08:00
|
|
|
{
|
|
|
|
"desec": {
|
2022-05-09 02:41:33 +08:00
|
|
|
"TYPE": "DESEC",
|
2020-04-29 02:40:58 +08:00
|
|
|
"auth-token": "your-deSEC-auth-token"
|
|
|
|
}
|
|
|
|
}
|
2022-02-18 01:22:31 +08:00
|
|
|
```
|
2020-04-29 02:40:58 +08:00
|
|
|
|
|
|
|
## Metadata
|
|
|
|
This provider does not recognize any special metadata fields unique to deSEC.
|
|
|
|
|
|
|
|
## Usage
|
2022-05-09 02:41:33 +08:00
|
|
|
An example `dnsconfig.js` configuration:
|
2020-04-29 02:40:58 +08:00
|
|
|
|
2023-01-20 20:56:20 +08:00
|
|
|
```javascript
|
2022-05-09 02:41:33 +08:00
|
|
|
var REG_NONE = NewRegistrar("none"); // No registrar.
|
|
|
|
var DSP_DESEC = NewDnsProvider("desec"); // deSEC
|
2020-04-29 02:40:58 +08:00
|
|
|
|
2022-05-09 02:41:33 +08:00
|
|
|
D("example.tld", REG_NONE, DnsProvider(DSP_DESEC),
|
|
|
|
A("test", "1.2.3.4")
|
2020-04-29 02:40:58 +08:00
|
|
|
);
|
2022-02-18 01:22:31 +08:00
|
|
|
```
|
2020-04-29 02:40:58 +08:00
|
|
|
|
|
|
|
## Activation
|
|
|
|
DNSControl depends on a deSEC account auth token.
|
2022-02-18 01:22:31 +08:00
|
|
|
This token can be obtained by logging in via the deSEC API: https://desec.readthedocs.io/en/latest/auth/account.html#log-in
|