Domaintico

GUIDE

DNS records basics (A, CNAME, TXT, MX)

A practical, no-jargon overview with examples you can copy. Set up your website, email, and verification records safely.

~6 min read Updated Feb 25, 2026

What DNS records do (in one sentence)

DNS records tell the internet where your domain should go — your website server, your email provider, or services that need verification.

Record Common use Example
A Point a name to an IPv4 address @ → 203.0.113.10
CNAME Alias one name to another hostname www → example.hosting.com
TXT Verification + email policies (SPF, etc.) @ → "v=spf1 …"
MX Route email to your mail provider @ → mail.provider.com (priority 10)
Important: If you changed nameservers to another provider, you must add DNS records at that provider (not in Domaintico).

The 4 most common DNS records

A

A record (website)

An A record points a hostname to an IPv4 address. Most websites use:

  • Host: @ (root domain)
  • Value: your server IP (example: 203.0.113.10)
  • TTL: leave default unless your provider recommends otherwise
Example
TypeA
Host@
Value203.0.113.10
TTLAuto
Tip: If your provider gives you a hostname (not an IP), you likely need a CNAME instead.
CNAME

CNAME record (alias / www)

A CNAME makes one hostname an alias of another hostname. A common setup is:

  • www → points to your platform’s hostname (example: example.hosting.com)
Example (www)
TypeCNAME
Hostwww
Valueexample.hosting.com
TTLAuto
Warning: Don’t create a CNAME at the root (@) unless your DNS provider explicitly supports it (some do via ALIAS/ANAME).
TXT

TXT record (verification + SPF)

A TXT record stores text used for domain verification and email policies. Typical cases: Google/Stripe verification, SPF, and other provider checks.

Example (SPF)
TypeTXT
Host@
Valuev=spf1 include:mail.provider.com ~all
TTLAuto
Tip: If you already have an SPF TXT record, don’t add a second one — merge the includes into a single SPF record.
MX

MX record (email routing)

MX records tell the internet where to deliver email for your domain. Your email provider will give you one or more MX records, each with a priority (lower number = higher priority).

Example (two MX records)
TypeMX
Host@
Valuemx1.mailprovider.com
Priority10
TypeMX
Host@
Valuemx2.mailprovider.com
Priority20
Important: Delete old MX records if you are switching email providers (after confirming the new ones are correct).

Propagation & safety checklist

  • Make changes in small steps (don’t change everything at once if the site/email is critical).
  • Keep TTL on default unless you know why you’re changing it.
  • Expect caching: updates can take time to show everywhere.
  • If you’re moving providers, copy records first, then switch nameservers.

Troubleshooting

My site works on root domain but not on www (or vice versa).
Make sure you have the right record for www (usually a CNAME) and that your website/platform is configured to accept both hostnames (often via redirects).
Email is not receiving after I changed DNS.
Verify MX records (values + priorities) and ensure you didn’t remove required SPF/DKIM records. If you switched nameservers, add the MX/TXT records at the active DNS provider.
I see multiple SPF TXT records.
Keep only one SPF record. Combine the needed include: entries into a single SPF TXT value.

Need help with DNS?

We can help you verify records and avoid downtime.