Free tool · Reference

DNS Record Types

What every DNS record type is for, at a glance.

TypePurpose
AMaps a hostname to an IPv4 address
AAAAMaps a hostname to an IPv6 address
CNAMEAlias from one name to another (canonical name)
MXMail servers and priority for a domain
TXTFree-form text: SPF, DKIM, domain verification
NSDelegates a zone to its authoritative name servers
SOAStart of authority: serial, refresh and TTL values
PTRReverse DNS: an IP address back to a hostname
SRVLocation (host and port) of a service
CAAWhich CAs may issue certificates for the domain
DKIMPublic key for email signing (published as TXT)
DMARCEmail authentication policy (TXT at _dmarc)
SPFLegacy sender policy (now carried in a TXT record)
NAPTRNaming Authority Pointer, used in ENUM and SIP
DNSKEYPublic key used by DNSSEC
DSDelegation Signer: links DNSSEC to the parent zone
RRSIGA DNSSEC signature over a record set
TLSADANE: binds a certificate to a name
ANYQuery 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.

Guide by the Elematron team · Last reviewed

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

  1. Search for a record type or a task, such as 'mail' or 'certificate'.
  2. Read what the record does and its typical format.
  3. 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.

Further reading

Related tools