Home / Guides
DNS Records Explained: A, CNAME, MX, TXT and More
DNS is the phone book of the internet. A few record types do almost all the work.
The ones you will meet
| Record | What it does |
|---|---|
| A | Points a name to an IPv4 address. |
| AAAA | Points a name to an IPv6 address. |
| CNAME | Makes one name an alias of another. |
| MX | Says where email for the domain goes. |
| TXT | Holds text, used for verification and email security. |
| NS | Says which servers hold the records. |
Common tasks
- Point a site: add an A record or a CNAME, as your host instructs.
- Set up email: add the MX records from your email provider.
- Prove ownership: add the TXT record a service gives you.
TTL in plain words
Time-to-live is how long other computers may remember an answer. A short TTL means changes spread faster; a long one means fewer lookups.
Email safety records
SPF, DKIM and DMARC are TXT records that help mail providers trust your messages. Your email provider will give you the exact values.
Tools
Free DNS lookup tools show what the world sees right now. Check them after every change.
Gear and reading that fits this guide
Photos and links go to Amazon. Check the current price, model and seller there.

The Linux Command Line, 2nd Edition
The quiet foundation for working with servers and hosting.
Check it on Amazon →Want the whole shelf sorted by type? Browse all Top Picks →