Skip to content
RU

Cloudflare Error 1016: Origin DNS Error. Why Cloudflare Cannot Find Your Server

What it means: Cloudflare could not resolve the address of your origin server, so it had nowhere to send the request.

  1. Open the record for the failing hostname
  2. Resolve its CNAME target with dig
  3. Fix or replace the unresolvable target
  4. Check load balancer pool origins

Test your URL now

Looks the name up in public DNS and shows every record it returns.

Check your domain's DNS →

What error 1016 means

"This error indicates that Cloudflare cannot resolve the origin web server's IP address" (Cloudflare: Error 1016). Like all 1xxx codes it appears in the body of Cloudflare's error page, while the HTTP status line carries a regular code: for 1016 that status is 530 (Cloudflare 1xxx errors). Monitoring that records only status codes therefore logs a 530; the 1016 in the page tells you the cause.

The visitor's own DNS worked: their browser resolved your hostname to Cloudflare. The failure is one step further, when Cloudflare tries to turn the target in your DNS record (usually a CNAME) into an IP address. This is why public DNS tools can show your domain resolving perfectly while the site returns 1016.

Common causes

CauseHow to recognise itFix
CNAME to an external hostname that does not resolveThe proxied CNAME points to a platform hostname (an old Heroku, Azure, S3 or SaaS name) that was deleted or renamedPoint the CNAME to the current target, or replace it with an A record
No A record for the originThe hostname has no record that leads to an IPAdd an A or AAAA record with the origin's address
Load Balancer pool origins unresolvableOrigins in the default, region or fallback pools are hostnames that do not resolveFix the hostnames; give the fallback pool an origin with a literal IP
Spectrum app with a CNAME originThe Spectrum origin CNAME was not created in Cloudflare DNS firstCreate the CNAME in the zone as Cloudflare's Spectrum guide requires
Workers subrequest to a partial (CNAME) setup zoneThe hostname exists at the authoritative DNS but not in the Cloudflare zoneAdd the hostname to the Cloudflare zone
Cloudflare for SaaS custom hostnameHostname not validated, fallback origin not set, or a standalone zone overrides a wildcardComplete validation, set the fallback origin, use specific hostnames

A quiet variant of the first cause: the target resolves for you because your resolver has it cached, while authoritative DNS already returns NXDOMAIN. Always query a public resolver or the authoritative server directly.

How to fix it

  1. Find the record behind the failing hostname in the Cloudflare DNS tab. A proxied record does not reveal its target through public DNS, so read it there or through the API.
  2. Resolve the target yourself through public resolvers:
    dig +short app-old.herokuapp.example. @1.1.1.1
    dig app-old.herokuapp.example. @8.8.8.8 | grep -E 'status|ANSWER'
    # ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN
    NXDOMAIN or an empty answer is the 1016 cause. SERVFAIL means the target's own DNS is broken.
  3. Follow the whole chain. A CNAME that points to another CNAME fails if any link fails: dig +trace www.example-target.com shows where it breaks.
  4. Replace the target: update the CNAME to the platform's current hostname, or switch to an A record with the origin IP.
  5. For Load Balancing, check every pool's origin addresses, and keep at least one fallback origin defined by IP so a DNS failure of the others cannot take the site down.
  6. For SaaS custom hostnames, check the hostname's status through the API; Cloudflare's docs show the verification error custom hostname does not CNAME to this zone. until it is fixed.

If you are a visitor

Error 1016 is decided inside Cloudflare, after your browser has already reached it, so nothing you change locally helps: another DNS resolver, a VPN, clearing cookies or a different browser all lead to the same Cloudflare lookup of the same broken origin name. The error page shows a Ray ID; if you can contact the site owner, send it together with the time and the address you opened. Owners usually see 1016 right after they migrate a site off a hosting platform, delete an old app or rename a load balancer, so the outage tends to last until someone edits the DNS record rather than clearing by itself. If only one subdomain of a site fails, that subdomain's record is the one pointing nowhere.

How to confirm the fix

dig +short new-target.example.net @1.1.1.1
# 203.0.113.10
curl -s -o /dev/null -w '%{http_code}\n' https://www.example.com/
# 200

The target must resolve from public resolvers, and the site must return 200 instead of 530. Our DNS lookup queries public DNS and shows every record it returns, which is a quick check of the CNAME target from outside your network.

Related errors

A / AAAAIPv4 and IPv6 host addresses
MX RecordsDomain mail servers
TXT / SPFVerification & anti-spoofing
NS / SOAName servers & zone authority

Why teams trust us

12
DNS record types
SPF+DKIM
email protection
<1s
DNS response
3
check regions

How it works

1

Enter domain

2

Select record type

3

Get DNS response

What are DNS Records?

DNS (Domain Name System) translates domain names into IP addresses. DNS records are instructions that define where to route traffic, email, and how to verify domainownership.

Complete Lookup

Query all record types — A, AAAA, MX, NS, TXT, CNAME, SOA — in a single request.

Instant Results

Direct queries to authoritative servers. Results in milliseconds, no caching.

Security Checks

SPF, DKIM, and DMARC analysis to evaluate email protection against spoofing and phishing.

Export & History

Save check results. Compare DNS records before and after registrar changes.

Who uses this

DevOps

DNS check after deploy

Email marketers

SPF/DKIM/DMARC audit

SEO

DNS config audit

Sysadmins

DNS zone control

Common Mistakes

Missing SPF recordWithout SPF, emails may land in spam. Add a v=spf1 TXT record.
Single NS serverIf the only NS fails, the domain becomes unreachable. Use at least 2 NS servers.
CNAME conflicting with other recordsCNAME cannot coexist with MX or TXT on the same name — this violates RFC.
TTL set too highWith 86400s TTL, DNS changes take a full day. Lower TTL to 300 before migrations.
Missing PTR recordMail servers check PTR. Without it, emails may be rejected.

Best Practices

Set up SPF + DKIM + DMARCThe trio of records that protects your email from spoofing and improves deliverability.
Use 2+ NS serversDistribute NS servers across different networks for redundancy.
Lower TTL before migrationSet TTL to 300 at least 24-48 hours before an IP change for fast propagation.
Verify DNS after changesAfter updating records, confirm changes propagated correctly and no errors remain.
Add a CAA recordCAA restricts which Certificate Authorities can issue SSL certificates for your domain.

Get more with a free account

DNS check history, API keys and DNS change monitoring.

Sign up free

Learn more

Sources

Frequently Asked Questions

Why is the HTTP status 530 when the page says error 1016?

Cloudflare returns 1xxx errors in the page body with a normal HTTP status. For 1016 that status is 530, so logs that record only status codes show 530.

My domain resolves fine. Why does Cloudflare say origin DNS error?

Your domain resolves to Cloudflare. Error 1016 is about the target behind your record, usually a CNAME to another hostname, which Cloudflare cannot resolve.

How do I fix 1016 after moving away from a hosting platform?

Update the CNAME that still points to the old platform hostname, or replace it with an A record for the new server.

Can a Cloudflare Load Balancer cause error 1016?

Yes, if the origins in its pools are hostnames that do not resolve. Cloudflare recommends a fallback pool with an origin defined by IP address.

Is error 1016 a problem on the visitor's side?

No. Changing the visitor's DNS or browser does not help; the record in the site's Cloudflare zone has to be fixed.

Try the live tool that powered this guide

Free plan — 10 monitors, checks every 5 min, no card required. Upgrade for 1-minute interval and multi-region monitoring.