Caddy with mail-in-box dns-api

Hello,
i want to setup caddy on opnsense firewall with mail-in-a-box as DNS-Provider for DYNDNS.

Mail-in-box is hosted on the hostname box.example.tech (4 letter tld)

Caddy produces an error. it reports back a wrong hostname (.tec instead of .tech),

“error”,“ts”:“2025-01-27T09:57:46Z”,“logger”:“dynamic_dns”,“msg”:“failed setting DNS record(s) with new IP address(es)”,“zone”:“home.example.tech”,“error”:“This DNS provider (https://box.example.tech/admin/dns/custom) does not control the specified zone (home.example.tec)”}

I struggle a bit. I alreday opened a case on caddy, but they told me, that the error message originates from mail-in-a-box: caddy only allowed with 3 letter TLDs? · Issue #6811 · caddyserver/caddy · GitHub

Also i found this on mail-in-a-box dns-api readme

This provider only supports the one zone that the admin custom dns api is hosted on.

does it mean, i only can uses hostnames under subdomain: box.example.tech, like: home.box.example.tech? Mail-in-a-box is configured with the local dns server responsible for the complete zone: example.tech

thank you

Looking at the code, your zone should be set to “example.tech.” Is this something you can configure in your caddy/opnsense/dyndns setup?

Thanks, the problem could be related to a missing plugin in opnsense´ caddy version. i´ll update the record with ddclient for now. thanks for your reply