DNS Record Types Guide

Complete reference guide for all DNS record types with examples and explanations.

Advertisement

DNS Record Overview

Total Records
18
Essential
7
Security
6
Advanced
4
AEssential

Address Record

Maps a domain name to an IPv4 address (32-bit).

Example
example.com → 192.0.2.1
Common Use Case

Point your domain to a web server's IPv4 address. Required for websites.

AAAAEssential

IPv6 Address Record

Maps a domain name to an IPv6 address (128-bit).

Example
example.com → 2001:0db8:85a3::8a2e:0370:7334
Common Use Case

Point your domain to a server's IPv6 address. Important for IPv6 compatibility.

CNAMEEssential

Canonical Name Record

Creates an alias from one domain to another domain.

Example
www.example.com → example.com
Common Use Case

Create subdomains that point to your main domain. Cannot be used on root domain.

MXEssential

Mail Exchange Record

Specifies mail servers responsible for receiving email for the domain.

Example
example.com MX 10 mail.example.com
Common Use Case

Configure email routing. Lower priority numbers are preferred.

TXTEssential

Text Record

Stores arbitrary text data, commonly used for verification and policies.

Example
example.com TXT "v=spf1 include:_spf.example.com ~all"
Common Use Case

Domain verification, SPF/DKIM/DMARC email auth, site ownership proof.

NSEssential

Name Server Record

Specifies authoritative name servers for the domain.

Example
example.com NS ns1.example.com
Common Use Case

Delegate DNS management to specific name servers. Set by domain registrar.

SOAEssential

Start of Authority Record

Contains administrative information about the DNS zone.

Example
example.com SOA ns1.example.com admin.example.com ...
Common Use Case

First record in every DNS zone. Defines primary nameserver and zone parameters.

SRVAdvanced

Service Record

Specifies location of services (hostname and port number).

Example
_sip._tcp.example.com SRV 10 60 5060 sipserver.example.com
Common Use Case

Service discovery for protocols like SIP, XMPP, LDAP. Used by applications.

CAASecurity

Certification Authority Authorization

Specifies which certificate authorities can issue SSL certificates.

Example
example.com CAA 0 issue "letsencrypt.org"
Common Use Case

Security: restrict which CAs can issue certificates for your domain.

PTRAdvanced

Pointer Record

Maps an IP address to a domain name (reverse DNS).

Example
1.2.0.192.in-addr.arpa PTR example.com
Common Use Case

Reverse DNS lookups. Required for mail servers to pass spam filters.

SPFSecurity

Sender Policy Framework

Defines which mail servers can send email on behalf of your domain.

Example
example.com TXT "v=spf1 ip4:192.0.2.0/24 -all"
Common Use Case

Email authentication. Prevents email spoofing. Now uses TXT records.

DKIMSecurity

DomainKeys Identified Mail

Cryptographic signature for email authentication.

Example
selector._domainkey.example.com TXT "v=DKIM1; k=rsa; p=..."
Common Use Case

Email authentication. Verifies email wasn't altered in transit.

DMARCSecurity

Domain-based Message Authentication

Email authentication policy and reporting protocol.

Example
_dmarc.example.com TXT "v=DMARC1; p=quarantine; rua=mailto:..."
Common Use Case

Email authentication policy. Works with SPF and DKIM.

ALIASAdvanced

ALIAS Record

Like CNAME but can be used on root domain (not standard DNS).

Example
example.com ALIAS cdn.example.com
Common Use Case

Point root domain to another domain. Provider-specific (Cloudflare, DNSimple).

DSSecurity

Delegation Signer

Used in DNSSEC to establish chain of trust.

Example
example.com DS 12345 8 2 ABC123...
Common Use Case

DNSSEC implementation. Published at parent zone.

DNSKEYSecurity

DNS Public Key

Holds public keys used in DNSSEC.

Example
example.com DNSKEY 256 3 8 AwEAAb...
Common Use Case

DNSSEC: verify DNS responses haven't been tampered with.

NAPTRAdvanced

Naming Authority Pointer

Used for complex rewriting rules and regex-based DNS mapping.

Example
example.com NAPTR 100 10 "u" "E2U+sip" ...
Common Use Case

Advanced routing for ENUM, SIP, and telecom applications.

HINFOLegacy

Host Information

Provides information about the host hardware and OS.

Example
example.com HINFO "INTEL-386" "LINUX"
Common Use Case

Rarely used. Can expose server info. Often disabled for security.

Showing 18 of 18 DNS record types

Advertisement

How to Use the DNS Record Types Guide

This DNS record types reference guide helps developers, system administrators, and website owners understand the different types of DNS records and their purposes. Use the search bar to quickly find specific record types, or browse the complete list of common and advanced DNS records.

Each record type includes a detailed explanation of what it does, when to use it, the format it follows, and practical examples. For instance, A records point domains to IPv4 addresses, MX records configure email routing with priority values, TXT records store verification strings and SPF policies, and CNAME records create domain aliases.

The guide covers essential records like A, AAAA, CNAME, MX, TXT, and NS that every domain needs, plus advanced records like SRV (for service discovery), CAA (for certificate authority authorization), DNSKEY (for DNSSEC), PTR (for reverse DNS), and more. Each record includes its RFC reference number and common use cases.

Understanding DNS records is crucial for configuring domains, setting up email servers, implementing security policies, and troubleshooting connectivity issues. Use this guide when configuring DNS zones, debugging DNS problems, or learning how the Domain Name System works. All information is current with modern DNS standards and best practices.

Frequently Asked Questions

What is a DNS record?

A DNS (Domain Name System) record is an entry in a DNS zone file that maps domain names to IP addresses and provides other information about the domain. DNS records tell the internet how to route traffic and find resources associated with your domain.

What's the difference between A and CNAME records?

An A record maps a domain to an IP address (like example.com → 192.0.2.1), while a CNAME record creates an alias pointing to another domain (like www.example.com → example.com). Use A records for the root domain and CNAME for subdomains.

How do MX records work for email?

MX (Mail Exchange) records specify which mail servers handle email for your domain. They include a priority number — lower numbers have higher priority. For example, 'example.com MX 10 mail.example.com' tells email servers to deliver mail to mail.example.com.

What are TXT records used for?

TXT records store text information and are commonly used for domain verification (proving you own the domain), email authentication (SPF, DKIM, DMARC), site verification (Google, Bing), and other configuration data. They're one of the most versatile DNS record types.

When should I use AAAA records instead of A records?

AAAA records are for IPv6 addresses (128-bit), while A records are for IPv4 addresses (32-bit). As the internet transitions to IPv6, configure both record types so your site works for all users. AAAA records look like '2001:0db8:85a3:0000:0000:8a2e:0370:7334'.

How long do DNS changes take to propagate?

DNS propagation depends on the TTL (Time To Live) value in your records. Typical TTLs range from 300 seconds (5 minutes) to 86400 seconds (24 hours). Lower TTLs mean faster propagation but more frequent DNS queries. Changes can take up to 48 hours to fully propagate globally.