Hosting · 11 min

DNS records explained: the eight records a small business actually needs

By Xenith Editorial

DNS is the part of your setup that nobody understands until it breaks, and then it breaks everything at once: website down, email bouncing, and a dashboard full of records whose names mean nothing to you. It is genuinely simple once you see what each record is for.

The mental model: DNS is a phone book. Someone types your domain, and DNS answers "which server should I talk to, for which purpose." Each record type answers that question for a different purpose.

The records that matter

TypeAnswers the questionDo you need it
AWhich IPv4 address hosts this name?Yes, for a website, unless you use CNAME
AAAASame, for IPv6Usually set by your host. Harmless and good
CNAMEThis name is an alias for that other nameVery often, for www and hosted services
MXWhich server receives email for this domain?Yes, if you have email on the domain
TXTFree-form text, used for verification and email authYes — SPF, DKIM, DMARC and site verification all live here
NSWhich nameservers are authoritative for this domain?Yes, and getting these wrong makes everything else irrelevant
CAAWhich certificate authorities may issue TLS certificates?Optional, genuinely useful
SRVWhich host and port provides a specific service?Only if a provider asks for it

A and CNAME: the one people get wrong

An A record points a name at an IP address. A CNAME points a name at another name, and whatever that name resolves to is used. The practical difference is maintenance: if your host changes IP addresses, a CNAME follows automatically while an A record silently breaks.

The rule that trips everyone: you cannot put a CNAME on the root domain (`example.com`) alongside other records, because the root needs to carry MX and NS records too. Providers work around this with "CNAME flattening" or "ALIAS" records — Cloudflare does this transparently. If a service tells you to CNAME your root domain and your provider refuses, that is why, and the workaround is a flattened CNAME or an A record.

MX: email, and the mistake that loses mail

MX records list mail servers with a priority number. Lower number means tried first.

TXT: small records, large consequences

TXT records do the unglamorous work that decides whether your email is trusted. If your quotes land in spam, this is where the cause lives, and our guide to SPF, DKIM, and DMARC covers the full setup.

PurposeWhat to know
SPFExactly one SPF record per domain. Two is a permanent failure. Stay under 10 DNS lookups
DKIMPublished at a selector subdomain your provider gives you. Enable in the provider and publish the record
DMARCLives at _dmarc.yourdomain. Start at p=none with a reporting address, then tighten
VerificationGoogle, Bing, and others ask for a TXT record to prove ownership. Do not delete these later — verification silently lapses

TTL: why your change has not taken effect

TTL is how long resolvers are allowed to cache an answer, in seconds. 3600 means an hour. If you change a record, anyone holding a cached copy keeps the old answer until it expires.

The professional habit: lower the TTL to 300 a day before a planned migration, make the change, confirm it works, then raise it back. This turns a potential day of inconsistent behaviour into five minutes. It only works if you plan ahead, which is the entire point.

When a change "has not worked": check whether you edited the domain at the provider that actually controls the nameservers. Editing records at your registrar while your NS records point elsewhere is the single most common wasted hour in DNS.

CAA: five minutes of real security

A CAA record states which certificate authorities are allowed to issue certificates for your domain. Without one, any public CA can issue a certificate for your name if someone convinces them. With one, the list is restricted. It costs one record and prevents a category of attack. Set it to whichever CA your host uses.

The outages this prevents

A sane setup for a small business

  1. Register the domain somewhere you control, separate from your host — see choosing hosting for why ownership should not be bundled.
  2. Point NS at one DNS provider and make all changes there. One source of truth.
  3. A or CNAME for the root and www, both resolving to the same site, with one canonical version.
  4. MX for your mail provider, plus SPF, DKIM, and DMARC.
  5. CAA restricting certificate issuance.
  6. Export the full zone file and store it with your documentation. Reconstructing DNS from memory during an outage is a bad evening.

That is it. Eight record types, one provider, one exported backup. DNS stops being frightening the moment you can see the whole thing on one page.

No company paid for placement in this article. Verify current prices and terms with each provider before buying.