Not able to access my site using an "A" record

I set up a new EC2 instance and then added an A name record in Cloudflare to access this server. While I can access my server using the IP, I cannot access it using the A name. Why would this be?

Hi @marketing13,

So just to check, you can access it when going direct to the IP, but not when you enter the domain / subdomain?

Can you post the domain in question, and also do you see an error when you try to access it?