You’re using an extremely old version of Caddy. Please upgrade to Caddy v2.
You can find the Docker image for Caddy v2 here: caddy - Official Image | Docker Hub
Our upgrade guide is here:
Also note the steps to build Caddy with plugins on the Docker Hub readme. Read this below article to learn how to use DNS plugins in Caddy v2: