Guides

Custom hostname does not CNAME to this zone: Cloudflare fix

custom hostname does not CNAME to this zone. means Cloudflare looked up your customer's hostname and did not find a CNAME that leads to your SaaS zone. It is expected on a hostname you have just created and it clears when the customer's DNS record is in place. This page covers that error first, then the other messages and stuck states a Cloudflare for SaaS custom hostname can show: what Cloudflare prints, what Cloudflare says causes it, and who has to fix it, you or your customer.

Published · Cloudflare documentation retrieved

First, find which of the two validations failed

A custom hostname goes through two separate checks, and each reports its errors in a different field. Cloudflare's hostname validation page says the two use different tokens and API fields. Read the hostname with the Custom Hostname Details endpoint, or open it on the Custom Hostnames page, and look at both:

CheckStatus fieldErrors appear inProves
Hostname validationresult.statusverification_errorsThe customer controls the hostname, so Cloudflare may proxy it.
Certificate validationresult.ssl.statusssl.validation_errorsA certificate authority may issue a certificate for it.

A hostname is ready for production traffic when both statuses are active and DNS points to your SaaS target (validation status). If you have not built the setup yet, start with the Cloudflare for SaaS custom hostnames setup guide.

Custom hostname does not CNAME to this zone

The message, as the API returns it in verification_errors:

"status": "pending",
"verification_errors": ["custom hostname does not CNAME to this zone."]

Cause. Cloudflare's error codes page gives it in one line: the zone does not have the apex proxying entitlement and the custom hostname does not CNAME to the zone. Without apex proxying, a CNAME is the only DNS record that validates a hostname in real time, so Cloudflare is telling you it looked for one and did not find it.

It is expected at first. Cloudflare's own example response for a newly created hostname, on its pre-validation page, shows status: pending with this exact error. Nothing is wrong until the customer says the record is in place and the error is still there.

Fix. The customer creates a CNAME at their authoritative DNS that points at your CNAME target (real-time validation):

mystore.example.com CNAME customers.yourproduct.com

If the customer says the record exists and the error stays, check these in order:

  1. What the hostname actually resolves to. Run dig CNAME mystore.example.com +short. An empty answer, or a target that is not yours, means the record was mistyped, saved on the wrong name, or created at a DNS provider the domain does not use.
  2. Whether another CDN sits in front. Cloudflare lists this as a limitation: custom hostnames using another CDN are not compatible with Cloudflare for SaaS, because a CDN that obscures the customer's DNS records makes hostname validation fail.
  3. Whether it is a bare domain. If the hostname is example.com rather than app.example.com, see the apex section below.
  4. Whether Cloudflare has rechecked yet. Cloudflare retries on a schedule that slows down over time. Select Refresh on the hostname in the dashboard, or send a PATCH request to the Edit Custom Hostname endpoint with an ssl object that has the same method and type as the original request. Cloudflare says a no-change PATCH resets the backoff schedule.

If the customer cannot change the CNAME yet. A production domain that is live somewhere else can be validated before the cutover. When you create the hostname, the response includes an ownership_verification TXT record, named _cf-custom-hostname.app.example.com in Cloudflare's example. The customer adds it at their authoritative DNS, the hostname becomes Active after a few minutes, and the customer can then remove the record. Cloudflare notes one exception: pre-validation is not supported when the customer's zone is already on Cloudflare, and those hostnames use real-time validation.

A visitor who opens the hostname while it is in this state gets error 1016, covered below.

The other hostname validation errors

The same error codes page lists five messages. Two are about your fallback origin and three are about the customer's DNS:

ErrorCause, per CloudflareWho acts
Custom hostname does not CNAME to this zone.The zone does not have the apex proxying entitlement and the custom hostname does not CNAME to the zone.Your customer
Zone does not have a fallback origin set.The fallback origin is not active.You
Fallback origin is in a status of initializing, pending_deployment, pending_deletion, or deleted.The fallback origin is not active.You
None of the A or AAAA records are owned by this account and the pre-generated ownership validation token was not found.The account has apex proxying enabled but the custom hostname failed the hostname validation check on the A record.Your customer
This account and the pre-generated ownership validation token was not found.The hostname does not CNAME to the zone, or none of its A or AAAA records match the IPs reserved for the zone.Your customer

A missing or inactive fallback origin. Both fallback messages mean the same thing: the fallback origin is not active. It needs a proxied A, AAAA or CNAME record in your SaaS zone, and that record's hostname has to be entered under Fallback Origin on the Custom Hostnames page. Confirm its status reads Active (getting started). Cloudflare adds that Active only reflects that it is ready to send traffic to that DNS record, so a wrong origin behind it will not show up here. This error is on your side and affects every custom hostname on the zone at once.

The two A or AAAA messages. These replace the CNAME message on a zone that has apex proxying. Cloudflare checked the hostname's address records against the IPs reserved for your zone and did not find a match, and it did not find the ownership token either. The customer either points an A record at the IP prefix allocated to your account or adds the ownership TXT record described above.

Hostname stuck in Pending, then Moved or Deleted

Pending means the hostname is waiting for hostname validation. Cloudflare does not wait forever. Its backoff schedule spreads the attempts over seven days, 75 retries in total: the first 10 checks complete within 20 minutes, most complete in the first four hours, and after that the gap between checks is capped at four hours.

Per the validation status page, a hostname that is still not active after the whole schedule becomes Moved, and a hostname that stays Moved for more than seven days becomes Deleted. A hostname that was active also becomes Moved when it no longer points to the fallback origin, for example when the customer changes or removes their CNAME (troubleshooting).

Fix. Get the DNS record corrected first, then refresh: the Refresh button, or the PATCH request described above. Cloudflare says a refresh sets a Moved or Deleted hostname back to pending validation. The practical consequence of the schedule is timing. A customer who adds the record on day three may wait up to four hours for the next automatic check, so trigger the recheck yourself when they tell you the record is in.

Blocked: the hostname is associated with a held zone

A hostname in the Blocked status with this message is waiting on your customer:

The hostname is associated with a held zone. Please contact the owner of this domain to have the hold removed.

Cause. The customer's domain is a zone on Cloudflare with a zone hold. Per Cloudflare's troubleshooting page, a hold stops Cloudflare from issuing a certificate for that domain for a custom hostname, and with the option Also prevent subdomains enabled it prevents the verification of custom hostnames for the domain.

Fix. The zone's owner releases the hold. Blocked is terminal, so the hostname does not retry on its own: after the release, select Refresh or send the PATCH request. Cloudflare says the hold can be enabled again once the hostname has been validated.

Blocked without that message is a different case. The validation status page describes it as a hostname that cannot be added to Cloudflare at this time, likely because it was associated with Cloudflare before and flagged for abuse, and gives the contact route for it.

Certificate stuck in pending validation, or timed out

When result.ssl.status stays at pending_validation, a domain control validation (DCV) step did not complete. Cloudflare's certificate troubleshooting page gives a checklist, which comes down to this:

  • The token is in place. With TXT validation the customer has added every TXT record returned in ssl.validation_records. With automatic HTTP validation there is no token to place: Cloudflare serves it once the hostname's CNAME points at your target, so a missing CNAME stalls the certificate as well as the hostname.
  • The token has not expired. Let's Encrypt tokens last 7 days; Google Trust Services and SSL.com tokens last 14 days (token validity periods). Deleting and re-creating the hostname also invalidates them.
  • CAA records allow the certificate authority. See the next section.
  • The customer's DNS answers. Their authoritative DNS must respond without SERVFAIL from all geographic locations.
  • Your Worker lets the challenge through. If a Worker is your fallback origin, it must pass /.well-known/pki-validation/* and /.well-known/acme-challenge/* through without modification.

Recheck. Send a PATCH request to the Edit Custom Hostname endpoint. Cloudflare asks for a configuration-neutral one: read the hostname with a GET first, then send back ssl.method, ssl.type and ssl.settings exactly as returned, because leaving one out can reset settings such as the minimum TLS version. A PATCH triggers a recheck but does not guarantee new tokens, so read ssl.validation_records again and only send the customer new records if the values changed.

Timed out. validation_timed_out, shown as Timed Out Validation, means DCV did not complete before the retry schedule ended. The same PATCH restarts the cycle. Place the tokens before they expire again.

Two cases the checklist does not catch. With SSL.com, Cloudflare requests an RSA and an ECDSA certificate that validate separately, and the certificate is not deployed until both have issued, so the customer must publish every TXT record returned and not only the first. And a leftover _acme-challenge TXT record in the customer's zone, from an earlier certificate order, can stop validation even when the right record is in place; the troubleshooting page has the dig commands that find it. If your customers struggle with TXT tokens at all, Cloudflare's own tip is delegated DCV, which removes the manual token delivery.

CAA records block issuance, and the other certificate authority errors

These messages appear in ssl.validation_errors. The table is Cloudflare's certificate authority error reference, including its column for who has to act:

ErrorCause, per CloudflareWho acts
CAA records block issuance. Please remove all CAA records or add records for this authority.The customer's CAA records do not permit the selected certificate authority to issue for their domain.Your customer
Certificate authority encountered a multiple perspective CAA check error, please ensure your DNS is configured to allow CAA queries from all geographic perspectives.The certificate authority validates from several locations and the CAA records do not return the same result from all of them.Your customer
Certificate authority encountered a SERVFAIL during DNS lookup, please check your DNS reachability.The certificate authority cannot reach the customer's authoritative DNS server.Your customer
dns problem: looking up caa for <hostname>: dnssec: bogusDNSSEC validation failed for the hostname.Your customer
The authority has rate limited these domains. Please wait for the rate limit to expire or try another authority.The certificate authority has temporarily blocked issuance for this domain because of too many recent requests.You
Internal error with Certificate Authority. Please check later.A transient error on the certificate authority's side.You

Fixing the CAA error. A CAA record names the certificate authorities allowed to issue for a domain. Cloudflare describes two details that are easy to miss:

  • The lookup starts at the custom hostname and stops at the first level that has CAA records. A CAA record on shop.example.com is used and example.com is never consulted; the parent only counts when the subdomain has none.
  • The lookup follows CNAME chains. Once the hostname points at your SaaS target, the certificate authority also evaluates the CAA records on your target's domain. If your own domain has restrictive CAA records, the fix is yours.

The customer checks both levels:

dig CAA shop.example.com
dig CAA example.com

Then they either remove all CAA records, if they do not mean to restrict issuance, or add the record for the certificate authority selected on the hostname. Cloudflare lists these values:

Certificate authorityCAA record
Google Trust Servicesexample.com CAA 0 issue "pki.goog; cansignhttpexchanges=yes"
Let's Encryptexample.com CAA 0 issue "letsencrypt.org"
SSL.comexample.com CAA 0 issue "ssl.com"

A wildcard certificate needs the matching issuewild record as well. For the rate limit error, Cloudflare says to wait for the retry window in the error response, or to switch certificate authority by setting ssl.certificate_authority on the hostname, which it notes requires an Enterprise plan.

Error 1016 (Origin DNS error) when someone opens the hostname

Error 1016 is what a visitor sees in the browser. Cloudflare returns it when the custom hostname cannot be routed or proxied, and its troubleshooting page names three main causes:

  1. Hostname ownership validation is not complete. Check verification_errors; this is the does-not-CNAME error at the top of this page.
  2. The fallback origin is not correctly set. Confirm that you created a DNS record for it and that you set it as the fallback origin.
  3. You created a wildcard custom hostname, but the requested hostname belongs to a domain that exists on Cloudflare as its own zone. That zone takes priority over your wildcard, even if it has no DNS record for the hostname. Cloudflare's answer is to add each such hostname as an individual custom hostname.

Error 1014: CNAME Cross-User Banned

Cloudflare's error 1014 page says this error indicates that a CNAME record between domains in different Cloudflare accounts is prohibited. Cloudflare permits a CNAME within a domain, across zones in the same account, or when using Cloudflare for SaaS.

Fix. Cloudflare's resolution is one sentence: to allow a CNAME to resolve to a domain in a different Cloudflare account, the owner of the CNAME target must use Cloudflare for SaaS. In your setup that owner is you. The page gives no further steps for SaaS providers, so the rest of this paragraph is our reading and not Cloudflare's wording. The customer's domain is on Cloudflare in their own account, its CNAME points into yours, and Cloudflare is not treating that target as served through Cloudflare for SaaS. Confirm that the name your customer was told to point at is in the zone where Cloudflare for SaaS is enabled, and that the customer's hostname has been added to that zone as a custom hostname.

Apex domains that cannot CNAME

A customer who wants example.com itself, with no subdomain, usually cannot follow the CNAME instruction. Cloudflare's apex proxying page puts it this way: most DNS providers do not allow CNAME records at the zone's root, so customers have to use a subdomain. What you see on your side is the does-not-CNAME error that never clears, because the record the customer could create is not a CNAME.

Cloudflare's answer is apex proxying. It assigns a set of static IP prefixes to your account, or uses your own with BYOIP, and the customer creates a standard A record. Cloudflare says only certain customers have access to it and that the prefixes have a cost; the setup guide covers the apex case. If you do not have apex proxying, the working instruction for the customer is a subdomain such as www or app. The apex domain glossary entry explains the restriction.

Errors when you create the hostname

Some hostnames are refused before validation starts. The create call answers with an API error code, listed in full on Cloudflare's custom hostnames status codes page. These are the ones you are likely to meet early:

HTTPCodeMessageWhat to do
4091406Duplicate custom hostname found.The hostname already exists on this zone. Look it up and reuse or delete it before creating it again.
4031404No quota has been allocated for this zone.Cloudflare's message goes on to send paid Cloudflare for SaaS customers to their account team and everyone else to its sales contact form.
4031405Quota exceeded.Cloudflare's message gives the same two routes as code 1404: the account team, or the sales contact form.
4001411Custom hostnames ending in example.com, example.net, or example.org are prohibited. Check your input and try again.Test with a domain you control. The documentation's placeholder domains are refused.
4001409Reserved top domain custom hostnames, such as 'test', 'example', 'invalid' or 'localhost', is not supported. Check your input and try again.Same as 1411: a reserved top-level name cannot be a custom hostname.

Two more come from the troubleshooting page. A custom hostname that matches your zone name, for example a custom hostname example.com on the SaaS zone example.com, causes a 403 Forbidden error, and Cloudflare says not to configure one. And a hostname longer than 64 characters, the limit for a certificate Common Name, can return:

Since no host is 64 characters or fewer, Cloudflare Branding is required. Please check your input and try again. (1469)

Cloudflare's fix is to set cloudflare_branding to true when creating the hostname through the API, which puts sni.cloudflaressl.com in the Common Name and the long hostname in the Subject Alternative Name.

Where DoDomain fits

Look back at the "Who acts" columns. The errors on your side, the fallback origin and your own configuration, you fix once. The ones that keep coming back are on the customer's side: a CNAME that is missing, mistyped or created at the wrong DNS provider, and a TXT record that was never added. Cloudflare for SaaS reports those but does not put the records into your customer's zone.

That part is what DoDomain does. You mint a session with the CNAME to your target and, if you use TXT validation, the TXT record Cloudflare gives you. The hosted flow shows the customer the exact records for their DNS provider, writes them with one click where the provider supports it, and verifies them against the authoritative nameservers. A signed connection.verified webhook then tells you the DNS is live, which is the moment to refresh the hostname in Cloudflare. DoDomain does not issue certificates or sit in the request path; Cloudflare stays on the traffic side, and CAA records, zone holds and your fallback origin are outside what it changes. The DoDomain with Cloudflare for SaaS page sets out the split, and the SSL notes cover the handoff.

Frequently asked questions

What does "custom hostname does not CNAME to this zone" mean?

It is a Cloudflare for SaaS hostname validation error. Cloudflare's error codes page gives the cause as: the zone does not have the apex proxying entitlement and the custom hostname does not CNAME to the zone. In practice Cloudflare looked up the customer's hostname and did not find a CNAME that leads to your SaaS zone. It is listed in the hostname's verification_errors field while the status is pending.

Is the error normal right after I create a custom hostname?

Yes. Cloudflare's own example response for a newly created custom hostname shows status pending together with this verification error. It stays until the customer's DNS record points at your zone or you pre-validate the hostname with the ownership TXT record.

How do I make Cloudflare check the hostname again?

Select Refresh on the custom hostname in the dashboard, or send a PATCH request to the Edit Custom Hostname endpoint with an ssl object that has the same method and type as the original request. Cloudflare says a no-change PATCH also resets the validation backoff schedule.

Why is the certificate still pending when the hostname is active?

Cloudflare validates the hostname and the certificate separately. result.status tracks hostname activation and result.ssl.status tracks certificate issuance and deployment. An active hostname with a pending certificate means domain control validation has not completed: read ssl.validation_errors and ssl.validation_records on the hostname.

Who fixes a CAA error, me or my customer?

Usually your customer, because the CAA records are in their DNS. Cloudflare adds one case that is yours: the CAA lookup follows the CNAME chain, so restrictive CAA records on your own SaaS target domain can block issuance too.

Can a customer use their bare domain with a CNAME?

Cloudflare's apex proxying page says most DNS providers do not allow CNAME records at the zone's root, so customers have to use a subdomain unless you have apex proxying, where Cloudflare assigns IP prefixes to your account and the customer creates an A record instead.

What happens if the hostname never validates?

Cloudflare retries hostname validation over seven days, 75 retries in total. Per its validation status page, a hostname that is still not active after the whole schedule moves to the Moved status, and a hostname that stays Moved for more than seven days is deleted. A refresh puts a Moved hostname back to pending validation.

Start on the free plan

No card, no sales call: create an app, mint a session, and watch the first domain verify.

Sources

Every Cloudflare page below was retrieved on 2026-11-24. Cloudflare revises its messages and statuses; check the page before relying on exact wording.

  1. Cloudflare, Troubleshooting (Cloudflare for SaaS). Error 1016 and its three causes, the Moved status, the zone-name 403, the held-zone message and the 64-character message.
  2. Cloudflare, Hostname validation error codes. The five hostname validation errors and the cause Cloudflare gives for each.
  3. Cloudflare, Validation status. What Pending, Active, Blocked, Moved and Deleted mean, the two status fields, and how to refresh validation.
  4. Cloudflare, Backoff schedule. How long and how often Cloudflare retries hostname validation.
  5. Cloudflare, Hostname validation. That hostname validation and certificate validation use different tokens and fields, and the other-CDN limitation.
  6. Cloudflare, Pre-validation. The ownership TXT record, the example response that shows the error on a new hostname, and the Orange-to-Orange exception.
  7. Cloudflare, Real-time validation. The customer's CNAME, the apex A record, and the no-change PATCH that resets the retry schedule.
  8. Cloudflare, Troubleshooting certificate validation. The certificate authority error messages, who acts on each, the CAA rules, stale tokens and Timed Out Validation.
  9. Cloudflare, Token validity periods. How long a validation token lasts for each certificate authority.
  10. Cloudflare, Custom hostnames status codes. The API error codes and messages returned when a custom hostname is created.
  11. Cloudflare, Error 1014. What CNAME Cross-User Banned means and its resolution.
  12. Cloudflare, Apex proxying. Why a bare domain cannot use the CNAME flow and what apex proxying changes.
  13. Cloudflare, Get started. How the fallback origin is created and what its Active status means.
  14. Cloudflare, Zone holds. What a zone hold is and how the zone's owner releases it.

We use analytics cookies to understand how DoDomain is used. The sign-in cookie is essential and is set regardless; the privacy policy names every service involved. Privacy policy