DNS Records Explained: A, AAAA, CNAME, MX, TXT & More

By WebsiteHoste Team · November 2026 · 11 min read

The Domain Name System (DNS) is the internet's phone book — it translates human-readable domain names like example.com into machine-readable IP addresses like 93.184.216.34. Every website, email server, and online service depends on DNS records to function. Understanding DNS record types is essential for managing your domain, setting up email, verifying domain ownership, and troubleshooting connectivity issues.

A Record (Address Record)

The A record is the most fundamental DNS record type. It maps a domain name to an IPv4 address (32-bit, e.g., 192.168.1.1). When someone types your domain into a browser, the DNS resolver looks up the A record to find the IP address of your web server. Every domain that hosts a website needs at least one A record pointing to the server's IP address. You can have multiple A records for the same domain for simple round-robin load balancing.

AAAA Record (IPv6 Address Record)

The AAAA record (pronounced "quad-A") is the IPv6 equivalent of the A record. It maps a domain name to an IPv6 address (128-bit, e.g., 2606:2800:220:1:248:1893:25c8:1946). As IPv4 addresses become scarcer, IPv6 adoption is growing steadily. Adding AAAA records alongside your A records ensures your website is accessible to visitors on IPv6-only networks, which is increasingly common on mobile carriers.

CNAME Record (Canonical Name)

A CNAME record creates an alias from one domain name to another. For example, www.example.com CNAME → example.com tells DNS that www.example.com should resolve to whatever IP address example.com points to. CNAMEs are commonly used for subdomains, CDN configurations (pointing your subdomain to a CDN provider's hostname), and cloud services that provide hostname-based endpoints.

Important rule: You cannot place a CNAME record on the root domain (apex/naked domain). The DNS specification requires the root domain to use A/AAAA records. Some DNS providers like Cloudflare offer "CNAME flattening" to work around this limitation.

MX Record (Mail Exchange)

MX records specify which mail servers handle email for your domain. When someone sends email to user@example.com, the sending mail server queries the MX records for example.com to find where to deliver the message. Each MX record has a priority value (lower number = higher priority). Multiple MX records with different priorities provide failover — if the primary mail server is down, email is delivered to the backup server.

TXT Record (Text)

TXT records store arbitrary text data associated with a domain name. While originally designed for human-readable notes, TXT records are now primarily used for machine-readable verification and security data. Common uses include: SPF records for email authentication, DKIM public keys for email signing, DMARC policies for email handling, domain ownership verification for Google Search Console, Microsoft 365, and other services, and site verification tokens.

NS Record (Name Server)

NS records specify which DNS servers are authoritative for your domain. These are typically set at your domain registrar and point to your hosting provider's or DNS provider's name servers. Changing NS records effectively delegates DNS control to a different provider — for example, pointing your domain's NS records to Cloudflare transfers DNS management to Cloudflare's network.

SOA Record (Start of Authority)

The SOA record contains administrative information about the DNS zone, including the primary name server, the email address of the domain administrator, the serial number (incremented with each zone change), and various timing parameters (refresh interval, retry interval, expiry time, and minimum TTL). Most DNS providers manage SOA records automatically — you rarely need to edit them manually.

DNS Propagation and TTL

TTL (Time to Live) is the duration (in seconds) that DNS resolvers cache a record before requesting a fresh copy from the authoritative name server. A TTL of 3600 means the record is cached for one hour. Before making DNS changes, reduce the TTL to 300 seconds (5 minutes) 24-48 hours in advance, make your change, verify it works, then increase TTL back to a longer value. This minimizes the time visitors see outdated DNS information.

Frequently Asked Questions

DNS propagation typically takes 1-48 hours, though most changes propagate within 1-4 hours globally. The time depends on the TTL (Time to Live) values of the old records, ISP caching behavior, and geographic location. You can check propagation status using tools like whatsmydns.net or dnschecker.org that query DNS servers worldwide.
An A record maps a domain name directly to an IPv4 address (e.g., example.com → 192.168.1.1). A CNAME record maps a domain name to another domain name (e.g., www.example.com → example.com). A key rule: you cannot place a CNAME on the root domain (apex) — it must use an A record. CNAMEs are useful for subdomains and services that provide hostname-based endpoints.
Yes, adding multiple A records for the same domain name implements DNS round-robin load balancing. Each DNS query returns the records in a different order, distributing traffic across multiple servers. However, this is a basic form of load balancing with no health checking — if one server goes down, DNS will still direct traffic to it until the record is removed.
These are email authentication TXT records: SPF (Sender Policy Framework) specifies which mail servers are authorized to send email for your domain. DKIM (DomainKeys Identified Mail) adds a cryptographic signature to outgoing emails to verify they were not tampered with. DMARC (Domain-based Message Authentication) tells receiving servers what to do with emails that fail SPF/DKIM checks. All three are essential for email deliverability and preventing spoofing.