
A website that worked yesterday now shows a Cloudflare page reading “Error 1016 — Origin DNS Error.” The Cloudflare error 1016 fix is refreshingly specific: Cloudflare cannot resolve the IP address of the origin web server. In plain terms, Cloudflare knows the domain name but the DNS record that should point it at the real server is missing, wrong, or pointing somewhere unresolvable. This 2026 guide walks through the exact checks that resolve it — almost all of them in the site owner’s DNS settings.
Think of it as a phone book problem. When you visit a Cloudflare-protected site, Cloudflare looks up the origin server’s address in the site’s DNS records (the A or CNAME record). If that entry is missing, points to a domain that no longer resolves, or references a stale address after a migration, Cloudflare has nowhere to send your request — hence the 1016 page. Visitors cannot fix this one; it is squarely a configuration issue, so this guide is written for site owners and developers.
What Causes Cloudflare Error 1016
- Missing DNS A record: the record that maps the domain to the origin server’s IP address was deleted or never created.
- CNAME pointing to an unresolvable domain: the target hostname no longer exists or its DNS fails.
- Stale records after migration: the site moved hosts, but the Cloudflare DNS still points at the old provider’s names.
- Recent nameserver changes: DNS propagation is incomplete — some resolvers still see the old setup.
- Load balancer pools with dead origins: all pool hostnames unresolvable and no IP-based fallback pool configured.
- Partial-zone conflicts: a previous host created a partial Cloudflare zone that now conflicts with the current setup.
How to Fix Cloudflare Error 1016: 7 Steps
Step 1: Confirm the record Cloudflare sees
In the Cloudflare dashboard, open DNS → Records and look at the A record for the affected hostname. Is it there? Does the IPv4 address match the one your host gave you? A missing or obviously wrong entry is the most common find — proceed to fix it in Step 3.
Step 2: Test resolution from the outside
Run dig yourdomain.com (or nslookup yourdomain.com on Windows) and check the ANSWER section. Then test against Cloudflare’s own resolver: dig @1.1.1.1 yourdomain.com. If public resolvers return nothing, the record is genuinely absent — not a caching illusion. Tools like WhatsMyDNS show propagation across global resolvers.
Step 3: Add or correct the A / CNAME record
Create the missing A record pointing at your origin server’s current public IP, or fix the CNAME so its target domain resolves. Get the correct IP from your hosting panel (not from an old email — IPs change after migrations). For CNAMEs to external domains, verify the target resolves first with the dig test above.

Step 4: Wait for propagation — then verify
DNS changes can take minutes to 48 hours to propagate fully. Clear Cloudflare’s edge cache (Caching → Purge Everything) so no stale DNS is served, and re-test with dig. If some regions still fail after a few hours, the issue is propagation, not configuration.
Step 5: Check nameserver delegation
If you recently moved to Cloudflare, confirm at your domain registrar that the nameservers are exactly the pair Cloudflare assigned. A typo or a half-completed transfer leaves Cloudflare unable to serve authoritative answers. The registrar’s WHOIS output is the source of truth.
Step 6: Fix load balancer and SaaS setups
For Load Balancer users: ensure at least one origin pool hostname resolves, and configure a fallback pool with a raw origin IP. For Cloudflare for SaaS: complete custom-hostname ownership validation and confirm the fallback origin has a valid DNS record.
Step 7: Rule out a conflicting partial zone
If a previous host managed your DNS through Cloudflare, their partial zone may conflict with yours. Log in to Cloudflare with the email the old host used (or ask them to remove the domain from their account), and delete the stale zone. Related origin-connection failures are covered in our Cloudflare 520/525/526 guide.
How to Prevent Error 1016
Treat DNS as infrastructure, not an afterthought: document every record’s purpose, never delete records during a migration until the new setup is verified live, and use low TTLs (300 seconds) in the days before a planned move so changes propagate fast. After any hosting change, run the dig checks immediately rather than waiting for user reports. A quarterly DNS audit — and a free DNS lookup tool for spot checks — catches stale entries before they become outages.
Conclusion
Error 1016 is Cloudflare telling you it lost the map to your server: a missing or broken DNS record. Verify what the dashboard shows, test with dig, fix the A or CNAME record, and let propagation finish. Nine times out of ten, the fix is a two-minute DNS edit. For more Cloudflare and DNS errors in plain language, follow the KamiWeb blog.
