Cloudflare error 1001: DNS resolution error, causes and fixes
Error 1001 means Cloudflare could not resolve a hostname it needed. How to find the CNAME, Worker or custom hostname that points at a name with no address, and fix it.
· 6 min read · By the Spot Downtime team
Error 1001 "DNS resolution error" is a Cloudflare error page that appears when Cloudflare needs to turn a hostname into an IP address and cannot. The visitor sees a Cloudflare-branded page with the code 1001, and the HTTP status behind it is 530.
It looks a lot like error 1016, and the cause is the same kind of thing: a name that does not resolve. The difference is mostly where the unresolvable name sits. This post explains how to work out which name is broken and what to change.
What 1001 actually means
Cloudflare proxies traffic, so for each request it has to decide where to send it. Sometimes that destination is an IP address written directly in an A or AAAA record. Often it is another hostname: the target of a CNAME, a hostname a Worker calls with fetch(), or a custom hostname's fallback origin. Cloudflare has to resolve that name through ordinary DNS. When the lookup returns nothing, or fails, you get a 1001.
So the page is not a statement about your web server. No connection was attempted. Compare that with the 522 error, where Cloudflare found an address and then could not connect to it. With 1001 the problem is entirely in DNS.
Where the broken name can hide
A CNAME whose target no longer exists
The most common case. A record such as app.example.com is a CNAME to old-host.provider.net. The provider removed the project, you renamed it, or the target was typed wrongly. The name returns NXDOMAIN or has no A or AAAA record, so there is nothing for Cloudflare to connect to.
A CNAME to a zone that is gone, moved or not resolving
If the target lives in another DNS zone, that zone's nameservers have to answer. A deleted zone, an expired domain, a nameserver change that was not finished, or a provider outage all produce lookups that fail. See DNS SERVFAIL for the failure mode where the nameserver answers with an error rather than saying the name does not exist.
A Worker or rule that builds a bad hostname
A Worker that fetches https://{tenant}.internal.example.com works until a tenant is missing its DNS record. The subrequest fails to resolve and the visitor gets an error page. The same applies to origin rules and load balancer pools that use hostnames instead of IP addresses.
Cloudflare for SaaS and custom hostnames
If you use custom hostnames, your customers point their domains at a CNAME target you give them, and that target must resolve to your fallback origin. A fallback origin that is unset, or whose own DNS record is missing, breaks every custom hostname at once.
A record that was just edited or deleted
Migrations are a classic trigger. The old A record is removed before the new one is added, or a record is moved between zones and left unresolved for a few minutes. Changes within a Cloudflare zone apply quickly, so if you fix the record the error usually clears fast. If the target is on another provider, its TTL controls how long a bad answer is cached, see DNS TTL explained.
Find the name that fails to resolve
- Note the hostname that shows the error. In the Cloudflare dashboard open DNS and find the record for exactly that name.
- If it is an A or AAAA record, check the IP is correct and the record is not missing or duplicated wrongly.
- If it is a CNAME, copy the target and resolve it yourself, outside Cloudflare.
# Does the target exist, and does it have an address?
dig +short CNAME app.example.com
dig +short A target.provider.net
dig +short AAAA target.provider.net
# Look at the status line: NOERROR with an answer is healthy
dig target.provider.net | grep -E "status|ANSWER"status: NXDOMAIN means the name does not exist at all. status: NOERROR with an empty answer means the name exists but has no address record of that type. SERVFAIL means the authoritative servers are failing. Each tells you where to look next.
Follow the chain to the end
dig app.example.com without +short and read the whole answer section. The chain has to end in an A or AAAA record. The break is wherever it stops.Also check the zone's nameservers are the ones you expect. If you recently changed them, the zone can resolve for some resolvers and not others while the change settles. DNS propagation explained covers what to expect, and the DNS propagation checker shows what different resolvers return.
Fix it
- Broken CNAME target: correct the target, recreate the record at the provider that hosts it, or replace the CNAME with an A record to the origin IP if you control the server.
- Hostname built in a Worker or rule: add the missing DNS record, or handle the failure in code and return your own error instead of passing a failed fetch through.
- Custom hostnames: confirm the fallback origin is set and that its DNS record resolves.
- Expired or moved target domain: renew it or repoint your record to a name you control. Run a domain expiry check so this does not happen silently again.
- Apex CNAME: if the record is at the root of the domain, read CNAME at the root domain for how flattening behaves.
Once the name resolves, reload the page. If you still see an error, read the code on it, because Cloudflare uses a separate number for each cause. If it is now a 52x code, DNS is fixed and you have moved on to a connection problem, which is a sign of progress.
1001 or 1016?
In day-to-day use the two are treated as the same family: a name Cloudflare needed could not be resolved. A practical way to sort them is that 1016 is the one you hit when the origin address behind a proxied record cannot be found, while 1001 is the broader lookup failure that also shows up around Workers, custom hostnames and other targets. The fix does not depend on the label. Resolve each name in the chain, and the one that fails is the one to repair.
Catching it after a DNS change
Error 1001 usually arrives right after someone edits DNS, and an edit that saved successfully in the dashboard can still point at nothing. A website monitor on the affected hostname reports the failure from outside, and a DNS monitor can watch the records and flag unexpected changes. Spot Downtime confirms a failure from more than one region before alerting, so one resolver hiccup does not page anyone. The website down checklist is a good next step when an alert does fire.
Get new guides by email
Practical posts on monitoring, outages, error fixes and on-call, when they're published. No spam.
Keep reading
- Cloudflare errors · DNS · TroubleshootingCloudflare error 1000: DNS points to prohibited IP, and how to fix itError 1000 means a proxied DNS record points at an address Cloudflare won't connect to, often its own IP. How to find the bad record and what to put there instead.November 23, 2026 · 6 min read
- Cloudflare errors · DNS · TroubleshootingCloudflare error 1016: Origin DNS error, and how to fix the record behind itError 1016 means Cloudflare can't resolve your origin's hostname. How to find the broken CNAME or A record, and the usual causes with Workers, tunnels and SaaS hosts.November 13, 2026 · 6 min read