DNS Records: 5 Essential Types Explained Simply (2026)

Managing dns records feels intimidating until you see how each entry maps cleanly to web traffic, email delivery, or domain verification. A single typo in a zone editor can take a site offline, so knowing the fundamentals saves real stress.
In this 2026 guide, we break down the five core dns records—A, AAAA, CNAME, MX, and TXT—plus practical migration tips.
Table of Contents
Key Takeaways
- DNS translates human-friendly domain names into machine-routable IP addresses and service rules.
AandAAAApoint hostnames to IPv4 and IPv6 addresses;CNAMEaliases one hostname to another.MXcontrols incoming email routing, whileTXTcarries SPF, DKIM, DMARC, and domain verification tokens.- Lower TTL (Time To Live) ahead of planned server migrations so DNS changes propagate rapidly.

The Five Essential DNS Record Types
| Record Type | Points To | Common Example | Primary Purpose |
|---|---|---|---|
A |
IPv4 address | 7lha.com → 203.0.113.10 |
Maps root domain or subdomain to a server IPv4 |
AAAA |
IPv6 address | 7lha.com → 2001:db8::1 |
Maps domain or subdomain to an IPv6 address |
CNAME |
Another hostname | www → 7lha.com |
Aliases a subdomain to another domain name |
MX |
Mail server hostname + priority | 10 mail.provider.com |
Directs incoming email to the right mail servers |
TXT |
Arbitrary text string | "v=spf1 include:... ~all" |
Email authentication (SPF/DKIM/DMARC) & ownership checks |
A and AAAA Records: Direct Server Addresses
An A record connects a domain name (such as 7lha.com or app.example.com) directly to a classic IPv4 numerical address. An AAAA record does the exact same job for modern 128-bit IPv6 addresses. If your hosting provider supports both IPv4 and IPv6, keeping both records updated prevents subtle routing mismatches for mobile visitors.
CNAME Records: Flexible Hostname Aliases
A CNAME (Canonical Name) points a subdomain like www or docs to another hostname rather than an IP address. This is helpful when using cloud hosting or CDNs whose underlying IP addresses rotate automatically. One classic DNS rule to remember: never place a standard CNAME on the bare apex/root domain (example.com) alongside MX or NS records unless your DNS provider explicitly offers CNAME flattening or ALIAS/ANAME records.
MX Records: Keeping Email Alive During Website Moves
A common beginner mistake when moving a website to a new server is changing nameservers blindly without copying MX records—instantly breaking company email. MX records tell external mail servers where to deliver messages addressed to @yourdomain.com, using priority numbers (lower number = higher priority) for primary and backup mail hosts.
TXT Records: Verification and Email Trust
TXT records store machine-readable text strings. You will encounter them constantly for two tasks:
- Domain Ownership Verification: Google Search Console, SSL tools, and SaaS platforms ask you to add a verification token to prove you control the domain.
- Email Deliverability & Anti-Spoofing: SPF (
TXTon root), DKIM (TXTon a selector subdomain), and DMARC (TXTon_dmarc) prove your outgoing emails are authentic and prevent scammers from forging your domain in phishing attacks.
Understanding TTL Before Making Changes
Every DNS record carries a Time To Live (TTL) in seconds—such as 3600 (1 hour) or 300 (5 minutes). Resolvers cache records for up to the TTL duration. Before migrating servers, lower the affected record’s TTL to 300 seconds a day in advance so the cutover updates quickly worldwide, and back up your zone file alongside your 3-2-1 infrastructure backup plan.

Step-by-Step Checklist for Editing DNS Records Safely
Before changing production dns records during a server or email switch, run this four-step safety routine:
- Export Your Current Zone File: Save a plain-text backup of every active record before deleting or overwriting entries.
- Lower TTL 24 Hours Early: Drop Time To Live on the target dns records to 300 seconds so cutover updates propagate rapidly.
- Preserve MX and TXT Values: Never overwrite mail routing or SPF/DKIM/DMARC records when pointing web traffic to a new host.
- Verify Both Root and WWW: Test both
example.comandwww.example.comover HTTPS immediately after saving.

Troubleshooting Propagated DNS Records After Changes
When updated dns records appear live on mobile data yet fail on your office Wi-Fi, stale local resolver caches are usually responsible. Query authoritative nameservers directly with dig @ns1.provider.com or Google Dig before assuming the edit failed, and restore normal 3600-second TTL values once verified.
Official Reference Resources for DNS Records
When implementing dns records in real environments, cross-checking vendor manuals and security standards ensures your setup remains reliable across updates.
- Cloudflare Learning Center: DNS Record Types — Official documentation and reference guidance related to dns records.
- Google Admin Toolbox Dig Lookup — Official documentation and reference guidance related to dns records.

Frequently Asked Questions
How do TXT DNS records prevent email spoofing?
TXT records publish SPF, DKIM public keys, and DMARC policies so receiving mail providers can verify that outgoing messages truly originated from authorized servers.
How long does DNS propagation actually take?
Most changes appear globally within minutes if the previous TTL was low (300 seconds), though cached entries on ISP resolvers with high TTLs can take up to 24–48 hours to expire completely.
Can I have both an A record and a CNAME for the same subdomain?
No. Standard DNS rules forbid mixing a CNAME with any other record type (including A, AAAA, or TXT) on the exact same hostname.
How can I check what DNS records are live right now?
Run nslookup -type=MX example.com or dig example.com TXT from your terminal, or test how DNS speed affects first-byte latency in our Core Web Vitals speed checklist.
Conclusion
DNS stops feeling intimidating once you separate web routing (A, AAAA, CNAME) from mail routing (MX) and trust verification (TXT). Document your current zone before editing, adjust TTL ahead of migrations, and verify records immediately after saving.



