Moving hosting for a site already on Cloudflare

I have a website that is hosted on Host Gator (and the name servers for the domain is already pointing to Cloudflare). I want to move the hosting to Amazon Lightsail and have already made a copy of the site from Host Gator to Amazon. I have an IP address associated with the copied site.

I’m not sure what I need to do in order for the domain to point to that IP – and still use Cloud Flare. Normally, the name server is pointing to the host, then I just update with Cloudflare’s name servers. What do I do when the domain is already using Cloudflare?

You need to update your A records on your root domain and www., or any other subdomain that you want to point to your Lightsail!

Here is some documentation to help you:

https://www.cloudflare.com/learning/dns/dns-records/dns-a-record/

P.s. I just moved to Lightsail myself for my personal blog, and I am very happy with it! I wish you the best with your website.

2 Likes

So, I go to my domain registrar and update the name servers to point to Amazon? Then I’ve eliminated Cloudflare, right?

Hi @CFNewbie,

If you want to continue using Cloudflare, you don’t want to change the nameservers away. You will want to edit your DNS records in Cloudflare to point to your new host.

If, however, you no longer want to use Cloudflare on the site, then yes - just change your nameservers to point elsewhere.

I’m planning to use Cloudflare on a site that already has SSL. I would prefer to use Cloudflare’s free SSL feature. Will I have any issues when I update the name servers to point to Cloudflare?

By the way, the site’s hosting will be moved over to Amazon Lightsail first. Not sure if that will cause problems with SSL.

I am a bit confused here. You said the domain already points to cloudflare. Therefore, all you need to do is update cloudflare to point to the new hosting provider. Currently the chain is Domain.com -> Cloudflare -> HostGator. And you will need to sign in to CloudFlare to change it to Domain.com -> Cloudflare -> Amazon, click edit next to the A name records for your root domain and www., and change them to the IP address on LightSail. As long as you are using CF and have SSL enabled, your SSL will work.

This topic was automatically closed after 31 days. New replies are no longer allowed.