Skip to content

How to use DNS provider modules in Caddy 2 — by matt (Matt Holt) on Caddy Community

intermediateforumLink only (©)

Community wiki on adding a DNS provider module to Caddy (via the download page or xcaddy) and enabling the ACME DNS challenge globally with acme_dns or per site in a tls block. Needed for wildcard certificates.

Quick steps

  1. Get a Caddy build including your provider (download page or xcaddy build --with github.com/caddy-dns/...)
  2. Enable via acme_dns <provider> globally or dns <provider> inside tls
  3. Use {env.*} placeholders for credentials

Paraphrased from the source. Menus can differ by version, so check the original for full details.

Read the full thread on caddy.community

Source: How to use DNS provider modules in Caddy 2 by matt (Matt Holt) on Caddy Community. Licence: Link only (©).

Source reviewed
2026-11-02
Link checked
2026-11-02
Tested hands-on
Not by Oddbyte.Me

caddydns challengexcaddywildcard

More in Reverse Proxies