2022-08-02 00:01:37 +08:00
|
|
|
## Configuration
|
|
|
|
|
|
|
|
To use this provider, add an entry to `creds.json` with `TYPE` set to `DOMAINNAMESHOP`
|
2022-08-20 12:51:25 +08:00
|
|
|
along with your [Domainnameshop Token and Secret](https://www.domeneshop.no/admin?view=api).
|
2022-08-02 00:01:37 +08:00
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2023-03-03 05:17:27 +08:00
|
|
|
{% code title="creds.json" %}
|
2022-08-02 00:01:37 +08:00
|
|
|
```json
|
|
|
|
{
|
|
|
|
"mydomainnameshop": {
|
|
|
|
"TYPE": "DOMAINNAMESHOP",
|
|
|
|
"token": "your-domainnameshop-token",
|
|
|
|
"secret": "your-domainnameshop-secret"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
2023-03-03 05:17:27 +08:00
|
|
|
{% endcode %}
|
2022-08-02 00:01:37 +08:00
|
|
|
|
|
|
|
## Metadata
|
2022-08-20 12:51:25 +08:00
|
|
|
This provider does not recognize any special metadata fields unique to Domainnameshop.
|
2022-08-02 00:01:37 +08:00
|
|
|
|
|
|
|
## Usage
|
2023-03-11 21:42:01 +08:00
|
|
|
An example configuration:
|
2022-08-02 00:01:37 +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-02 00:01:37 +08:00
|
|
|
var REG_NONE = NewRegistrar("none");
|
|
|
|
var DSP_DOMAINNAMESHOP = NewDnsProvider("mydomainnameshop");
|
|
|
|
|
2023-06-17 20:58:17 +08:00
|
|
|
D("example.com", REG_NONE, DnsProvider(DSP_DOMAINNAMESHOP),
|
2024-05-13 20:47:23 +08:00
|
|
|
A("test", "1.2.3.4"),
|
2024-12-17 20:46:37 +08:00
|
|
|
);
|
2022-08-02 00:01:37 +08:00
|
|
|
```
|
2023-03-11 21:42:01 +08:00
|
|
|
{% endcode %}
|
2022-08-02 00:01:37 +08:00
|
|
|
|
|
|
|
## Activation
|
|
|
|
[Create API Token and secret](https://www.domeneshop.no/admin?view=api)
|
|
|
|
|
|
|
|
## Limitations
|
|
|
|
|
2023-01-20 20:56:20 +08:00
|
|
|
- Domainnameshop DNS only supports TTLs which are a multiple of 60.
|