This tutorial will help you to fix error 522 connection timed out (host error) and error 1016 origin DNS error. If you recently redirected your website from http to https on Cloudflare, then this error is due to incorrect or missing Cloudflare DNS settings. You have to do Cloudflare DNS setup to fix these errors.
This is my website and it is showing Error 522.
Both the error is due to incorrect or missing Cloudflare DNS settings. If you are getting any of these two errors this tutorial will help you to fix these errors.
Cloudflare DNS Settings – Step By Step
Cloudflare DNS setup tutorial step by step guide.
Open your Cloudflare account
Open Cloudflare website and sign in to your account.
Cloudflare DNS setup
Click on the DNS Button and then check your Cloudflare DNS settings. If something is missing or incorrect then add the right records in the DNS. In my case, It is showing that an A, AAA, CNAME was not found pointing to the root domain.
Scroll down the page and check which records are not there in the Cloudflare DNS. After that add those records that are not there in the DNS. You can check which records need to be added to the DNS by visiting your cPanel and you can find it in Zone Editor. In the zone editor, You will find all the DNS Settings.
In my case, some records are missing and in CNAME – the value of URL is incorrect. It is written “is an alias of parkingpage.namecheap.com” but It should be written like this “is an alias of kamattourandtravels.com”.
Add the Records in right way
You can add these records in your Cloudflare DNS to fix all the errors (error 522 and error 1016). These are the necessary records that must be added in your Cloudflare DNS. If these records are not there in your DNS settings then add these records. It will surely help you to fix your DNS error.
Open your cPanel
Why do I need to open my cPanel? It is because you need to write the dedicated IP address of your website in the DNS to add some records. So, to know your website dedicated IP address. You have to open your cPanel and then search for zone editor.
Click on the manage button. In the zone editor, You will find all the DNS Settings.
Start adding records
Now, you know your website dedicated IP address. You can start adding records that are required in your Cloudflare DNS. I have added all the records that I need to add in my Cloudflare DNS settings. You can check the below image. These are the necessary records that must be there in your Cloudflare settings.
Reload Your website
Reload your website again and it will work surely. I have reloaded my website and yes it is working. Just follow this step by step guide and you will be able to fix your error easily.
If you have any questions or suggestion, you can write in the comment section.