Error 1016 Origin DNS error - Custom Domain - Cloudflare Workers

Problem: https://demo.example.com gives a 1016 error.

Note:

  • https://example.com works fine and relies on Cloudflare pages.

  • https://demo.subdomain.workers.dev works fine. It was created via Cloudflare workers.

  • https://demo.example.com does not work. It was created by adding a route and DNS record.

  • All of my other custom domains tied to Cloudflare workers work fine; e.g., https://demo1.example.com, https://demo2.example.com.

What is the website that gives the 1016 error?
Also check out the following link below
https://support.cloudflare.com/hc/en-us/articles/360029779472-Troubleshooting-Cloudflare-1XXX-errors

1 Like

Thanks for your help, AppleSlayer. I am reluctant to put the web address here.

I just found this response. I would add an A record, but I am not sure how or where to get the IP address.

How to fix error 1016 Origin DNS error?

Log in to your Cloudflare account → fix the Cloudflare DNS records → add the A Record in your domain’s DNS Record → allow Cloudflare to scan the new DNS records.

To add a DNS record follow the steps below

  1. Log in to your Cloudflare account
  2. Click the domain you wish to change the records with
  3. Click “DNS”
  4. Click “Add record”
  5. Fill out the record information
1 Like

Hi AppleSlayer, Thanks for your response. I do know how to add a record. It is the information required that confuses me. Specifically, the origin IPv4 address. I suspect this address may be dynamic.

Type - A

Name - demo

IPv4 address ???

TTL - Auto

Proxy status - Proxied

Per Cloudflare

Common causes for Error 1016 are:

  • A missing DNS A record that mentions origin IP address.

and

To resolve error 1016:

  1. Verify your Cloudflare DNS settings include an A record that points to a valid IP address that resolves via a DNS lookup tool.

However, when I run the tool for the A record, it shows everything is fine. Therefore, I should not need to add an A record.

I decided to open a ticket.

Your request (#2285174) has been submitted and a Technical Support Engineer will be contacting you soon. Priority is given to Enterprise, Business and Pro customers, in that order.

I just received an automated response

Cloudflare Support Team (Bot) (Cloudflare)

Oct 20, 2021, 7:34 AM PDT

Thank you for contacting Cloudflare Support.

A 1016 error / 530 error indicates that Cloudflare is unable to send requests to your server because its origin IP cannot be resolved through DNS.

Troubleshoot this error with our support guide or by using this Community Tip.

Your plan type grants you access to Support via our Cloudflare Community. Users who post topics in the Community have a median first reply time of under one hour!

  1. Before you post, search the Community to see if your question has already been answered.
  2. If you didn’t find your answer in an existing post, start a new thread (don’t forget to include “Error 1016 Ray ID” in the details).
  3. If you don’t receive a reply within 72 hours or if the replies do not answer your question, reply to your own Community post with your ticket number 2285174 and at mention @MoreHelp to bring your post to our attention. You also have full access to our detailed troubleshooting guides in the Help Centerand our Developer documentation.

This is an automated response, which we hope has answered your question.

Search the Cloudflare Community for advice and insight.

What tool?

I suspect you have an issue with the CNAME record as mentioned in item 3,

Cloudflare is hosting the domain (and the subdomain).

As mentioned in the first post, the main domain works fine.

All of my other custom domains work fine. They also use a CNAME record.

There is no difference between this subdomain and the others. As people have stated in other posts about this problem (or similar), the problem has to be on Cloudflare’s end.

I have opened numerous tickets on this issue of my domains and subdomains not working over the past six months. Cloudflare support has never answered my question about why this happens. I have never received feedback about the supporting information I provided, either.

Given that Cloudflare is the host, it seems as though Cloudflare should provide detailed response to explain what is causing this issue.

I just checked my example.com domain. This domain has worked perfectly for months. Now, today, all of a sudden it goes down with a 522 error.

I am absolutely certain this error is triggered by Cloudflare.

Now, the main domain is working again. The subdomain is still giving an Error 1016 - Check your DNS settings. If you are using a CNAME origin record, make sure it is valid and resolvable.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.