Domain is not an active zone
Fleet refused a domain that is not an active zone of the connected Cloudflare account, or Cloudflare refused it because a DNS record exists.
Symptom
The domain dialog refuses the domain you chose.
This domain is not an active zone in the connected Cloudflare account. Activate it in the Cloudflare dashboard, then choose it again.
Or the site page shows a domain that Cloudflare refused to attach, with Retry domain. The site keeps serving on its workers.dev address.
Remove the existing DNS record for <hostname> in Cloudflare, then retry.
Cause
A domain is a hostname in a zone of the Cloudflare account that hosts the site.
- Not an active zone. The zone is not in the connected account, is not active, or does not contain the hostname. Fleet does not list a zone of another Cloudflare account, such as an End User's.
- A record exists. Cloudflare refuses a Custom Domain on a hostname that already has a DNS record, such as a CNAME. Fleet checks no record first, so the message does not name the record type. See Cloudflare custom domains.
Fix
You need the Developer role or above.
- For the first message, activate the zone in the Cloudflare dashboard of the connected account, then choose the domain again in the domain dialog. Only a zone of that account works.
- For the second message, remove the DNS record for the hostname from the zone in Cloudflare.
- Select Retry domain on the site page.
- Deploy the site. The deploy attaches the domain and checks that the site answers on it.
If the dialog says the connection needs reconnecting, reconnect it first. See Connection needs reconnecting.
Prevent
Add the zone to the Cloudflare account of the site, and remove an old DNS record of the hostname, before you choose the domain. See Change a site's domain and Connections.