Knowledgebase

Find frequently asked questions and setup guides by searching or by browsing the categories.

What Error 1016 Means

When a hostname is proxied through Cloudflare, Cloudflare answers the visitor and then fetches the page from the origin server. To do that it needs the origin's IP address. Error 1016, origin DNS error, means Cloudflare could not resolve the IP address of the origin server. The origin server is never contacted.

Common Causes

  • A missing address record: the DNS record with the origin's IP address is missing.
  • A CNAME to a name that does not resolve: a CNAME in the zone points to an outside domain whose name was deleted, is misspelled, or no longer resolves.
  • A load balancer origin that is gone: an origin entered as a hostname in a default, region, or fallback pool does not resolve.
  • Another Cloudflare product with no record: for example a Spectrum application with a CNAME origin, or a Worker subrequest to a hostname that has no matching DNS record.

What a Visitor Can Do

Nothing on the visitor's side causes this error. Reload later, or send the site owner the time and the Ray ID from the bottom of the error page.

Find the Record

Open the zone's DNS records in the Cloudflare dashboard and find the record for the exact hostname in the address, for example www.example.com and not only example.com. Note its type and its target, and whether it is proxied. A proxied CNAME is followed by Cloudflare, so its target must resolve publicly.

Check the Target with dig

Look up the target the record names, not the proxied hostname itself, which returns Cloudflare's addresses:

dig origin.example.net
dig +short origin.example.net A
dig +short origin.example.net AAAA

In the full answer, the header line shows the status. NXDOMAIN means the name does not exist; NOERROR with an empty answer section means the name exists but has no address of that type. To rule out your own resolver, repeat the query against a public one, replacing the address with that resolver's:

dig +short origin.example.net @203.0.113.53

If the target is itself a CNAME, follow the chain until you reach an address or a name that fails. More query forms are in the dig command.

Correct the Record

What you foundFix
Typo in the targetCorrect the name
Target deletedPoint to a live name
Origin has a fixed IPUse an A record
Origin has IPv6Add an AAAA record

When the origin server has a fixed IP address, an A record to that address is the simplest choice and removes the outside name from the chain. The trade-offs are explained in A record vs CNAME, and every type in DNS record types.

Load Balancers and Tunnels

If the hostname is served by a load balancer, check every origin in its pools, including the fallback pool: one origin entered as a hostname that no longer resolves is enough. If the hostname is a CNAME to a Cloudflare Tunnel, ending in cfargotunnel.com, problems with that tunnel or with its record show up as a different error; see error 1033.

Confirm the Fix

A name at an outside DNS provider may stay cached for its TTL after you correct it. Test again:

curl -sI https://www.example.com/ | head -1

A normal status line means Cloudflare now reaches the origin. A 52x error instead means DNS works and the problem moved to the connection itself.

Was this answer helpful?
Loading...