2022-08-05 02:40:27 +08:00
|
|
|
## Configuration
|
|
|
|
|
|
|
|
To use this provider, add an entry to `creds.json` with `TYPE` set to `RWTH`
|
|
|
|
along with your [API Token](https://noc-portal.rz.rwth-aachen.de/dns-admin/en/api_tokens).
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2023-03-03 05:17:27 +08:00
|
|
|
{% code title="creds.json" %}
|
2022-08-05 02:40:27 +08:00
|
|
|
```json
|
|
|
|
{
|
|
|
|
"rwth": {
|
|
|
|
"TYPE": "RWTH",
|
2022-11-27 00:22:28 +08:00
|
|
|
"api_token": "bQGz0DOi0AkTzG...="
|
2022-08-05 02:40:27 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
2023-03-03 05:17:27 +08:00
|
|
|
{% endcode %}
|
2022-08-05 02:40:27 +08:00
|
|
|
|
|
|
|
## Metadata
|
|
|
|
This provider does not recognize any special metadata fields unique to it.
|
|
|
|
|
|
|
|
## Usage
|
2023-03-11 21:42:01 +08:00
|
|
|
An example configuration:
|
2022-08-05 02:40:27 +08:00
|
|
|
|
2023-03-11 21:42:01 +08:00
|
|
|
{% code title="dnsconfig.js" %}
|
2023-01-20 20:56:20 +08:00
|
|
|
```javascript
|
2022-08-05 02:40:27 +08:00
|
|
|
var REG_NONE = NewRegistrar("none");
|
|
|
|
var DSP_RWTH = NewDnsProvider("rwth");
|
|
|
|
|
|
|
|
D("example.rwth-aachen.de", REG_NONE, DnsProvider(DSP_RWTH),
|
|
|
|
A("test", "1.2.3.4")
|
|
|
|
);
|
|
|
|
```
|
2023-03-11 21:42:01 +08:00
|
|
|
{% endcode %}
|
2022-08-05 02:40:27 +08:00
|
|
|
|
|
|
|
## Caveats
|
|
|
|
The default TTL is not automatically fetched, as the API does not provide such an endpoint.
|
|
|
|
|
|
|
|
The RWTH deploys zones every 15 minutes, so it might take some time for changes to take effect.
|