2020-04-18 01:58:44 +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 `NETCUP`
|
|
|
|
along with your [api key, password and your customer number](https://www.netcup-wiki.de/wiki/CCP_API#Authentifizierung).
|
|
|
|
|
|
|
|
Example:
|
2020-04-18 01:58:44 +08:00
|
|
|
|
2023-03-03 05:17:27 +08:00
|
|
|
{% code title="creds.json" %}
|
2022-02-18 01:22:31 +08:00
|
|
|
```json
|
2020-04-18 01:58:44 +08:00
|
|
|
{
|
|
|
|
"netcup": {
|
2022-05-09 02:41:33 +08:00
|
|
|
"TYPE": "NETCUP",
|
2020-04-18 01:58:44 +08:00
|
|
|
"api-key": "abc12345",
|
|
|
|
"api-password": "abc12345",
|
|
|
|
"customer-number": "123456"
|
|
|
|
}
|
|
|
|
}
|
2022-02-18 01:22:31 +08:00
|
|
|
```
|
2023-03-03 05:17:27 +08:00
|
|
|
{% endcode %}
|
2020-04-18 01:58:44 +08:00
|
|
|
|
|
|
|
## Usage
|
2023-03-11 21:42:01 +08:00
|
|
|
An example configuration:
|
2020-04-18 01:58:44 +08:00
|
|
|
|
2023-03-11 21:42:01 +08:00
|
|
|
{% code title="dnsconfig.js" %}
|
2023-01-20 20:56:20 +08:00
|
|
|
```javascript
|
2022-05-09 02:41:33 +08:00
|
|
|
var REG_NONE = NewRegistrar("none");
|
|
|
|
var DSP_NETCUP = NewDnsProvider("netcup");
|
2020-04-18 01:58:44 +08:00
|
|
|
|
2023-06-17 20:58:17 +08:00
|
|
|
D("example.com", REG_NONE, DnsProvider(DSP_NETCUP),
|
2022-05-09 02:41:33 +08:00
|
|
|
A("test", "1.2.3.4")
|
2020-04-18 01:58:44 +08:00
|
|
|
);
|
2022-02-18 01:22:31 +08:00
|
|
|
```
|
2023-03-11 21:42:01 +08:00
|
|
|
{% endcode %}
|
2020-04-18 01:58:44 +08:00
|
|
|
|
|
|
|
## Caveats
|
|
|
|
Netcup does not allow any TTLs to be set for individual records. Thus in
|
|
|
|
the diff/preview it will always show a TTL of 0. `NS` records are also
|
2020-10-09 19:50:35 +08:00
|
|
|
not currently supported.
|