DNS Record Types

Complete guide to understanding different DNS record types and their uses

DNS records are instructions stored in DNS servers that tell the internet how to handle requests for your domain. Each record type serves a specific purpose, from pointing to IP addresses to routing email.

A Record (Address Record)

Maps a domain to an IPv4 address

Purpose

The most common DNS record type. Points a domain or subdomain to an IPv4 address (like 192.0.2.1).

Example

example.com
A
192.0.2.1
TTL: 3600

Use Cases

AAAA Record (IPv6 Address)

Maps a domain to an IPv6 address

Purpose

Similar to A record, but for IPv6 addresses (like 2001:db8::1). Essential for IPv6 support.

Example

example.com
AAAA
2001:db8::1
TTL: 3600

Use Cases

CNAME Record (Canonical Name)

Creates an alias pointing to another domain

Purpose

Points a domain or subdomain to another domain name instead of an IP address. Acts as a "nickname" or alias.

Example

www.example.com
CNAME
example.com
TTL: 3600

Use Cases

MX Record (Mail Exchange)

Specifies mail servers for email delivery

Purpose

Tells email servers where to deliver emails for your domain. Includes a priority value (lower = higher priority).

Example

example.com
MX
10 mail.example.com
TTL: 3600
Priority: 10, Server: mail.example.com

Use Cases

TXT Record (Text Record)

Stores text-based information for various purposes

Purpose

Stores arbitrary text data. Commonly used for verification, SPF records, DKIM, and DMARC email security.

Example

example.com
TXT
"v=spf1 include:_spf.google.com ~all"
TTL: 3600

Common Uses

NS Record (Name Server)

Specifies authoritative nameservers for a domain

Purpose

Points to the nameservers that are authoritative for your domain. These servers hold the actual DNS records.

Example

example.com
NS
ns1.example.com
ns2.example.com
TTL: 3600

Use Cases

Other Common DNS Records

SOA (Start of Authority)

Contains administrative information about the domain zone.

Administrative metadata

PTR (Pointer Record)

Reverse DNS lookup - maps IP address to domain name.

IP → Domain

SRV (Service Record)

Specifies location of services like SIP, XMPP, etc.

Service discovery

CAA (Certificate Authority)

Specifies which CAs can issue SSL certificates for the domain.

SSL security

Quick Reference Table

Record Type Purpose Points To
A IPv4 address 192.0.2.1
AAAA IPv6 address 2001:db8::1
CNAME Domain alias another-domain.com
MX Mail server mail.example.com (priority)
TXT Text data "text content"
NS Nameserver ns1.example.com

Check Your DNS Records

Use our free DNS lookup tool to check all record types across 39+ global locations

Check DNS Records →

Related guides