OPNsense Forum

English Forums => Web Proxy Filtering and Caching => Topic started by: fadern on June 14, 2025, 05:06:48 PM

Title: Caddy + DuckDNS = Not starting
Post by: fadern on June 14, 2025, 05:06:48 PM
Hi,
I have been running Caddy and DuckDNS for a while now but now im not able to start the Caddy service.
When Im trying to start the service I get this error.
Error: adapting config using caddyfile: parsing caddyfile tokens for 'dynamic_dns': getting module named 'dns.providers.duckdns': module not registered: dns.providers.duckdns, at /usr/local/etc/caddy/Caddyfile:21
I did follow this guide when I configured it. https://forum.opnsense.org/index.php?topic=38714.0
Title: Re: Caddy + DuckDNS = Not starting
Post by: vorago on June 14, 2025, 07:50:42 PM
Getting the same thing but with Porkbun as my DNS provider.

The update to 25.1.8_1 messed something up as no provider exists in my list aside from Cloudflare
(about:invalid)
Title: Re: Caddy + DuckDNS = Not starting
Post by: Monviech (Cedrik) on June 14, 2025, 08:28:29 PM
All providers except cloudflare have been removed since it became exceedingly difficult to manage one binary for all usecases, as builds were failing pretty often.

I created a fork which retains all DNS Provider and introduces a separate xcaddy plugin. This wont be able to make it into the official repository and you have to build everything from source.

https://github.com/Monviech/os-caddy

Though I recommend that you rather use os-ddclient and os-acme-client as plugins if you need dns-01 and dynamic dns. Or go to cloudflare, this provider stays.
Title: Re: Caddy + DuckDNS = Not starting
Post by: vorago on June 16, 2025, 04:11:03 PM
os-acme-client works great, thanks!
Title: Re: Caddy + DuckDNS = Not starting
Post by: Monviech (Cedrik) on June 16, 2025, 06:17:12 PM
Great, don't forget to use a reload for caddy in the os-acme-client plugin.

Service - Acme Client - Automations:
Run Command: System or Plugin command
System Command: Reload Caddy Service

(Reload, not restart)