K Host
← Back to Blog
🎓 Tutorials

DNS Records Explained: A, CNAME, MX, TXT (With Examples)

July 18, 2026 · 6 min read · By K Host Team
DNS Records Explained: A, CNAME, MX, TXT (With Examples)

DNS is the phone book of the internet. These are the records you will actually use.

A and AAAA records

Point your domain to a server's IP address. A = IPv4 (e.g. 13.235.152.20), AAAA = IPv6. This is the most common record — your website lives here.

CNAME records

Point one name to another name. Use for subdomains: www → yourdomain.com. Never use CNAME on the root domain itself.

MX records

Direct email to your mail server. Includes a priority number — lower numbers are tried first. Get these wrong and email silently breaks.

TXT records

Free-form text used for verification and email security (SPF, DKIM, DMARC). Also used by Google and others to verify domain ownership.

Common mistakes

  • Forgetting the trailing dot in some DNS editors.
  • Setting TTL too high before a migration (use 300 seconds).
  • Creating duplicate A records and wondering why traffic splits.

Related articles

PHP 8.1 vs 8.2 vs 8.3: Which Should You Use?
🎓 Tutorials

PHP 8.1 vs 8.2 vs 8.3: Which Should You Use?

Performance, compatibility, and end-of-life dates — the practical differences between PHP versions.

Sep 1, 2026 · 5 min read
How to Migrate WordPress with Zero Downtime
🎓 Tutorials

How to Migrate WordPress with Zero Downtime

The exact process professionals use to move WordPress sites without visitors noticing.

Aug 25, 2026 · 8 min read
Why Your Emails Go to Spam (And How to Fix It)
🎓 Tutorials

Why Your Emails Go to Spam (And How to Fix It)

SPF, DKIM, DMARC — the three DNS records that decide whether your email reaches the inbox.

Aug 18, 2026 · 6 min read