Welcome to the HostMaji Community! Ask a question or share a project to get started.

Domain & DNS Setup

What's the difference between an A record and a CNAME?

Author's Avatar

Asked by Amit Yadav

July 11, 2025

I'm trying to set up my DNS in the Zone Editor, and I'm confused about when to use an A record versus a CNAME record. Can someone explain it simply?

1 Answer(s)

User Avatar

Community Support Verified

Jul 11, 2025 at 10:20 AM

Hello Amit, great question. Simply put: An **A Record** points a domain name (like `yourdomain.com`) to a specific IP address (like `123.45.67.89`). A **CNAME** (Canonical Name) points a domain name to another domain name (e.g., pointing `www.yourdomain.com` to `yourdomain.com`). You use an A record for the main domain and CNAMEs for subdomains that should go to the same place or to an external service.

Your Answer

Please log in to post an answer.