Skip to content
itsorted.online
Domains guide

DNS Records Explained: A, CNAME, MX and TXT in Plain English

Your domain's DNS records are a short list of instructions that tell the internet where your website lives, where your email goes and which services may send mail for you. Most website and email problems small businesses hit, from a site that will not load to invoices landing in spam, come down to one wrong line in that list. This guide explains each common record type in plain English using one example domain, shows the difference between nameservers and records, explains TTL, and ends with a cheat sheet you can print.

By IT Sorted teamReviewed 8 min readHow we write guides
in

Key takeaways

  • Nameservers decide which company's DNS your domain uses; records are the entries inside it.
  • A and AAAA records point to IP addresses; CNAME records point to another hostname.
  • MX records route incoming email; delete old ones when you switch provider.
  • TXT records carry domain verification codes plus SPF, DKIM and DMARC for email.
  • TTL is how long other servers cache a record, so lower it before planned changes.
In this guide · 9 sections
  1. 01Nameservers vs DNS records: who holds the list
  2. 02One example domain, every record explained
  3. 03A and AAAA records: where the website lives
  4. 04CNAME records: one name pointing to another
  5. 05MX records: where your email goes
  6. 06TXT records: verification, SPF, DKIM and DMARC
  7. 07TTL and propagation: why changes take time
  8. 08Do it yourself or get help?
  9. 09Frequently asked questions

Short answer

An A record points a name to a server's IP address. A CNAME points a name to another name. An MX record says which server receives your email. A TXT record holds text, used for domain verification and email security (SPF, DKIM, DMARC). Nameservers decide who holds these records.

Nameservers vs DNS records: who holds the list

Every domain has nameservers, set at the registrar where you bought it. Cloudflare's nameserver documentation describes them as the authoritative servers that hold the definitive DNS records for your domain. Whoever runs those nameservers is where you edit your records.

This is the first thing to check when 'my DNS change did nothing'. If your domain was bought at one registrar but the nameservers point to Cloudflare or your web host, edits at the registrar are ignored. Change records where the nameservers point, not where you pay for the domain.

If you are choosing where to register, our guide to the best domain registrars in Singapore compares the main options.

One example domain, every record explained

Here is a typical small business setup for an example domain, example.sg, with its website on a web host and email on Google Workspace. IP addresses are from the documentation range, not real servers.

TypeNameValueWhat it does
A@192.0.2.10Sends example.sg to the web server
CNAMEwwwexample.sgMakes www.example.sg follow the main name
MX@smtp.google.com (priority 1)Delivers email for @example.sg to Gmail
TXT@google-site-verification=abc123...Proves to Google you own the domain
TXT@v=spf1 include:_spf.google.com ~allSPF: Google may send mail for example.sg
TXTgoogle._domainkeyv=DKIM1; k=rsa; p=MIIB...DKIM public key for signed mail
TXT_dmarcv=DMARC1; p=none; rua=mailto:dmarc@example.sgDMARC policy and report address
MX, SPF and verification values follow Google Workspace Admin Help, as of October 2026. Your DKIM value comes from your email admin console.

'@' means the domain itself (the apex, example.sg). Anything else in the Name column is a subdomain: www, mail, shop or _dmarc.

A and AAAA records: where the website lives

Cloudflare's record types reference defines A and AAAA records as mapping a domain name to one or more IPv4 or IPv6 addresses. An A record holds an address like 192.0.2.10; an AAAA record holds the longer IPv6 form.

  • When you need one: your web host or website builder gives you an IP address to point your domain at.
  • What breaks if it is wrong: the website does not load, or loads an old site from a previous host. Email is not affected, because email uses MX.
  • Common mistake: leaving an old A record in place alongside the new one, so visitors randomly reach either server.

CNAME records: one name pointing to another

A CNAME maps one domain name to another, canonical name. Instead of an IP address, it says 'look up this other name instead'. Website builders and SaaS tools often ask for a CNAME such as shop pointing to a hostname they control, so they can change their servers without you editing anything.

  • When you need one: the www version of your site, a booking or shop subdomain, or a verification step for a service.
  • Rule to remember: a name with a CNAME should not have other records. That is why the apex (example.sg) normally uses an A record, unless your DNS provider offers a workaround such as Cloudflare's CNAME flattening.
  • What breaks if it is wrong: that subdomain stops working, or a third-party service cannot verify your domain.

Our guide to connecting a domain to a new website without breaking email shows which A and CNAME records to change and which to leave alone.

MX records: where your email goes

Google's MX setup article explains that when someone emails you, their mail server looks up your domain's MX records to find where to deliver. Each MX record has a priority; lower numbers are tried first.

  • When you change them: only when you move email to a new provider, such as from your web host to Google Workspace or Microsoft 365.
  • What breaks if it is wrong: incoming email bounces, goes to the old provider or disappears. Outgoing email still works, which is why the problem is often noticed late.
  • Common mistake: adding the new MX but keeping the old ones. Google says to remove other MX records, because mail may still go to the old server.

Planning a switch? Follow our steps for changing MX records without downtime.

TXT records: verification, SPF, DKIM and DMARC

A TXT record simply holds text. Services use it to check you control the domain, and email systems use it for the three anti-spoofing records. Cloudflare's email records guide notes that without these, anyone can send email that appears to come from your domain.

  • Verification: a one-off code from Google, Microsoft, Meta or another service. Safe to leave in place after verifying.
  • SPF: lists the services allowed to send mail for your domain. Have only one SPF record per domain; combine includes into a single line.
  • DKIM: a public key, usually at a name like selector._domainkey, that lets receivers check your mail's signature.
  • DMARC: at the name _dmarc, tells receivers what to do with mail that fails SPF and DKIM, and where to send reports.

If invoices or quotes land in spam, these three are the first thing to check. Our guide to SPF, DKIM and DMARC walks through fixing them.

TTL and propagation: why changes take time

Every record has a TTL (time to live). Cloudflare's TTL reference describes it as how long each record is cached, and therefore how long updates take to reach users. A longer TTL means faster lookups but slower changes. On Cloudflare, proxied records use Auto (300 seconds), and DNS-only records can be set from 60 seconds to 1 day on non-Enterprise plans.

If you are planning a move, lower the TTL on the records you will change a day or two before, make the change, then raise it again. Google says MX changes can take up to 72 hours to be recognised, so do not panic if a change is not visible everywhere within minutes.

Do it yourself or get help?

Reading your own DNS is worth doing yourself: log in where your nameservers point and compare the list with this guide. Editing it is where mistakes cost money, because one deleted MX or SPF line can stop email without warning.

DNS cheat sheet: print and check

Our Domain & DNS Setup (S$99) registers or transfers the domain in your name and sets the website and email records correctly. Adding a second domain for email? See our guide to adding a domain to Google Workspace.

Frequently asked questions

An A record points a name directly to an IP address, such as 192.0.2.10. A CNAME points a name to another hostname, which is then looked up in turn. Use an A record when your host gives you an IP address, and a CNAME when a service gives you a hostname to point a subdomain at.

Yes, and many providers use several MX records with different priorities for the same service. What causes trouble is keeping MX records from an old provider alongside the new one, because some mail may still be delivered to the old server. When you switch provider, remove the old MX records.

The two most common reasons are editing records in the wrong place, for example at the registrar when the nameservers point to a web host or Cloudflare, and caching. Records are cached for their TTL, and Google notes MX changes can take up to 72 hours. Check where your nameservers point first.

No. A domain should have a single SPF TXT record. If several services send email for you, such as Google Workspace and a newsletter tool, combine their include entries into one line. Two separate SPF records cause SPF checks to fail, which makes your mail more likely to land in spam.

Verification records for services you no longer use can usually be removed. Do not delete SPF, DKIM or DMARC records unless you are sure no service still sends mail for your domain, because removing them can send your email to spam. If unsure, check what each record belongs to first.

Rather have it done for you?

Fixed price, set up in your own accounts.

Order online, get a written scope, and keep full ownership of everything we set up. Questions first? Ask us in writing.