Skip to content

Troubleshooting guide

Cloudflare error 1016 "Origin DNS error": how to fix it

Cloudflare could not resolve the origin it should forward the request to. A DNS record in the Cloudflare zone points at a host name that no longer exists.

3 min read11 sectionsUpdated

On this page

Key points

  • The origin host name does not resolve.
  • CNAMEs to deleted services (old load balancers, apps) are typical.
  • Only the site owner can fix it.
  • Check with dig against public resolvers.

What it means

With a proxied CNAME, Cloudflare looks up the target to find the origin server. If that name returns NXDOMAIN or no address (the target was deleted, renamed or expired), Cloudflare cannot connect and shows error 1016.

Common causes

  • A CNAME pointing at a deleted cloud load balancer, app or storage bucket.
  • A typo in the target.
  • The origin’s own domain expired.
  • A load balancer pool with no healthy, resolvable origins.

Fixes if you are visiting the site

  1. Nothing to do but wait; tell the site owner.

Fixes if it is your site

Look up the CNAME target. If it does not resolve, point the record at the current origin (IP or valid host name). Remove records for services you no longer run, since dangling CNAMEs can also be taken over by others.

bash
dig +short CNAME www.example.com
dig +short $(dig +short CNAME www.example.com)   # empty = the target does not resolve

Who produced the error: the CDN or your origin?

CDN error pages are generated at the edge, but most of them describe a problem behind it. Request the origin directly (with the right Host header) to see whether it answers on its own; compare response headers with and without the CDN; and check the CDN’s status page to rule out a provider incident. Keep an uptime check on the public URL (through the CDN) and, if you can, another on the origin, so an alert tells you straight away which side failed. During an incident, post a short update on a status page that does not depend on the same CDN.

How site owners catch this before visitors do

Most visitors who hit Cloudflare error 1016 "Origin DNS error" leave without telling you. An uptime check every minute, with a keyword assertion on the page and an SSL check on every run, turns this from a support ticket into an alert. Keep the history: errors that come and go (one region, one server behind a load balancer, one in twenty requests) only make sense on a timeline. Put the result on a status page so people stop guessing. You can test any address now with the free website down checker.

Frequently asked questions

Is 1016 a Cloudflare outage?

No, the site’s origin record is wrong.

How is it different from 523?

523 means Cloudflare resolved the origin but could not reach it; 1016 means it could not resolve it.

What is a dangling CNAME?

A record pointing at a deleted resource, which attackers can sometimes claim.

Check it now, free

Watch your own site and services with VitalRix

Uptime checks, APM, logs, real-user monitoring, alerts and status pages in one place. Every product has a free tier and no credit card is needed.