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

RecordWhat it does
APoints a name to an IPv4 address.
AAAAPoints a name to an IPv6 address.
CNAMEMakes one name an alias of another.
MXSays where email for the domain goes.
TXTHolds text, used for verification and email security.
NSSays which servers hold the records.

Common tasks

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 product photo

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 →