dnscontrol/documentation/provider/gcore.md

41 lines
791 B
Markdown
Raw Normal View History

2022-11-16 01:40:08 +08:00
## Configuration
To use this provider, add an entry to `creds.json` with `TYPE` set to `GCORE`
along with a Gcore account API token.
Example:
{% code title="creds.json" %}
2022-11-16 01:40:08 +08:00
```json
{
"gcore": {
"TYPE": "GCORE",
"api-key": "your-gcore-api-key"
}
}
```
{% endcode %}
2022-11-16 01:40:08 +08:00
## Metadata
This provider does not recognize any special metadata fields unique to Gcore.
## Usage
An example configuration:
2022-11-16 01:40:08 +08:00
{% code title="dnsconfig.js" %}
```javascript
var REG_NONE = NewRegistrar("none");
var DSP_GCORE = NewDnsProvider("gcore");
2022-11-16 01:40:08 +08:00
D("example.com", REG_NONE, DnsProvider(DSP_GCORE),
A("test", "1.2.3.4"),
END);
2022-11-16 01:40:08 +08:00
```
{% endcode %}
2022-11-16 01:40:08 +08:00
## Activation
DNSControl depends on a Gcore account API token.
You can obtain your API token on this page: <https://accounts.gcore.com/profile/api-tokens>