Domains

DNS record types explained: A, AAAA, CNAME, MX, TXT, NS, SRV and CAA

What each common DNS record does, what its value looks like and when you need it, from A and CNAME for websites to MX, TXT and SRV for email and services.

BeginnerEveryone2 min read

A domain's DNS zone is a list of records. Each record answers one kind of question: where is the website, where should email go, who may issue certificates. Knowing the main types makes it easy to connect services such as Google Workspace, Microsoft 365 or a website builder.

In short

  • Every record has a name (host), a type, a value and a TTL.
  • @ means the domain itself; www means www.example.com.
  • With MdmHost nameservers you edit records in cPanel Zone Editor.

The common record types

TypeWhat it doesExample value
APoints a name to an IPv4 address.203.0.113.10
AAAAPoints a name to an IPv6 address.2001:db8::10
CNAMEMakes a name an alias of another name.example.com.
MXSays which servers receive email, with a priority.10 mail.example.com.
TXTFree text, used for SPF, DKIM, DMARC and ownership checks.v=spf1 +mx +a ~all
NSLists the authoritative nameservers.ns1.example.net.
SRVLocates a service with port and priority (VoIP, chat, autodiscover).0 5 443 server.example.com.
CAALimits which certificate authorities may issue SSL for the domain.0 issue "letsencrypt.org"

Rules worth knowing

  • A CNAME cannot exist next to other records with the same name, so the bare domain (@) normally uses an A record.
  • MX records must point to a hostname, never directly to an IP or a CNAME.
  • A domain should have only one SPF TXT record; merge entries instead of adding a second.
  • A trailing dot in a value means a full name; without it, some editors append your domain.

Which records matter for what

Next steps

Was this guide helpful?

Still stuck?

Ask MdmHost AI for a quick answer, or open a ticket and our team will take a look. We are here 24/7.