How it works · 13 of 36 Core
What are DNS records (A, CNAME, MX)?
Where your site and email live
DNS records (A, CNAME, MX): Records are the lines in a domain's DNS entry: A gives the IP address, CNAME points to another name, MX names the mail server.
Loading the animation…
Say it like this DNS records are the lines in a domain's DNS entry: A gives the website's IP address, CNAME points one name at another, and MX says where the email goes.
Under the hood — for builders
- Real case: pointing a domain's email at Google
- A business moving its email to Google Workspace adds one MX record. Its website records don't change at all:
- The record types you'll meet
- Every record has a type. These six cover almost every setup screen:
- Worked example: two MX records
- MX records carry a number. The sender tries the lowest number first and moves on only if it fails:
- CNAME rule
- A name with a CNAME can't hold any other record (RFC 1034, section 3.6.2). A bare domain also needs NS and MX, so it can't use one.
- Measure it
- Windows: nslookup -type=MX example.com lists the mail servers; -type=A gives the address.
- Watch out
- Editing records? Copy the old values first. Deleting the wrong MX line stops all incoming email at once.
- Sources
- RFC 1034, RFC 1035, RFC 3596. Google Workspace Admin Help, MX records. Read 28 Nov 2026.
What happens in the DNS records animation, step by step?
- A domain's DNS entry is a short list of records. Each line tells one kind of traffic where to go.
- Type ashasbakery.in and the A record gives the website's IP address: 198.51.100.10.
- shop.ashasbakery.in has a CNAME: "this name is really shops.example.net". The visitor follows it to a hosted shop.
- Email to asha@ashasbakery.in reads a different line, the MX record, and goes to the mail server. Same name, different building.
- Your turn: break one record and see what stops working.
- Records tell the world where your site and your email live. Next: what do all the parts of a web address mean?
What everyday example explains DNS records?
A building's directory board: shop on floor 2, post goes to the side door.
Why should a team care about DNS records?
Moving a website or switching email providers is changing records; one wrong line takes either down.