2019-03-11 18:56:48 +02:00
|
|
|
package dns
|
2016-11-18 15:12:13 +02:00
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
2019-07-30 21:19:32 +02:00
|
|
|
"github.com/go-acme/lego/v3/challenge"
|
|
|
|
"github.com/go-acme/lego/v3/challenge/dns01"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/acmedns"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/alidns"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/auroradns"
|
2019-11-01 12:20:34 +02:00
|
|
|
"github.com/go-acme/lego/v3/providers/dns/autodns"
|
2019-07-30 21:19:32 +02:00
|
|
|
"github.com/go-acme/lego/v3/providers/dns/azure"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/bindman"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/bluecat"
|
2019-12-08 00:59:59 +02:00
|
|
|
"github.com/go-acme/lego/v3/providers/dns/checkdomain"
|
2019-07-30 21:19:32 +02:00
|
|
|
"github.com/go-acme/lego/v3/providers/dns/cloudflare"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/cloudns"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/cloudxns"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/conoha"
|
2020-02-25 22:56:40 +02:00
|
|
|
"github.com/go-acme/lego/v3/providers/dns/constellix"
|
2019-07-30 21:19:32 +02:00
|
|
|
"github.com/go-acme/lego/v3/providers/dns/designate"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/digitalocean"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/dnsimple"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/dnsmadeeasy"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/dnspod"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/dode"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/dreamhost"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/duckdns"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/dyn"
|
2020-03-10 13:31:33 +02:00
|
|
|
"github.com/go-acme/lego/v3/providers/dns/dynu"
|
2019-07-30 21:19:32 +02:00
|
|
|
"github.com/go-acme/lego/v3/providers/dns/easydns"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/exec"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/exoscale"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/fastdns"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/gandi"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/gandiv5"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/gcloud"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/glesys"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/godaddy"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/hostingde"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/httpreq"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/iij"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/inwx"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/joker"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/lightsail"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/linode"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/linodev4"
|
2019-08-19 21:41:10 +02:00
|
|
|
"github.com/go-acme/lego/v3/providers/dns/liquidweb"
|
2019-07-30 21:19:32 +02:00
|
|
|
"github.com/go-acme/lego/v3/providers/dns/mydnsjp"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/namecheap"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/namedotcom"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/namesilo"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/netcup"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/nifcloud"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/ns1"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/oraclecloud"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/otc"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/ovh"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/pdns"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/rackspace"
|
2020-03-10 12:08:32 +02:00
|
|
|
"github.com/go-acme/lego/v3/providers/dns/regru"
|
2019-07-30 21:19:32 +02:00
|
|
|
"github.com/go-acme/lego/v3/providers/dns/rfc2136"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/route53"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/sakuracloud"
|
2020-01-23 16:51:47 +02:00
|
|
|
"github.com/go-acme/lego/v3/providers/dns/scaleway"
|
2019-07-30 21:19:32 +02:00
|
|
|
"github.com/go-acme/lego/v3/providers/dns/selectel"
|
2020-02-25 22:41:39 +02:00
|
|
|
"github.com/go-acme/lego/v3/providers/dns/servercow"
|
2019-07-30 21:19:32 +02:00
|
|
|
"github.com/go-acme/lego/v3/providers/dns/stackpath"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/transip"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/vegadns"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/versio"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/vscale"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/vultr"
|
|
|
|
"github.com/go-acme/lego/v3/providers/dns/zoneee"
|
2016-11-18 15:12:13 +02:00
|
|
|
)
|
|
|
|
|
2018-05-30 19:53:04 +02:00
|
|
|
// NewDNSChallengeProviderByName Factory for DNS providers
|
2018-12-06 23:50:17 +02:00
|
|
|
func NewDNSChallengeProviderByName(name string) (challenge.Provider, error) {
|
2016-11-18 15:12:13 +02:00
|
|
|
switch name {
|
2018-07-09 19:28:01 +02:00
|
|
|
case "acme-dns":
|
|
|
|
return acmedns.NewDNSProvider()
|
2018-09-08 15:17:23 +02:00
|
|
|
case "alidns":
|
|
|
|
return alidns.NewDNSProvider()
|
2016-11-18 15:12:13 +02:00
|
|
|
case "azure":
|
2018-06-21 19:06:16 +02:00
|
|
|
return azure.NewDNSProvider()
|
2016-11-18 15:12:13 +02:00
|
|
|
case "auroradns":
|
2018-06-21 19:06:16 +02:00
|
|
|
return auroradns.NewDNSProvider()
|
2019-11-01 12:20:34 +02:00
|
|
|
case "autodns":
|
|
|
|
return autodns.NewDNSProvider()
|
2019-04-27 18:50:40 +02:00
|
|
|
case "bindman":
|
|
|
|
return bindman.NewDNSProvider()
|
2018-04-03 04:50:15 +02:00
|
|
|
case "bluecat":
|
2018-06-21 19:06:16 +02:00
|
|
|
return bluecat.NewDNSProvider()
|
2019-12-08 00:59:59 +02:00
|
|
|
case "checkdomain":
|
|
|
|
return checkdomain.NewDNSProvider()
|
2016-11-18 15:12:13 +02:00
|
|
|
case "cloudflare":
|
2018-06-21 19:06:16 +02:00
|
|
|
return cloudflare.NewDNSProvider()
|
2019-03-01 20:09:00 +02:00
|
|
|
case "cloudns":
|
|
|
|
return cloudns.NewDNSProvider()
|
2018-02-02 21:41:35 +02:00
|
|
|
case "cloudxns":
|
2018-06-21 19:06:16 +02:00
|
|
|
return cloudxns.NewDNSProvider()
|
2018-11-02 03:30:09 +02:00
|
|
|
case "conoha":
|
|
|
|
return conoha.NewDNSProvider()
|
2020-02-25 22:56:40 +02:00
|
|
|
case "constellix":
|
|
|
|
return constellix.NewDNSProvider()
|
2019-02-07 17:10:07 +02:00
|
|
|
case "designate":
|
|
|
|
return designate.NewDNSProvider()
|
2016-11-18 15:12:13 +02:00
|
|
|
case "digitalocean":
|
2018-06-21 19:06:16 +02:00
|
|
|
return digitalocean.NewDNSProvider()
|
2016-11-18 15:12:13 +02:00
|
|
|
case "dnsimple":
|
2018-06-21 19:06:16 +02:00
|
|
|
return dnsimple.NewDNSProvider()
|
2016-11-18 15:12:13 +02:00
|
|
|
case "dnsmadeeasy":
|
2018-06-21 19:06:16 +02:00
|
|
|
return dnsmadeeasy.NewDNSProvider()
|
2016-11-18 15:12:13 +02:00
|
|
|
case "dnspod":
|
2018-06-21 19:06:16 +02:00
|
|
|
return dnspod.NewDNSProvider()
|
2019-03-21 12:52:01 +02:00
|
|
|
case "dode":
|
|
|
|
return dode.NewDNSProvider()
|
2018-10-13 16:01:46 +02:00
|
|
|
case "dreamhost":
|
|
|
|
return dreamhost.NewDNSProvider()
|
2018-04-02 16:02:54 +02:00
|
|
|
case "duckdns":
|
2018-06-21 19:06:16 +02:00
|
|
|
return duckdns.NewDNSProvider()
|
2016-11-18 15:12:13 +02:00
|
|
|
case "dyn":
|
2018-06-21 19:06:16 +02:00
|
|
|
return dyn.NewDNSProvider()
|
2020-03-10 13:31:33 +02:00
|
|
|
case "dynu":
|
|
|
|
return dynu.NewDNSProvider()
|
2018-04-03 16:22:13 +02:00
|
|
|
case "fastdns":
|
2018-06-21 19:06:16 +02:00
|
|
|
return fastdns.NewDNSProvider()
|
2019-04-29 02:03:04 +02:00
|
|
|
case "easydns":
|
|
|
|
return easydns.NewDNSProvider()
|
2018-10-04 17:28:06 +02:00
|
|
|
case "exec":
|
|
|
|
return exec.NewDNSProvider()
|
2016-11-18 15:12:13 +02:00
|
|
|
case "exoscale":
|
2018-06-21 19:06:16 +02:00
|
|
|
return exoscale.NewDNSProvider()
|
2016-11-18 15:12:13 +02:00
|
|
|
case "gandi":
|
2018-06-21 19:06:16 +02:00
|
|
|
return gandi.NewDNSProvider()
|
2018-02-02 21:22:33 +02:00
|
|
|
case "gandiv5":
|
2018-06-21 19:06:16 +02:00
|
|
|
return gandiv5.NewDNSProvider()
|
2018-03-31 16:33:48 +02:00
|
|
|
case "glesys":
|
2018-06-21 19:06:16 +02:00
|
|
|
return glesys.NewDNSProvider()
|
2016-11-18 15:12:13 +02:00
|
|
|
case "gcloud":
|
2018-06-21 19:06:16 +02:00
|
|
|
return gcloud.NewDNSProvider()
|
2017-10-25 21:55:29 +02:00
|
|
|
case "godaddy":
|
2018-06-21 19:06:16 +02:00
|
|
|
return godaddy.NewDNSProvider()
|
2018-09-15 23:25:14 +02:00
|
|
|
case "hostingde":
|
|
|
|
return hostingde.NewDNSProvider()
|
2018-11-09 02:53:21 +02:00
|
|
|
case "httpreq":
|
|
|
|
return httpreq.NewDNSProvider()
|
2018-09-08 12:52:36 +02:00
|
|
|
case "iij":
|
|
|
|
return iij.NewDNSProvider()
|
2018-11-06 12:49:50 +02:00
|
|
|
case "inwx":
|
|
|
|
return inwx.NewDNSProvider()
|
2019-04-28 14:33:50 +02:00
|
|
|
case "joker":
|
|
|
|
return joker.NewDNSProvider()
|
2018-02-18 17:27:58 +02:00
|
|
|
case "lightsail":
|
2018-06-21 19:06:16 +02:00
|
|
|
return lightsail.NewDNSProvider()
|
2016-11-18 15:12:13 +02:00
|
|
|
case "linode":
|
2018-06-21 19:06:16 +02:00
|
|
|
return linode.NewDNSProvider()
|
2018-09-23 13:01:40 +02:00
|
|
|
case "linodev4":
|
|
|
|
return linodev4.NewDNSProvider()
|
2019-08-19 21:41:10 +02:00
|
|
|
case "liquidweb":
|
|
|
|
return liquidweb.NewDNSProvider()
|
2016-11-18 15:12:13 +02:00
|
|
|
case "manual":
|
2018-12-06 23:50:17 +02:00
|
|
|
return dns01.NewDNSProviderManual()
|
2018-11-04 16:37:29 +02:00
|
|
|
case "mydnsjp":
|
|
|
|
return mydnsjp.NewDNSProvider()
|
2016-11-18 15:12:13 +02:00
|
|
|
case "namecheap":
|
2018-06-21 19:06:16 +02:00
|
|
|
return namecheap.NewDNSProvider()
|
2018-03-14 19:43:09 +02:00
|
|
|
case "namedotcom":
|
2018-06-21 19:06:16 +02:00
|
|
|
return namedotcom.NewDNSProvider()
|
2019-07-05 03:38:43 +02:00
|
|
|
case "namesilo":
|
|
|
|
return namesilo.NewDNSProvider()
|
2018-09-08 14:08:07 +02:00
|
|
|
case "netcup":
|
|
|
|
return netcup.NewDNSProvider()
|
2018-07-01 02:13:22 +02:00
|
|
|
case "nifcloud":
|
|
|
|
return nifcloud.NewDNSProvider()
|
2018-10-04 17:28:06 +02:00
|
|
|
case "ns1":
|
|
|
|
return ns1.NewDNSProvider()
|
2019-02-26 16:41:02 +02:00
|
|
|
case "oraclecloud":
|
|
|
|
return oraclecloud.NewDNSProvider()
|
2018-10-04 17:28:06 +02:00
|
|
|
case "otc":
|
|
|
|
return otc.NewDNSProvider()
|
|
|
|
case "ovh":
|
|
|
|
return ovh.NewDNSProvider()
|
|
|
|
case "pdns":
|
|
|
|
return pdns.NewDNSProvider()
|
2016-11-18 15:12:13 +02:00
|
|
|
case "rackspace":
|
2018-06-21 19:06:16 +02:00
|
|
|
return rackspace.NewDNSProvider()
|
2020-03-10 12:08:32 +02:00
|
|
|
case "regru":
|
|
|
|
return regru.NewDNSProvider()
|
2016-11-18 15:12:13 +02:00
|
|
|
case "route53":
|
2018-06-21 19:06:16 +02:00
|
|
|
return route53.NewDNSProvider()
|
2016-11-18 15:12:13 +02:00
|
|
|
case "rfc2136":
|
2018-06-21 19:06:16 +02:00
|
|
|
return rfc2136.NewDNSProvider()
|
2018-06-21 21:24:45 +02:00
|
|
|
case "sakuracloud":
|
|
|
|
return sakuracloud.NewDNSProvider()
|
2020-01-23 16:51:47 +02:00
|
|
|
case "scaleway":
|
|
|
|
return scaleway.NewDNSProvider()
|
2018-11-04 03:36:04 +02:00
|
|
|
case "selectel":
|
|
|
|
return selectel.NewDNSProvider()
|
2020-02-25 22:41:39 +02:00
|
|
|
case "servercow":
|
|
|
|
return servercow.NewDNSProvider()
|
2020-01-23 16:51:47 +02:00
|
|
|
case "stackpath":
|
|
|
|
return stackpath.NewDNSProvider()
|
2018-11-06 12:56:28 +02:00
|
|
|
case "transip":
|
|
|
|
return transip.NewDNSProvider()
|
2018-07-01 01:45:24 +02:00
|
|
|
case "vegadns":
|
|
|
|
return vegadns.NewDNSProvider()
|
2019-06-27 19:30:10 +02:00
|
|
|
case "versio":
|
|
|
|
return versio.NewDNSProvider()
|
2018-10-04 17:28:06 +02:00
|
|
|
case "vultr":
|
|
|
|
return vultr.NewDNSProvider()
|
2018-11-08 11:31:42 +02:00
|
|
|
case "vscale":
|
|
|
|
return vscale.NewDNSProvider()
|
2019-01-20 13:27:35 +02:00
|
|
|
case "zoneee":
|
|
|
|
return zoneee.NewDNSProvider()
|
2016-11-18 15:12:13 +02:00
|
|
|
default:
|
2019-06-27 19:30:10 +02:00
|
|
|
return nil, fmt.Errorf("unrecognized DNS provider: %s", name)
|
2016-11-18 15:12:13 +02:00
|
|
|
}
|
|
|
|
}
|