Domains & DNS

DNS Records Explained: A, CNAME, MX, TXT and More

2 min read

DNS Records Explained: A, CNAME, MX, TXT and More

DNS, the Domain Name System, works like the phone book of the internet. It translates names such as example.com into the technical addresses and settings that computers need. Understanding a few record types helps you avoid outages and email problems.

The most important record types

  • A record: points a name to an IPv4 address, for example your web server.
  • AAAA record: the same, but for an IPv6 address.
  • CNAME record: makes one name an alias of another name, such as www pointing to your main domain.
  • MX record: tells the world which servers receive email for your domain.
  • TXT record: holds text, used for verification and email authentication such as SPF, DKIM and DMARC.
  • NS record: names the authoritative servers that manage the domain’s DNS.

What is TTL?

TTL, or time to live, tells other servers how long they may cache a record. A low TTL such as 300 seconds makes changes visible faster. Lowering it a day before a migration is a common best practice.

How a DNS lookup travels from browser to name server.
How a DNS lookup travels from browser to name server.

Why changes seem slow

People often speak of DNS propagation. In reality, changes appear gradually because old answers stay cached until their TTL expires. That is why different users may briefly see different results.

Common mistakes

  • Deleting records you do not recognise, which may be needed for email or verification
  • Setting a CNAME on the root domain, which conflicts with other records
  • Forgetting to update SPF when you change email provider
  • Having two SPF records instead of one combined record
  • Letting the domain expire, which takes everything offline

Good habits

Interactive checklist: tick off what you have done

  • Current DNS records exported or screenshotted
  • TTL lowered before a migration
  • One change at a time, tested afterwards
  • Only one SPF record per domain

Document your records before you change anything, change one thing at a time and test afterwards. If you are unsure, ask someone to review the change first. A small DNS error can take a website or a whole mail system offline.

Share: LinkedIn X Email

Leave a Reply

Your email address will not be published. Required fields are marked *

Related articles