Skip to content
Free website migration on every plan, done by our team.Learn more ›
Domains

DNS records explained: A, AAAA, CNAME, MX and TXT

A clear guide to the DNS records every site owner meets: A, AAAA, CNAME, MX, TXT, NS and CAA, with real examples and common mistakes to avoid.

Short answer: DNS records are instructions stored for your domain. A and AAAA records point a name to a server's IP address, CNAME points one name to another name, MX tells email where to go, TXT holds verification and email-security text, and NS lists the nameservers in charge.

The records you'll actually use

RecordWhat it doesExample
APoints a name to an IPv4 addressyourbusiness.com → 203.0.113.10
AAAAPoints a name to an IPv6 addressyourbusiness.com → 2001:db8::10
CNAMEPoints a name to another namewww → yourbusiness.com
MXSends email to a mail server, with a priority10 mail.yourbusiness.com
TXTHolds text for verification and email securityv=spf1 include:...
NSLists the domain's nameserversns1.example-host.com
CAASays which authorities may issue SSL certificates0 issue "letsencrypt.org"

Common tasks

Point your site to a new host

Update the A record (and AAAA if used) to the new server's IP address, or change nameservers entirely. See what nameservers are.

Set up email

Add the MX records your email provider gives you, plus SPF, DKIM and DMARC TXT records so messages don't land in spam. See SPF, DKIM and DMARC.

Verify a service

Google Search Console and many tools ask you to add a TXT record to prove you own the domain.

TTL

Every record has a TTL (time to live) in seconds. It tells resolvers how long to cache the answer. Lower the TTL a day before a planned change so the switch spreads faster. See DNS propagation.

Common mistakes

  • Adding a CNAME on the root domain, which most DNS providers don't allow.
  • Deleting MX records when changing nameservers, which breaks email.
  • Having two SPF records instead of one combined record.
  • Forgetting the www version of your site.

Frequently asked questions

Where do I edit DNS records?

Wherever your nameservers point: usually your host's control panel or your registrar's DNS editor.

Can I break my site by editing DNS?

Yes, a wrong A or MX record can take a site or email offline. Note the old values before you change anything.

What's the difference between a CNAME and a redirect?

A CNAME is a DNS alias. A redirect is a web-server instruction that sends visitors to a different URL. See 301 vs 302 redirects.

Ready when you are

Host it where it performs

NVMe speed, offshore privacy and a written SLA — live in minutes on AuroxHost.