caddy-dns/cloudflare

DNS: unrecognized directive in caddyfile

androidacy-user opened this issue · 7 comments

When using the example in the readme, caddy crashes with

run: adapting config using caddyfile: /etc/caddy/Caddyfile:12: unrecognized directive: dns

caddy list-modules show

...
dns.providers.cloudflare
...
mholt commented

What is your full Caddyfile?

mholt commented

Ah, your Caddyfile is malformed. Please take the Caddyfile tutorial and read about the Caddyfile structure.

In the future, please only open bug reports or feature requests in the issue tracker, usage questions are for our forum: https://caddy.community - thanks!

Would be nice to know what is actually wrong, and no the [REDACTED] parts aren't actually in the file

According to the docs nothing is wrong, and I literally copied and pasted from the readme minus the API key so if something else is necessary maybe you should mention it

And commenting out the tls { ... } line? Runs fine

So your README obviously forgets to mention some step somewhere

mholt commented

@unixandria-xda You didn't follow the instructions:

then replace the line below with your domain name.

The next line, then, is:

tls {

Is tls your domain name?