Skip to content
Happy New Year 2027 from ZenexCloud
ZenexCloud
Domains

What are DNS records (A, CNAME, MX, TXT)?

Plain-language guide to the DNS record types used for websites and email.

DNS records are instructions stored for your domain. They tell browsers and mail servers where to go.

  • A record: points a name to an IPv4 address. Example: example.com points to your server's IP.
  • AAAA record: same as A, but for an IPv6 address.
  • CNAME record: makes one name an alias of another name. Example: www points to example.com. A CNAME cannot sit on the bare domain next to other records.
  • MX record: says which mail server receives email for your domain. It has a priority number; lower is tried first.
  • TXT record: holds text. Used for SPF, DKIM, DMARC and domain ownership checks.
  • NS record: lists the nameservers for the domain.

TTL (time to live) is how long, in seconds, other servers keep a record before checking again. A low TTL such as 300 makes changes spread faster. Lower it before a planned change.

Where DNS lives Only one place controls your DNS at a time: the nameservers set for the domain. Edit records there. If your nameservers point to your hosting, edit in cPanel. If they point elsewhere, edit at that provider.

Common examples

  • Website: A record for @ and a CNAME for www.
  • Email: MX record plus SPF, DKIM and DMARC TXT records.

See also "How do I add a DNS record in cPanel?" and "What is DNS propagation?".

Still need help?

Ask Zeni in the chat bubble, or open a support ticket. We answer 24/7.