When adding new website to Cloudflare doesn't add an "A" record

I see the following behavior when adding a new website on Cloudflare:

1-Add a new website, Cloudflare automatically detects DNS from the actual domain, adds a Cname to my domain, A records from Cpanel/Whm and so…

2-I see there isn’t an A record that points directly to my actual IP(hosting provider IP)

Is that an error?

I was thinking that if my hosting provider changes the IP , That “A” record will fail, so what’s the best way to prevent this?

Thanks

If your host provides a hostname, you can certainly configure a CNAME entry and that will follow any address changes. If they only provide an IP address, you need to configure an A entry, however you will need to update this whenever it changes. If you want to automate this, you can also use the API to change IP addresses - Cloudflare API v4 Documentation

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