mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
DOMAINNAMESHOP: Domainnameshop documentation update (#1726)
Co-authored-by: Simen Bai <git@simenbai.no>
This commit is contained in:
@ -31,7 +31,7 @@ Currently supported DNS providers:
|
|||||||
- DNS Made Easy
|
- DNS Made Easy
|
||||||
- DNSimple
|
- DNSimple
|
||||||
- DigitalOcean
|
- DigitalOcean
|
||||||
- DomainNameShop (domeneshop)
|
- Domainnameshop (Domeneshop)
|
||||||
- Exoscale
|
- Exoscale
|
||||||
- Gandi
|
- Gandi
|
||||||
- Google DNS
|
- Google DNS
|
||||||
|
@ -458,7 +458,7 @@
|
|||||||
<i class="fa fa-check text-success" aria-hidden="true"></i>
|
<i class="fa fa-check text-success" aria-hidden="true"></i>
|
||||||
</td>
|
</td>
|
||||||
<td><i class="fa fa-minus dim"></i></td>
|
<td><i class="fa fa-minus dim"></i></td>
|
||||||
<td class="info">
|
<td class="info" data-toggle="tooltip" data-container="body" data-placement="top" title="Needs custom implementation">
|
||||||
<i class="fa fa-circle-o text-info" aria-hidden="true"></i>
|
<i class="fa fa-circle-o text-info" aria-hidden="true"></i>
|
||||||
</td>
|
</td>
|
||||||
<td><i class="fa fa-minus dim"></i></td>
|
<td><i class="fa fa-minus dim"></i></td>
|
||||||
@ -740,8 +740,8 @@
|
|||||||
<i class="fa fa-check text-success" aria-hidden="true"></i>
|
<i class="fa fa-check text-success" aria-hidden="true"></i>
|
||||||
</td>
|
</td>
|
||||||
<td><i class="fa fa-minus dim"></i></td>
|
<td><i class="fa fa-minus dim"></i></td>
|
||||||
<td class="info">
|
<td class="danger" data-toggle="tooltip" data-container="body" data-placement="top" title="According to Domainnameshop this will probably never be supported">
|
||||||
<i class="fa fa-circle-o text-info" aria-hidden="true"></i>
|
<i class="fa has-tooltip fa-times text-danger" aria-hidden="true"></i>
|
||||||
</td>
|
</td>
|
||||||
<td><i class="fa fa-minus dim"></i></td>
|
<td><i class="fa fa-minus dim"></i></td>
|
||||||
<td class="success">
|
<td class="success">
|
||||||
@ -840,8 +840,8 @@
|
|||||||
</td>
|
</td>
|
||||||
<td><i class="fa fa-minus dim"></i></td>
|
<td><i class="fa fa-minus dim"></i></td>
|
||||||
<td><i class="fa fa-minus dim"></i></td>
|
<td><i class="fa fa-minus dim"></i></td>
|
||||||
<td class="danger">
|
<td class="danger" data-toggle="tooltip" data-container="body" data-placement="top" title="According to Domainnameshop this will probably never be supported">
|
||||||
<i class="fa fa-times text-danger" aria-hidden="true"></i>
|
<i class="fa has-tooltip fa-times text-danger" aria-hidden="true"></i>
|
||||||
</td>
|
</td>
|
||||||
<td><i class="fa fa-minus dim"></i></td>
|
<td><i class="fa fa-minus dim"></i></td>
|
||||||
<td><i class="fa fa-minus dim"></i></td>
|
<td><i class="fa fa-minus dim"></i></td>
|
||||||
@ -1090,8 +1090,8 @@
|
|||||||
<i class="fa fa-times text-danger" aria-hidden="true"></i>
|
<i class="fa fa-times text-danger" aria-hidden="true"></i>
|
||||||
</td>
|
</td>
|
||||||
<td><i class="fa fa-minus dim"></i></td>
|
<td><i class="fa fa-minus dim"></i></td>
|
||||||
<td class="danger">
|
<td class="danger" data-toggle="tooltip" data-container="body" data-placement="top" title="Might be supported in the future">
|
||||||
<i class="fa fa-times text-danger" aria-hidden="true"></i>
|
<i class="fa has-tooltip fa-times text-danger" aria-hidden="true"></i>
|
||||||
</td>
|
</td>
|
||||||
<td><i class="fa fa-minus dim"></i></td>
|
<td><i class="fa fa-minus dim"></i></td>
|
||||||
<td><i class="fa fa-minus dim"></i></td>
|
<td><i class="fa fa-minus dim"></i></td>
|
||||||
@ -1180,7 +1180,7 @@
|
|||||||
<i class="fa fa-times text-danger" aria-hidden="true"></i>
|
<i class="fa fa-times text-danger" aria-hidden="true"></i>
|
||||||
</td>
|
</td>
|
||||||
<td><i class="fa fa-minus dim"></i></td>
|
<td><i class="fa fa-minus dim"></i></td>
|
||||||
<td class="info">
|
<td class="info" data-toggle="tooltip" data-container="body" data-placement="top" title="Has support but no documentation. Needs to be investigated.">
|
||||||
<i class="fa fa-circle-o text-info" aria-hidden="true"></i>
|
<i class="fa fa-circle-o text-info" aria-hidden="true"></i>
|
||||||
</td>
|
</td>
|
||||||
<td><i class="fa fa-minus dim"></i></td>
|
<td><i class="fa fa-minus dim"></i></td>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
name: DomainNameShop
|
name: Domainnameshop
|
||||||
title: DomainNameShop Provider
|
title: Domainnameshop Provider
|
||||||
layout: default
|
layout: default
|
||||||
jsId: DOMAINNAMESHOP
|
jsId: DOMAINNAMESHOP
|
||||||
---
|
---
|
||||||
@ -9,7 +9,7 @@ jsId: DOMAINNAMESHOP
|
|||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
To use this provider, add an entry to `creds.json` with `TYPE` set to `DOMAINNAMESHOP`
|
To use this provider, add an entry to `creds.json` with `TYPE` set to `DOMAINNAMESHOP`
|
||||||
along with your [DomainNameShop Token and Secret](https://www.domeneshop.no/admin?view=api).
|
along with your [Domainnameshop Token and Secret](https://www.domeneshop.no/admin?view=api).
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
@ -24,7 +24,7 @@ Example:
|
|||||||
```
|
```
|
||||||
|
|
||||||
## Metadata
|
## Metadata
|
||||||
This provider does not recognize any special metadata fields unique to DomainNameShop.
|
This provider does not recognize any special metadata fields unique to Domainnameshop.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
An example `dnsconfig.js` configuration:
|
An example `dnsconfig.js` configuration:
|
||||||
@ -43,4 +43,4 @@ D("example.tld", REG_NONE, DnsProvider(DSP_DOMAINNAMESHOP),
|
|||||||
|
|
||||||
## Limitations
|
## Limitations
|
||||||
|
|
||||||
- DomainNameShop DNS only supports TTLs which are a multiple of 60.
|
- Domainnameshop DNS only supports TTLs which are a multiple of 60.
|
@ -9,7 +9,7 @@ import (
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
DomainNameShop Provider
|
Domainnameshop Provider
|
||||||
|
|
||||||
Info required in 'creds.json':
|
Info required in 'creds.json':
|
||||||
- token API Token
|
- token API Token
|
||||||
@ -25,16 +25,16 @@ type domainNameShopProvider struct {
|
|||||||
var features = providers.DocumentationNotes{
|
var features = providers.DocumentationNotes{
|
||||||
providers.CanAutoDNSSEC: providers.Cannot(), // Maybe there is support for it
|
providers.CanAutoDNSSEC: providers.Cannot(), // Maybe there is support for it
|
||||||
providers.CanGetZones: providers.Unimplemented(), //
|
providers.CanGetZones: providers.Unimplemented(), //
|
||||||
providers.CanUseAlias: providers.Unimplemented(), // Can possibly be implemented, needs further research
|
providers.CanUseAlias: providers.Unimplemented("Needs custom implementation"), // Can possibly be implemented, needs further research
|
||||||
providers.CanUseCAA: providers.Can(),
|
providers.CanUseCAA: providers.Can(),
|
||||||
providers.CanUseDS: providers.Unimplemented(), // Seems to support but needs to be implemented
|
providers.CanUseDS: providers.Unimplemented(), // Seems to support but needs to be implemented
|
||||||
providers.CanUseDSForChildren: providers.Unimplemented(), // Seems to support but needs to be implemented
|
providers.CanUseDSForChildren: providers.Unimplemented(), // Seems to support but needs to be implemented
|
||||||
providers.CanUseNAPTR: providers.Cannot(), // Does not seem to support it
|
providers.CanUseNAPTR: providers.Cannot("According to Domainnameshop this will probably never be supported"), // Does not seem to support it
|
||||||
providers.CanUsePTR: providers.Unimplemented(), // Seems to support but needs to be implemented
|
providers.CanUsePTR: providers.Cannot("According to Domainnameshop this will probably never be supported"), // Seems to support but needs to be implemented
|
||||||
providers.CanUseSOA: providers.Cannot(), // Does not seem to support it
|
providers.CanUseSOA: providers.Cannot(), // Does not seem to support it
|
||||||
providers.CanUseSRV: providers.Can(),
|
providers.CanUseSRV: providers.Can(),
|
||||||
providers.CanUseSSHFP: providers.Cannot(), // Does not seem to support it
|
providers.CanUseSSHFP: providers.Cannot("Might be supported in the future"), // Does not seem to support it
|
||||||
providers.CanUseTLSA: providers.Unimplemented(), // Seems to support but needs to be implemented
|
providers.CanUseTLSA: providers.Unimplemented("Has support but no documentation. Needs to be investigated."), // Seems to support but needs to be implemented
|
||||||
providers.DocCreateDomains: providers.Unimplemented(), // Not tested
|
providers.DocCreateDomains: providers.Unimplemented(), // Not tested
|
||||||
providers.DocDualHost: providers.Unimplemented(), // Not tested
|
providers.DocDualHost: providers.Unimplemented(), // Not tested
|
||||||
providers.DocOfficiallySupported: providers.Cannot(),
|
providers.DocOfficiallySupported: providers.Cannot(),
|
||||||
@ -51,12 +51,12 @@ func init() {
|
|||||||
providers.RegisterDomainServiceProviderType("DOMAINNAMESHOP", fns, features)
|
providers.RegisterDomainServiceProviderType("DOMAINNAMESHOP", fns, features)
|
||||||
}
|
}
|
||||||
|
|
||||||
// newDomainNameShopProvider creates a DomainNameShop specific DNS provider.
|
// newDomainNameShopProvider creates a Domainnameshop specific DNS provider.
|
||||||
func newDomainNameShopProvider(conf map[string]string, metadata json.RawMessage) (providers.DNSServiceProvider, error) {
|
func newDomainNameShopProvider(conf map[string]string, metadata json.RawMessage) (providers.DNSServiceProvider, error) {
|
||||||
if conf["token"] == "" {
|
if conf["token"] == "" {
|
||||||
return nil, fmt.Errorf("no DomainNameShop token provided")
|
return nil, fmt.Errorf("no Domainnameshop token provided")
|
||||||
} else if conf["secret"] == "" {
|
} else if conf["secret"] == "" {
|
||||||
return nil, fmt.Errorf("no DomainNameShop secret provided")
|
return nil, fmt.Errorf("no Domainnameshop secret provided")
|
||||||
}
|
}
|
||||||
|
|
||||||
api := &domainNameShopProvider{
|
api := &domainNameShopProvider{
|
||||||
@ -76,7 +76,7 @@ type domainResponse struct {
|
|||||||
|
|
||||||
// The Actual fields are the values in the right format according to what is needed for RecordConfig.
|
// The Actual fields are the values in the right format according to what is needed for RecordConfig.
|
||||||
//
|
//
|
||||||
// While the values without Actual are the values directly as received from the DomainNameShop API.
|
// While the values without Actual are the values directly as received from the Domainnameshop API.
|
||||||
// This is done to make it easier to use the values at later points.
|
// This is done to make it easier to use the values at later points.
|
||||||
type domainNameShopRecord struct {
|
type domainNameShopRecord struct {
|
||||||
ID int `json:"id"`
|
ID int `json:"id"`
|
||||||
|
Reference in New Issue
Block a user