What's the difference between an A record and a CNAME record for subdomains in Cloudflare?

Question

Grade: Education Subject: Support
What's the difference between an A record and a CNAME record for subdomains in Cloudflare?
Asked by:
90 Viewed 90 Answers

Answer (90)

Best Answer
(292)
An A record maps a subdomain directly to an IP address. A CNAME record maps a subdomain to another domain name (hostname). Use an A record if you have a static IP address for your subdomain's server. Use a CNAME record if the IP address might change or if you want to point to another domain.