DNS Record Types
What every DNS record type is for, at a glance.
| Type | Purpose |
|---|---|
| A | Maps a hostname to an IPv4 address |
| AAAA | Maps a hostname to an IPv6 address |
| CNAME | Alias from one name to another (canonical name) |
| MX | Mail servers and priority for a domain |
| TXT | Free-form text: SPF, DKIM, domain verification |
| NS | Delegates a zone to its authoritative name servers |
| SOA | Start of authority: serial, refresh and TTL values |
| PTR | Reverse DNS: an IP address back to a hostname |
| SRV | Location (host and port) of a service |
| CAA | Which CAs may issue certificates for the domain |
| DKIM | Public key for email signing (published as TXT) |
| DMARC | Email authentication policy (TXT at _dmarc) |
| SPF | Legacy sender policy (now carried in a TXT record) |
| NAPTR | Naming Authority Pointer, used in ENUM and SIP |
| DNSKEY | Public key used by DNSSEC |
| DS | Delegation Signer: links DNSSEC to the parent zone |
| RRSIG | A DNSSEC signature over a record set |
| TLSA | DANE: binds a certificate to a name |
| ANY | Query for all record types (often restricted) |
The record types you meet most as a network or systems engineer. SPF, DKIM and DMARC are all published as TXT records; PTR lives in the reverse (in-addr.arpa) zone.
About this tool
Free DNS record types reference. A searchable table of every common DNS record (A, AAAA, CNAME, MX, TXT, NS, SOA, PTR, SRV, CAA, DKIM, DMARC, DNSKEY, DS and more) with a plain-English description of what each one does. Everything runs entirely in your browser — nothing you type is sent to a server.
DNS holds more than addresses. Different record types route mail, prove domain ownership, publish email authentication policy, restrict certificate authorities and secure the zone itself. This reference explains each common type in plain English so you know which one to create or query.
How to use the DNS Record Types
- Search for a record type or a task, such as 'mail' or 'certificate'.
- Read what the record does and its typical format.
- Use the DNS lookup tool to query the record on a real domain.
The records behind a typical domain
example.com. A 192.0.2.10 example.com. AAAA 2001:db8::10 www.example.com. CNAME example.com. example.com. MX 10 mail.example.com. example.com. TXT "v=spf1 include:_spf.google.com ~all" _dmarc.example.com. TXT "v=DMARC1; p=reject; rua=mailto:d@example.com" example.com. CAA 0 issue "letsencrypt.org" _sip._tcp.example.com. SRV 10 60 5060 sip.example.com.
CAA limits which certificate authorities may issue for the domain; CAs must check it before issuing. SRV records let clients find a service's host and port by name.
How a DNS answer is assembled
Each record belongs to a name and has a type, a class (almost always IN), a TTL and data. A query asks for one name and one type. If the name has a CNAME, resolvers follow it and return the target's records of the requested type as well.
Records of the same name and type form a set, which is answered and cached together, and signed together under DNSSEC. Zone administration records, SOA and NS, exist at the top of every zone and tell resolvers who is authoritative and how long negative answers can be cached.
Reading the results
- A / AAAA
- IPv4 and IPv6 addresses.
- CNAME
- An alias to another name. It cannot coexist with other records on the same name.
- MX, TXT, SRV, CAA
- Mail routing, free-form text (SPF, DKIM, DMARC, verification), service location and CA authorisation.
- NS, SOA
- Delegation and zone metadata, including the serial number.
- DNSKEY, DS, RRSIG
- DNSSEC keys, the parent-zone link to them, and signatures.
Common mistakes
- Putting a CNAME at the zone apex.
- Creating SPF as its own record type. The SPF type is obsolete; SPF lives in TXT.
- Forgetting the trailing dot in zone files, which appends the zone name again.
Frequently asked questions
What is the difference between A and CNAME?
An A record gives an address directly; a CNAME points to another name whose records are then used.
Where is DKIM published?
As a TXT record at selector._domainkey.yourdomain.
What is a PTR record?
A reverse DNS record that maps an IP address to a name, published in the reverse zone by the IP holder.