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.