How to get acme challenge with dreamhost domain

1. The problem I’m having:

Set up a (sub)domain hosted on Dreamhost for a reverse proxy. The Dreamhost plugin no longer compiles so I am trying the Cloudflare work around mentioned on their issues page

2. Error messages and/or full log output:

ERROR	tls.obtain	will retry	{“error”: “[jelly.pandabrand.net] Obtain: [jelly.pandabrand.net] solving challenges: presenting for challenge: adding temporary record for zone "pandabrand.net.": expected 1 zone, got 0 for pandabrand.net. (order=https://acme-staging-v02.api.letsencrypt.org/acme/order/274405123/34554446143) (ca=https://acme-staging-v02.api.letsencrypt.org/directory)”, “attempt”: 2, “retrying_in”: 120, “elapsed”: 62.092555054, “max_duration”: 2

3. Caddy version:

v2.11.2

4. How I installed and ran Caddy:

xcaddy build --with github.com/caddy-dns/cloudflare

a. System environment:

Mac OS Monterey(12.7.6)

b. Command:

caddy start

d. My complete Caddy config:

:2015 {respond “Hello, world!”}
jelly.pandabrand.net {
  tls {
    dns cloudflare <API-TOKEN-IS-HERE>
    dns_challenge_override_domain _acme_challenge.jelly.pandabrand.net
    resolvers 1.1.1.1 1.0.0.1
  }
  reverse_proxy 100.87.152.61:8920
}

5. Links to relevant resources:

This is invalid, you must use newlines. Also those quote characters are incorrect (curly quotes rather than straight double-quotes)

:2015 {
	respond "Hello, world!"
}

I strongly recommend never using caddy start, it doesn’t give you any runtime guarantees (if your machine reboots or Caddy crashes for whatever reason it will not restart), instead you should run Caddy as a service, with caddy run. I don’t know what mechanisms macOS has for that though, I don’t use apple stuff.

This is an error coming from the Cloudflare DNS plugin, it’s saying it wasn’t able to find the domain in the API records by using your API key. Are you sure the API key is correct, are you sure your domain is correctly wired up in Cloudflare?