What is a CNAME record and how is it used when connecting Cloudflare to GitHub Pages?

Question

Grade: Education Subject: Support
What is a CNAME record and how is it used when connecting Cloudflare to GitHub Pages?
Asked by:
85 Viewed 85 Answers

Answer (85)

Best Answer
(285)
A CNAME (Canonical Name) record is a type of DNS record that maps an alias name to a true or canonical domain name. When connecting a subdomain like 'www' to GitHub Pages, you create a CNAME record in Cloudflare pointing to your default GitHub Pages URL (e.g., yourusername.github.io).