2017-02-07 21:33:23 +00:00
|
|
|
package dns
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
2019-03-14 10:04:04 +00:00
|
|
|
"github.com/go-acme/lego/challenge"
|
|
|
|
"github.com/go-acme/lego/challenge/dns01"
|
|
|
|
"github.com/go-acme/lego/providers/dns/acmedns"
|
|
|
|
"github.com/go-acme/lego/providers/dns/alidns"
|
|
|
|
"github.com/go-acme/lego/providers/dns/auroradns"
|
|
|
|
"github.com/go-acme/lego/providers/dns/azure"
|
2019-06-11 21:11:17 +00:00
|
|
|
"github.com/go-acme/lego/providers/dns/bindman"
|
2019-03-14 10:04:04 +00:00
|
|
|
"github.com/go-acme/lego/providers/dns/bluecat"
|
|
|
|
"github.com/go-acme/lego/providers/dns/cloudflare"
|
|
|
|
"github.com/go-acme/lego/providers/dns/cloudns"
|
|
|
|
"github.com/go-acme/lego/providers/dns/cloudxns"
|
|
|
|
"github.com/go-acme/lego/providers/dns/conoha"
|
|
|
|
"github.com/go-acme/lego/providers/dns/designate"
|
|
|
|
"github.com/go-acme/lego/providers/dns/digitalocean"
|
|
|
|
"github.com/go-acme/lego/providers/dns/dnsimple"
|
|
|
|
"github.com/go-acme/lego/providers/dns/dnsmadeeasy"
|
|
|
|
"github.com/go-acme/lego/providers/dns/dnspod"
|
2019-03-27 10:18:04 +00:00
|
|
|
"github.com/go-acme/lego/providers/dns/dode"
|
2019-03-14 10:04:04 +00:00
|
|
|
"github.com/go-acme/lego/providers/dns/dreamhost"
|
|
|
|
"github.com/go-acme/lego/providers/dns/duckdns"
|
|
|
|
"github.com/go-acme/lego/providers/dns/dyn"
|
2019-06-11 21:11:17 +00:00
|
|
|
"github.com/go-acme/lego/providers/dns/easydns"
|
2019-03-14 10:04:04 +00:00
|
|
|
"github.com/go-acme/lego/providers/dns/exec"
|
|
|
|
"github.com/go-acme/lego/providers/dns/exoscale"
|
|
|
|
"github.com/go-acme/lego/providers/dns/fastdns"
|
|
|
|
"github.com/go-acme/lego/providers/dns/gandi"
|
|
|
|
"github.com/go-acme/lego/providers/dns/gandiv5"
|
|
|
|
"github.com/go-acme/lego/providers/dns/gcloud"
|
|
|
|
"github.com/go-acme/lego/providers/dns/glesys"
|
|
|
|
"github.com/go-acme/lego/providers/dns/godaddy"
|
|
|
|
"github.com/go-acme/lego/providers/dns/hostingde"
|
|
|
|
"github.com/go-acme/lego/providers/dns/httpreq"
|
|
|
|
"github.com/go-acme/lego/providers/dns/iij"
|
|
|
|
"github.com/go-acme/lego/providers/dns/inwx"
|
2019-06-11 21:11:17 +00:00
|
|
|
"github.com/go-acme/lego/providers/dns/joker"
|
2019-03-14 10:04:04 +00:00
|
|
|
"github.com/go-acme/lego/providers/dns/lightsail"
|
|
|
|
"github.com/go-acme/lego/providers/dns/linode"
|
|
|
|
"github.com/go-acme/lego/providers/dns/linodev4"
|
|
|
|
"github.com/go-acme/lego/providers/dns/mydnsjp"
|
|
|
|
"github.com/go-acme/lego/providers/dns/namecheap"
|
|
|
|
"github.com/go-acme/lego/providers/dns/namedotcom"
|
|
|
|
"github.com/go-acme/lego/providers/dns/netcup"
|
|
|
|
"github.com/go-acme/lego/providers/dns/nifcloud"
|
|
|
|
"github.com/go-acme/lego/providers/dns/ns1"
|
|
|
|
"github.com/go-acme/lego/providers/dns/oraclecloud"
|
|
|
|
"github.com/go-acme/lego/providers/dns/otc"
|
|
|
|
"github.com/go-acme/lego/providers/dns/ovh"
|
|
|
|
"github.com/go-acme/lego/providers/dns/pdns"
|
|
|
|
"github.com/go-acme/lego/providers/dns/rackspace"
|
|
|
|
"github.com/go-acme/lego/providers/dns/rfc2136"
|
|
|
|
"github.com/go-acme/lego/providers/dns/route53"
|
|
|
|
"github.com/go-acme/lego/providers/dns/sakuracloud"
|
|
|
|
"github.com/go-acme/lego/providers/dns/selectel"
|
|
|
|
"github.com/go-acme/lego/providers/dns/stackpath"
|
|
|
|
"github.com/go-acme/lego/providers/dns/transip"
|
|
|
|
"github.com/go-acme/lego/providers/dns/vegadns"
|
|
|
|
"github.com/go-acme/lego/providers/dns/vscale"
|
|
|
|
"github.com/go-acme/lego/providers/dns/vultr"
|
|
|
|
"github.com/go-acme/lego/providers/dns/zoneee"
|
2017-02-07 21:33:23 +00:00
|
|
|
)
|
|
|
|
|
2018-05-31 07:30:04 +00:00
|
|
|
// NewDNSChallengeProviderByName Factory for DNS providers
|
2019-01-07 17:30:06 +00:00
|
|
|
func NewDNSChallengeProviderByName(name string) (challenge.Provider, error) {
|
2017-02-07 21:33:23 +00:00
|
|
|
switch name {
|
2018-07-23 15:30:03 +00:00
|
|
|
case "acme-dns":
|
|
|
|
return acmedns.NewDNSProvider()
|
2018-09-14 08:06:03 +00:00
|
|
|
case "alidns":
|
|
|
|
return alidns.NewDNSProvider()
|
2017-02-07 21:33:23 +00:00
|
|
|
case "azure":
|
2018-07-03 10:44:04 +00:00
|
|
|
return azure.NewDNSProvider()
|
2017-02-07 21:33:23 +00:00
|
|
|
case "auroradns":
|
2018-07-03 10:44:04 +00:00
|
|
|
return auroradns.NewDNSProvider()
|
2019-06-11 21:11:17 +00:00
|
|
|
case "bindman":
|
|
|
|
return bindman.NewDNSProvider()
|
2018-04-06 15:04:03 +00:00
|
|
|
case "bluecat":
|
2018-07-03 10:44:04 +00:00
|
|
|
return bluecat.NewDNSProvider()
|
2017-02-07 21:33:23 +00:00
|
|
|
case "cloudflare":
|
2018-07-03 10:44:04 +00:00
|
|
|
return cloudflare.NewDNSProvider()
|
2019-03-14 10:04:04 +00:00
|
|
|
case "cloudns":
|
|
|
|
return cloudns.NewDNSProvider()
|
2018-02-12 17:10:05 +00:00
|
|
|
case "cloudxns":
|
2018-07-03 10:44:04 +00:00
|
|
|
return cloudxns.NewDNSProvider()
|
2018-11-19 15:40:03 +00:00
|
|
|
case "conoha":
|
|
|
|
return conoha.NewDNSProvider()
|
2019-02-11 07:52:03 +00:00
|
|
|
case "designate":
|
|
|
|
return designate.NewDNSProvider()
|
2017-02-07 21:33:23 +00:00
|
|
|
case "digitalocean":
|
2018-07-03 10:44:04 +00:00
|
|
|
return digitalocean.NewDNSProvider()
|
2017-02-07 21:33:23 +00:00
|
|
|
case "dnsimple":
|
2018-07-03 10:44:04 +00:00
|
|
|
return dnsimple.NewDNSProvider()
|
2017-02-07 21:33:23 +00:00
|
|
|
case "dnsmadeeasy":
|
2018-07-03 10:44:04 +00:00
|
|
|
return dnsmadeeasy.NewDNSProvider()
|
2017-02-07 21:33:23 +00:00
|
|
|
case "dnspod":
|
2018-07-03 10:44:04 +00:00
|
|
|
return dnspod.NewDNSProvider()
|
2019-03-27 10:18:04 +00:00
|
|
|
case "dode":
|
|
|
|
return dode.NewDNSProvider()
|
2018-10-15 07:40:02 +00:00
|
|
|
case "dreamhost":
|
|
|
|
return dreamhost.NewDNSProvider()
|
2018-04-06 15:04:03 +00:00
|
|
|
case "duckdns":
|
2018-07-03 10:44:04 +00:00
|
|
|
return duckdns.NewDNSProvider()
|
2017-02-07 21:33:23 +00:00
|
|
|
case "dyn":
|
2018-07-03 10:44:04 +00:00
|
|
|
return dyn.NewDNSProvider()
|
2018-04-06 15:04:03 +00:00
|
|
|
case "fastdns":
|
2018-07-03 10:44:04 +00:00
|
|
|
return fastdns.NewDNSProvider()
|
2019-06-11 21:11:17 +00:00
|
|
|
case "easydns":
|
|
|
|
return easydns.NewDNSProvider()
|
2018-10-10 14:28:04 +00:00
|
|
|
case "exec":
|
|
|
|
return exec.NewDNSProvider()
|
2017-02-07 21:33:23 +00:00
|
|
|
case "exoscale":
|
2018-07-03 10:44:04 +00:00
|
|
|
return exoscale.NewDNSProvider()
|
2017-02-07 21:33:23 +00:00
|
|
|
case "gandi":
|
2018-07-03 10:44:04 +00:00
|
|
|
return gandi.NewDNSProvider()
|
2018-02-12 17:10:05 +00:00
|
|
|
case "gandiv5":
|
2018-07-03 10:44:04 +00:00
|
|
|
return gandiv5.NewDNSProvider()
|
2018-04-06 15:04:03 +00:00
|
|
|
case "glesys":
|
2018-07-03 10:44:04 +00:00
|
|
|
return glesys.NewDNSProvider()
|
2017-02-07 21:33:23 +00:00
|
|
|
case "gcloud":
|
2018-07-03 10:44:04 +00:00
|
|
|
return gcloud.NewDNSProvider()
|
2017-11-30 09:44:03 +00:00
|
|
|
case "godaddy":
|
2018-07-03 10:44:04 +00:00
|
|
|
return godaddy.NewDNSProvider()
|
2018-09-17 13:16:03 +00:00
|
|
|
case "hostingde":
|
|
|
|
return hostingde.NewDNSProvider()
|
2018-11-19 15:40:03 +00:00
|
|
|
case "httpreq":
|
|
|
|
return httpreq.NewDNSProvider()
|
2018-09-14 08:06:03 +00:00
|
|
|
case "iij":
|
|
|
|
return iij.NewDNSProvider()
|
2018-11-19 15:40:03 +00:00
|
|
|
case "inwx":
|
|
|
|
return inwx.NewDNSProvider()
|
2019-06-11 21:11:17 +00:00
|
|
|
case "joker":
|
|
|
|
return joker.NewDNSProvider()
|
2018-04-06 15:04:03 +00:00
|
|
|
case "lightsail":
|
2018-07-03 10:44:04 +00:00
|
|
|
return lightsail.NewDNSProvider()
|
2017-02-07 21:33:23 +00:00
|
|
|
case "linode":
|
2018-07-03 10:44:04 +00:00
|
|
|
return linode.NewDNSProvider()
|
2018-10-10 14:28:04 +00:00
|
|
|
case "linodev4":
|
|
|
|
return linodev4.NewDNSProvider()
|
2017-02-07 21:33:23 +00:00
|
|
|
case "manual":
|
2019-01-07 17:30:06 +00:00
|
|
|
return dns01.NewDNSProviderManual()
|
2018-11-19 15:40:03 +00:00
|
|
|
case "mydnsjp":
|
|
|
|
return mydnsjp.NewDNSProvider()
|
2017-02-07 21:33:23 +00:00
|
|
|
case "namecheap":
|
2018-07-03 10:44:04 +00:00
|
|
|
return namecheap.NewDNSProvider()
|
2018-04-06 15:04:03 +00:00
|
|
|
case "namedotcom":
|
2018-07-03 10:44:04 +00:00
|
|
|
return namedotcom.NewDNSProvider()
|
2018-09-14 08:06:03 +00:00
|
|
|
case "netcup":
|
|
|
|
return netcup.NewDNSProvider()
|
2018-07-03 10:44:04 +00:00
|
|
|
case "nifcloud":
|
|
|
|
return nifcloud.NewDNSProvider()
|
2018-10-10 14:28:04 +00:00
|
|
|
case "ns1":
|
|
|
|
return ns1.NewDNSProvider()
|
2019-03-14 10:04:04 +00:00
|
|
|
case "oraclecloud":
|
|
|
|
return oraclecloud.NewDNSProvider()
|
2018-10-10 14:28:04 +00:00
|
|
|
case "otc":
|
|
|
|
return otc.NewDNSProvider()
|
|
|
|
case "ovh":
|
|
|
|
return ovh.NewDNSProvider()
|
|
|
|
case "pdns":
|
|
|
|
return pdns.NewDNSProvider()
|
2017-02-07 21:33:23 +00:00
|
|
|
case "rackspace":
|
2018-07-03 10:44:04 +00:00
|
|
|
return rackspace.NewDNSProvider()
|
2017-02-07 21:33:23 +00:00
|
|
|
case "route53":
|
2018-07-03 10:44:04 +00:00
|
|
|
return route53.NewDNSProvider()
|
2017-02-07 21:33:23 +00:00
|
|
|
case "rfc2136":
|
2018-07-03 10:44:04 +00:00
|
|
|
return rfc2136.NewDNSProvider()
|
|
|
|
case "sakuracloud":
|
|
|
|
return sakuracloud.NewDNSProvider()
|
2018-10-11 14:50:04 +00:00
|
|
|
case "stackpath":
|
|
|
|
return stackpath.NewDNSProvider()
|
2018-11-19 15:40:03 +00:00
|
|
|
case "selectel":
|
|
|
|
return selectel.NewDNSProvider()
|
|
|
|
case "transip":
|
|
|
|
return transip.NewDNSProvider()
|
2018-07-03 10:44:04 +00:00
|
|
|
case "vegadns":
|
|
|
|
return vegadns.NewDNSProvider()
|
2018-10-10 14:28:04 +00:00
|
|
|
case "vultr":
|
|
|
|
return vultr.NewDNSProvider()
|
2018-11-19 15:40:03 +00:00
|
|
|
case "vscale":
|
|
|
|
return vscale.NewDNSProvider()
|
2019-01-25 09:24:04 +00:00
|
|
|
case "zoneee":
|
|
|
|
return zoneee.NewDNSProvider()
|
2017-02-07 21:33:23 +00:00
|
|
|
default:
|
2018-07-03 10:44:04 +00:00
|
|
|
return nil, fmt.Errorf("unrecognised DNS provider: %s", name)
|
2017-02-07 21:33:23 +00:00
|
|
|
}
|
|
|
|
}
|