Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions providers/autodns/autoDnsProvider.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,38 @@ func init() {
}, features)
providers.RegisterDomainServiceProviderType(providerName, fns, features)
providers.RegisterMaintainer(providerName, providerMaintainer)
providers.RegisterCredsMetadata(providerName, providers.CredsMetadata{
DisplayName: "AutoDNS",
Kind: providers.KindDNS | providers.KindRegistrar,
DocsURL: "https://docs.dnscontrol.org/provider/autodns",
PortalURL: "https://login.autodns.com/", // TODO: Verify

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be honest I've never used this, the reseller that manages AutoDNS is based in the Netherlands so I always used https://login.autodns.nl/.

The API is on api.autodns.com (the .com-tld) so I guess this is correct.

Fields: []providers.CredsField{
{
Key: "username",
Label: "Username",
Help: "AutoDNS / Domainrobot username.",
Required: true,
},
{
Key: "password",
Label: "Password",
Help: "AutoDNS / Domainrobot password.",
Secret: true,
Required: true,
},
{
Key: "context",
Label: "Context",
Help: "Value for the X-Domainrobot-Context header.",
Required: true,
},
{
Key: "children",
Label: "Include sub-user zones",
Help: "Set to \"true\" so get-zones also lists zones owned by sub-users (master/admin accounts). Optional; defaults to off.",
},
},
})
}

func newAutoDNSProvider(settings map[string]string) *autoDNSProvider {
Expand Down
Loading