Cloudflare error 1016: origin DNS error
Websites & Hosting — A2Z Skills
By Anjali, 2026-11-13
https://a2zskillsewa.com/cloudflare-error-1016-explained/
Short answer: Error 1016 means Cloudflare cannot resolve your origin web server IP address. The usual cause is a missing A record, or a CNAME in Cloudflare DNS pointing at a hostname that does not resolve. The lookup fails at Cloudflare, so your origin is never contacted at all.
A 1016 is a lookup failure, which makes it one of the few Cloudflare errors that
says nothing about your server. Cloudflare's
Error 1016 documentation (https://developers.cloudflare.com/support/troubleshooting/http-status-codes/cloudflare-1xxx-errors/error-1016/)
defines it as Cloudflare being unable to resolve the origin web server's IP
address. The request stops at that point, so the origin is never contacted and
has nothing to log.
This covers a hostname proxied through Cloudflare. More hosting explanations are
in Websites & Hosting (/topics/websites-hosting/). Where a record exists and
points somewhere nothing is listening, the error is usually
a 522 instead (/cloudflare-error-522-explained/).
What Cloudflare lists as the causes
The documentation gives five, and they are worth reading as a checklist because
each one points at a different record:
- A missing DNS A record naming the origin IP address.
- A CNAME record in Cloudflare DNS pointing to an unresolvable external domain.
- Origin hostnames in the Cloudflare Load Balancer default, region and fallback
pools being unresolvable.
- A Spectrum application with a CNAME origin, where a CNAME pointing to the
origin has to exist in Cloudflare DNS first.
- No DNS record for the hostname in a target partial, CNAME setup zone for a
Workers subrequest made with the Fetch API.
The first two cover most ordinary websites. The third matters if a load balancer
sits in front of the origin, and Cloudflare's own suggestion there is a fallback
pool configured with an origin IP address as a backup, so a failed hostname
lookup is not the end of the chain.
The resolution steps are deliberately narrow
Cloudflare's resolutions follow the causes rather than offering general advice:
- Confirm Cloudflare DNS includes an A record pointing to a valid IP address
that resolves, checked with a DNS lookup tool.
- For a CNAME pointing at a different domain, confirm that the target domain
resolves.
- For a Workers subrequest into a partial, CNAME setup zone, confirm the
hostname exists on the Cloudflare zone and not only at the authoritative DNS.
That third step is the one that surprises people. In a partial setup, the
authoritative nameservers are somewhere else, so a record can resolve perfectly
on the public internet and still be absent from the Cloudflare zone that the
Worker's subrequest is routed through. Checking the record with a public lookup
tool does not answer the question Cloudflare is asking.
A record that resolves is not the same as a record that is correct
It is worth separating the states a hostname can be in, because they produce
different errors.
| State of the record | What Cloudflare can do | Typical result |
| ---------------------------------------------------- | --------------------------- | -------------- |
| No A record, or a CNAME target that will not resolve | Cannot determine an address | 1016 |
| Resolves to an address with nothing listening | Attempts a connection | 522 |
| Resolves, and the origin refuses the connection | Attempts a connection | 521 |
So 1016 sits one step earlier than the connection errors. Waiting does not help
either, which separates it from a change that has been made and has not finished
publishing. That mechanism is explained in
DNS propagation (/dns-propagation-explained/), and the practical difference is
that a propagation delay resolves itself while a missing record does not.
Cloudflare for SaaS has its own four causes
The same page carries a second section for SSL for SaaS, where Cloudflare
returns 1016 when a custom hostname cannot be routed or proxied. The documented
causes there are custom hostname ownership validation not being complete, a
fallback origin that is not correctly set, a wildcard custom hostname where the
requested hostname belongs to a domain that exists in Cloudflare as a standalone
zone, and no DNS record for the hostname in the target zone.
For the validation case, Cloudflare describes checking status through its
certificate-by-hostname API call and reading the verification error field, which
returns "verification_errors": ["custom hostname does not CNAME to this zone."]
when ownership has not been proven.
The wildcard case is the least obvious. Cloudflare's
hostname priority (https://developers.cloudflare.com/ssl/reference/certificate-and-hostname-priority/#hostname-priority)
means a standalone zone takes precedence over a wildcard custom hostname, and
the documentation notes this applies even when that standalone zone has no DNS
record for the hostname. The remedy it gives is to add each hostname as an
individual custom hostname.
What the error page does not tell you
Cloudflare's 1016 page does not state an HTTP status code for the error, which
is a difference from neighbouring codes: the
Error 1018 page (https://developers.cloudflare.com/support/troubleshooting/http-status-codes/cloudflare-1xxx-errors/error-1018/)
says explicitly that 1018 is returned with an HTTP 409. If you are matching on
status codes in a monitor or a log query, that is worth confirming against your
own traffic rather than assuming.
The page also does not mention Cloudflare Tunnel, although the
tunnel troubleshooting documentation (https://developers.cloudflare.com/tunnel/troubleshooting/https-origins/)
does: if a tunnel stops, its DNS record stays where it is and visitors receive a 1016. The same page states that Cloudflare does not silently fall back from a
tunnel to an A or AAAA record, so a tunnelled hostname that starts returning
1016 has not quietly started serving from somewhere else.
Both documentation pages were last updated on 23 April 2026. Cloudflare revises
these pages, so the causes listed here are the ones published at the time of
writing rather than a permanent list.
Questions and answers
What is the difference between error 1016 and error 1018?
A 1016 is an origin DNS error: Cloudflare cannot resolve the origin IP address, and the fix is in your DNS records. A 1018 means the host could not be found, which Cloudflare returns with an HTTP 409 and attributes to a recently activated domain still propagating or to a partner provider DNS failure. Cloudflare asks you to contact support for a 1018 rather than change records.
Does error 1016 mean my server is down?
Not on its own. Cloudflare never reached the server, because it could not work out which address to contact. A server that is running normally still returns 1016 to visitors if its A record is missing or its CNAME target does not resolve.
Can a Cloudflare Tunnel cause a 1016?
Yes. Cloudflare tunnel troubleshooting documents that if the tunnel stops, the DNS record remains in place and visitors receive a 1016. It also states that Cloudflare does not silently fall back from a tunnel to an A or AAAA record, so there is no quiet second route.
Why would a Worker return 1016?
Cloudflare lists a Workers subrequest through the Fetch API to a partial, CNAME setup zone that has no DNS record for the hostname. The resolution it gives is to confirm the hostname exists on the Cloudflare zone, not only at the authoritative nameservers.