1. Caddy version (caddy version
):
2.2.0
2. How I run Caddy:
Systemd
a. System environment:
Built using xcaddy on ubuntu 20.04 using the .deb provided systemd unit
b. Command:
systemctl restart caddy
c. Service/unit/compose file:
Stock one on ubuntu
d. My complete Caddyfile or JSON config:
https://paste.ubuntu.com/p/w4BcRthVhr/
3. The problem I’m having:
Caddy returns unrecognized directive: DNS
caddy list-modules does however show dns.providers.cloudflare
as available
4. Error messages and/or full log output:
run: adapting config using caddyfile: /etc/caddy/Caddyfile:15: unrecognized directive: dns
5. What I already tried:
What’s in the caddyfile.