DNS Record Types Reference

Searchable list of DNS record types — A, AAAA, CNAME, MX, TXT and more.

A searchable reference of DNS record types — A, AAAA, CNAME, MX, TXT, NS, SOA, CAA, SRV and more — with plain-English meanings and zone-file examples. Runs entirely in your browser. It runs free in your browser on Gera Tools, with nothing uploaded.

Last updated Source: Gera Tools

What is the difference between an A record and a CNAME?

An A record maps a hostname directly to an IPv4 address. A CNAME aliases one hostname to another name, which is then resolved. A CNAME cannot coexist with other records at the same name and is not allowed at the zone apex.

DNS record types reference

A searchable reference of the DNS record types you work with most, from A and AAAA to CNAME, MX, TXT, NS, SOA, CAA, SRV and the DNSSEC records. It is for developers and site owners setting up domains, email and certificates who need to pick the right record quickly.

How it works

DNS translates human-friendly names into the addresses and metadata that make the internet work, and each record type does a specific job. Type a record type or keyword — for example CNAME, mail or dnssec — and the list filters instantly by type name, full name or description. Each entry shows a plain-English meaning and a sample zone-file line you can adapt. The reference is static and runs entirely in your browser.

Quick reference

TypePurposeExample data
AHostname → IPv4 address93.184.216.34
AAAAHostname → IPv6 address2606:2800:220:1::1946
CNAMEAlias one name to anotherexample.com.
MXMail server + priority10 mail.example.com.
TXTFree text (SPF, DKIM, verification)“v=spf1 ~all”
NSDelegate zone to name serversns1.example.com.
SOAZone metadata and timersns1… admin… serial…
CAAAllowed certificate authorities0 issue “letsencrypt.org”
SRVService location + port10 20 5060 sip.example.com.
PTRReverse DNS — IP → hostnamehost.example.com.

Choosing the right record

Setting up a website — point www at your host with a CNAME (if pointing to another hostname) or an A/AAAA record (if pointing to an IP). For the bare domain (example.com without www), a CNAME is not allowed at the zone apex; use an A record or your registrar’s ALIAS/ANAME feature if the host provides a hostname instead of an IP.

Routing email — you need at minimum an MX record and an SPF TXT record. Add DKIM (TXT at selector._domainkey.domain) and a DMARC policy (TXT at _dmarc.domain) for deliverability and spoofing protection.

Adding a subdomain — a CNAME pointing app.example.com to a CDN or PaaS hostname is the usual approach. Remember: if you have other records at that exact name (for example a TXT for verification), a CNAME cannot coexist with them at the same label.

Restricting certificate issuance — a CAA record with 0 issue "letsencrypt.org" permits only Let’s Encrypt to issue for your domain. Add a line for each authority you use; an empty CAA set means any CA can issue.

Zone-file format reminder

Every record follows the pattern name [TTL] [class] type rdata. The class is almost always IN and is often omitted. A trailing dot after a hostname marks it as fully qualified (absolute) rather than relative to the zone origin. Omitting the dot at the end of a CNAME target is a common mistake that appends the zone name to the target.

; A record
www.example.com.   3600  IN  A     93.184.216.34

; MX record with two priorities
example.com.       3600  IN  MX    10 mail1.example.com.
example.com.       3600  IN  MX    20 mail2.example.com.

; SPF TXT record
example.com.       3600  IN  TXT   "v=spf1 include:sendgrid.net ~all"

Everything runs in your browser — nothing is uploaded.