百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
D

dnsproviders

> 开发工具
开源

已过时: 为解决 ACME DNS 挑战而针对 Caddy 进行调整的 DNS 提供商 - 仅适用于 Caddy v1。请参阅 caddy-dns 以了解 v2。

99 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

已过时: 为解决 ACME DNS 挑战而针对 Caddy 进行调整的 DNS 提供商 - 仅适用于 Caddy v1。请参阅 caddy-dns 以了解 v2。

DNS providers for Caddy v1 (obsolete)

⚠️ This repo is for Caddy v1, which has been obsoleted by Caddy 2.

Caddy 2 also supports the DNS challenge in a similar way to v1, but using backwards-incompatible APIs that are much more flexible and easier to use. This repository is no longer relevant or maintained.

Migrating to the new APIs is solely a community effort. It is very easy to implement a provider if you know Go!

Version 2 resources:

  • How to use DNS providers in Caddy 2
  • Implementing a new DNS provider for Caddy 2
  • libdns packages (underlying provider implementations)
  • caddy-dns packages (small wrappers over libdns providers that convert them into Caddy modules)
  • Temporary module shim (supports all of lego's 75+ DNS providers)

Old readme (for v1)

These providers can be used to help solve the ACME DNS challenge by plugging them into Caddy 0.9-1.x:

go
import _ "github.com/caddyserver/dnsproviders/"

You can then use this in your Caddyfile with the tls directive like so:

plain
tls {
	dns 
}

Credentials for your DNS provider should be set in environment variables. This information is in the Automatic HTTPS page of the Caddy documentation. For more information about using your DNS provider, see the docs for your provider directly.

If you specify a DNS provider, the DNS challenge will be used exclusively; other challenge types will be disabled. Be aware that some DNS providers may be slow in applying changes.

About these packages

Caddy 0.9 and newer supports solving the ACME DNS challenge. This challenge is unique because the server that is requesting a TLS certificate does not need to start a listener and be accessible from external networks. This quality is essential when behind load balancers or in other advanced networking scenarios.

The DNS challenge sets a DNS record and the ACME server verifies its correctness in order to issue the certificate. Caddy can do this for you automatically, but it needs credentials to your DNS provider to do so. Since every DNS provider is different, we have these adapters you can plug into Caddy in order to complete this challenge.

The underlying logic that actually solves the challenge is implemented in a different package not far away from here. Caddy uses go-acme/lego, a library originally written for use in Caddy, to solve ACME challenges. If you wish to add a new provider, see the documentation for that library and write your own provider implementation. Then writing the adapter for Caddy is very easy: just copy+paste any of these existing ones, replace the names and tweak a few things, and submit a pull request. Done!

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Goacmecaddydns-challengedns-provider

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类开发工具
定价开源

> 相关工具

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具