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:
|
|
|
|
|
2023-03-03 05:17:27 +08:00
|
|
|
{% code title="creds.json" %}
|
2022-11-16 01:40:08 +08:00
|
|
|
```json
|
|
|
|
{
|
|
|
|
"gcore": {
|
|
|
|
"TYPE": "GCORE",
|
|
|
|
"api-key": "your-gcore-api-key"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
2023-03-03 05:17:27 +08:00
|
|
|
{% endcode %}
|
2022-11-16 01:40:08 +08:00
|
|
|
|
|
|
|
## Metadata
|
|
|
|
This provider does not recognize any special metadata fields unique to Gcore.
|
|
|
|
|
|
|
|
## Usage
|
2023-03-11 21:42:01 +08:00
|
|
|
An example configuration:
|
2022-11-16 01:40:08 +08:00
|
|
|
|
2023-03-11 21:42:01 +08:00
|
|
|
{% code title="dnsconfig.js" %}
|
2023-01-20 20:56:20 +08:00
|
|
|
```javascript
|
2023-05-22 01:31:35 +08:00
|
|
|
var REG_NONE = NewRegistrar("none");
|
|
|
|
var DSP_GCORE = NewDnsProvider("gcore");
|
2022-11-16 01:40:08 +08:00
|
|
|
|
|
|
|
D("example.tld", REG_NONE, DnsProvider(DSP_GCORE),
|
|
|
|
A("test", "1.2.3.4")
|
|
|
|
);
|
|
|
|
```
|
2023-03-11 21:42:01 +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>
|