HomeBlogHow DNS Records Work — A Complete Guide for 2026
DNS 12 min read

How DNS Records Work — A Complete Guide for 2026

DNS records control how the internet routes traffic to your domain. This guide explains every DNS record type, how to look them up, and how they relate to email delivery and domain security.

goodboycoder
goodboycoderFounder
Founder of FreeMailTools
Published 2026-08-04

What Are DNS Records?

DNS (Domain Name System) records are instructions stored in DNS servers that map human-readable domain names to machine-readable information — IP addresses, mail server locations, verification tokens, and security policies.

When you visit a website or send an email, DNS records are the phonebook entries that tell your computer exactly where to go and what rules to follow.


How DNS Lookup Works

  1. You type freemailtools.com in your browser
  2. Your computer asks a recursive DNS resolver (usually from your ISP or 1.1.1.1) for the IP address
  3. The resolver asks the root nameservers which servers are authoritative for .com TLDs
  4. The resolver asks those TLD nameservers which servers are authoritative for freemailtools.com
  5. The resolver asks the authoritative nameservers for the A record of freemailtools.com
  6. The answer is returned and cached for the TTL duration
  7. Your browser connects to the returned IP address

This entire process typically takes 20–100ms on a first query, and is served from cache in under 1ms on subsequent queries within the TTL window.


DNS Record Types Explained

A Record — IPv4 Address

Maps a domain/subdomain to an IPv4 address.

text

Use case: Points a domain or subdomain to a web server.

Check A Records →


AAAA Record — IPv6 Address

Maps a domain to an IPv6 address.

text

Use case: IPv6 connectivity for modern networks.

Check AAAA Records →


CNAME Record — Canonical Name

Creates an alias from one domain name to another.

text

Use case: Point www to the apex domain. Can't be used at the apex domain itself (use ALIAS or ANAME instead).

Check CNAME Records →


MX Record — Mail Exchange

Specifies the mail servers that receive email for a domain. Lower priority number = higher preference.

text

Use case: Email routing. Without MX records, email cannot be delivered to your domain.

Check MX Records →


TXT Record — Text

Stores arbitrary text strings in DNS. Used for domain verification, email authentication, and many other purposes.

text

Use case: SPF records, DMARC records, domain ownership verification, DKIM public keys.

Check TXT Records →


NS Record — Name Server

Specifies which DNS servers are authoritative for the domain.

text

Use case: Delegates DNS authority to your DNS provider. Must have at least two NS records for redundancy.

Check NS Records →


SOA Record — Start of Authority

Contains administrative information about a DNS zone.

text

Includes: primary nameserver, admin email, serial number, refresh/retry/expire/minimum TTL values.

Check SOA Records →


PTR Record — Pointer (Reverse DNS)

Maps an IP address back to a domain name. The inverse of an A record.

text

Use case: Used by receiving mail servers to verify that the IP address sending mail matches the hostname in the HELO/EHLO greeting. Missing or mismatched PTR records can cause emails to be flagged as spam.

Reverse DNS Lookup →


TTL — Time to Live

Every DNS record has a TTL value in seconds. This tells resolvers how long to cache the record before re-querying the authoritative server.

  • Low TTL (60–300s): Changes propagate quickly, but adds more load to DNS servers
  • High TTL (3600–86400s): Fewer DNS queries, but changes take longer to propagate globally

Best practice: Before making DNS changes, lower TTL to 300 seconds at least 24 hours in advance. After confirming the change, restore the TTL.


DNS Tools

Use our free DNS toolkit to look up any record type for any domain:

goodboycoder

Written by goodboycoder

Founder of FreeMailTools

goodboycoder is the Founder & Lead Developer of FreeMailTools. Building 100% free, developer-first tools for email authentication (SPF, DKIM, DMARC), DNS inspection, disposable temporary inboxes, and deliverability optimization.

Test Your Domain Setup Live

Run real-time SPF, DKIM, DMARC, and DNS lookups on your own domain with 100% free developer tools.

Explore Tools

Related Guides & Comparisons

Tools Comparison

Top 10 Best Free Email Tools for Developers & Marketers (2026)

A hands-on roundup of the best free tools for email validation, DNS authentication, deliverability testing, spam analysis, and temporary inboxes — with real links.

Security

SPF vs DKIM vs DMARC: What Each Does and Why You Need All Three

A technical breakdown of the three email authentication standards — SPF, DKIM, and DMARC — what each protects against, how they interact, and how to set them up correctly.