Error 1016 means Cloudflare could not resolve your origin server's DNS: the DNS record in your Cloudflare settings points to a hostname that does not resolve, or the record is missing. Fix it by checking the target of your DNS record and pointing it at a working hostname or IP.
Time 15 min · Steps 6 · Level Medium
How to Fix Error 1016 Step by Step
- Open your Cloudflare dashboard and select the affected domain, then go to the DNS settings page where your records are listed.
- Find the record that proxies traffic (the one with the orange cloud enabled, usually your A, AAAA or CNAME record for the site's hostname).
- Check what the record points to. A CNAME must point to a hostname that resolves publicly; an A record must point to a valid IP address for your origin server.
- Test the target yourself. Run a DNS lookup on the hostname in the record (for example with nslookup or dig) to confirm it actually resolves outside Cloudflare.
- Correct or replace the record. Point it at your origin server's real IP address, or at a hostname you have confirmed resolves, then save the record.
- Wait and re-test. Allow a few minutes for the change to apply, then reload the site in a private browsing window to confirm the error is gone.
Which DNS Problem Do You Actually Have?
Error 1016 only appears when Cloudflare is proxying a hostname whose DNS record points to another hostname that fails to resolve. So the diagnosis is narrow: something in the chain from your Cloudflare record to your origin server is broken. The three usual patterns, from most to least common, are a CNAME pointing to a hostname that no longer exists, a record pointing at a hostname on a DNS provider that has been changed or deleted, and a hostname that resolves for you locally but not publicly because it only exists on a private or internal DNS server.
To tell them apart, look at the record's target first. If the target hostname is one you control at another provider, log in there and see whether the record still exists. If the target belongs to a hosting service, check that the service is still active and that the hostname is still the one they gave you. If the target resolves on your own computer but not from a public lookup tool, it is an internal-only name, and that is your answer.
The CNAME Points to a Hostname That No Longer Resolves
This is the most common cause: a CNAME record in Cloudflare points to a hostname such as your hosting provider's server name, and that hostname has been deleted, renamed, or expired at the provider's end. Cloudflare tries to resolve it, gets no answer, and returns Error 1016 to your visitors.
How to confirm: run a public DNS lookup on the target hostname. On Windows, open Command Prompt and type nslookup target-hostname; on macOS or Linux, use dig target-hostname in Terminal. If the answer comes back with no address, the target does not resolve, and this is your problem.
Fix:
- Log in to your hosting provider and find the current server hostname or IP address for your site.
- In Cloudflare, edit the CNAME record, or replace it with an A record pointing directly at the origin IP address.
- Save the record, wait about 5 minutes, and reload the site.
Pointing at the IP address directly is the more robust option when your origin address rarely changes, because it removes one layer of DNS that can break.
The Record Points at Internal-Only DNS
Some setups point the Cloudflare record at a hostname that only exists inside a private network, such as an internal server name. It resolves fine for staff inside the network, so everything looks healthy to you, but Cloudflare resolves it from the public internet, gets nothing, and serves Error 1016 to everyone outside.
How to confirm: use a public lookup tool or run the lookup from a device outside your network, such as your phone on mobile data. If the hostname resolves inside the network but not outside, it is an internal-only name.
Fix: replace the internal hostname with the origin server's public IP address in an A record, or with a hostname that exists in public DNS. If the origin is only meant to be reachable privately, Cloudflare's public proxy cannot reach it, and the site needs either a public address or a different setup such as a tunnel provided by Cloudflare, which connects the origin to Cloudflare without opening a public IP.
Recent DNS Changes Have Not Settled
If you or your provider changed DNS records shortly before the error appeared, the record may be correct but the old answer is still cached, or the new target has not propagated yet. This also happens when a domain's nameservers were recently moved to Cloudflare and some records did not carry over.
How to confirm: check whether the record in Cloudflare matches what you intend, and run a public lookup on both your domain and the target hostname. If the target resolves publicly but your domain still shows the error, wait and re-test rather than changing more settings.
Fix: give it time. DNS changes commonly settle within minutes, but allow up to an hour or so before assuming something is broken. While waiting, set the record's TTL to a short value such as 60 seconds if you expect to adjust it again, so future changes apply faster. If the error persists well beyond that, one of the two causes above is still in play.
How to Tell the Fix Worked
Load the site in a private or incognito browser window so no cached error page is shown. A working result is the site loading normally with a valid certificate, not the Cloudflare error screen. You can also check from a second network, such as mobile data, since some errors are visible only from outside your own network. If the page loads but shows a different Cloudflare error number instead, the DNS problem is solved and you are now looking at a separate origin issue, such as the origin server refusing the connection.
What If You Are Just a Visitor to the Site?
If you saw Error 1016 while browsing someone else's site, there is nothing to fix on your side. The site's own DNS configuration is broken, and only its owner can correct it. Wait a while and reload, since transient DNS failures do resolve on their own; if the error persists after several hours, the site's records still need attention from whoever manages them. Contacting the site owner or their support channel is the only real option left.
Official source: Cloudflare