2020-04-29 02:40:58 +08:00
|
|
|
---
|
|
|
|
name: deSEC
|
|
|
|
title: deSEC Provider
|
|
|
|
layout: default
|
|
|
|
jsId: DESEC
|
|
|
|
---
|
|
|
|
# deSEC Provider
|
|
|
|
## Configuration
|
|
|
|
In your providers credentials file you must provide a deSEC account auth token:
|
|
|
|
|
2022-02-18 01:22:31 +08:00
|
|
|
```json
|
2020-04-29 02:40:58 +08:00
|
|
|
{
|
|
|
|
"desec": {
|
|
|
|
"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
|
|
|
|
Example Javascript:
|
|
|
|
|
2022-02-18 01:22:31 +08:00
|
|
|
```js
|
2020-04-29 02:40:58 +08:00
|
|
|
var REG_NONE = NewRegistrar('none', 'NONE'); // No registrar.
|
|
|
|
var deSEC = NewDnsProvider('desec', 'DESEC'); // deSEC
|
|
|
|
|
|
|
|
D('example.tld', REG_NONE, DnsProvider(deSEC),
|
|
|
|
A('test','1.2.3.4')
|
|
|
|
);
|
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
|