DNS records, explained

DNS records are the settings that connect a domain to everything it does: its website, its email, its certificates and the services that check it. This guide explains every record type one by one, with what each field means, the values it accepts, real examples, common mistakes and how to enter it at your DNS host. Look up any domain's records live, or type a record and have every part explained.

The ones most domains need: A, AAAA, CNAME, MX, TXT, SPF, DKIM, DMARC, Verification, NS.

The five parts of every record

www 3600 IN A 192.0.2.10

wwwNameWhich name the record is for. In a dashboard for example.com, www means www.example.com, and @ means example.com itself.
3600TTLTime to live: how many seconds resolvers may cache the answer. 3600 is one hour.
INClassAlways IN (internet). Most dashboards leave it out.
ATypeWhat kind of record it is, which decides what the value means.
192.0.2.10ValueThe data. For an A record, an IPv4 address. Each type has its own format, explained on its page.

Several records can share a name and type (two A records for two servers, five MX records). A name with a CNAME is the exception: it can't have anything else.

Look up any domain's records

Every record type

Websites

Point names at the servers that run your site.

TypeWhat it does
APoints a name at an IPv4 addressEveryday
AAAAPoints a name at an IPv6 addressEveryday
CNAMEMakes a name an alias of another nameEveryday
ALIASA CNAME-like pointer that works at the root (provider feature)Common
HTTPSTells browsers how to connect: HTTP/3, addresses, ECHCommon

Email

Receive mail, and prove the mail you send is really from you.

TypeWhat it does
MXSays which servers receive the domain's emailEveryday
TXTFree text: SPF, DKIM, DMARC, verification tokensEveryday
SPFLists the servers allowed to send email as the domain (TXT record)Everyday
DKIMPublishes the public key that signs your email (TXT record)Everyday
DMARCWhat to do with mail that fails SPF and DKIM, and where to report it (TXT record)Everyday
MTA-STSMakes other servers use encrypted connections to deliver your mail (TXT record)Common
TLS-RPTAsks senders to report TLS problems delivering your mail (TXT record)Common
BIMIShows your logo next to your email in supporting inboxes (TXT record)Specialist
VerificationTokens that prove to a service that you control the domain (TXT record)Everyday

Delegation

Say which servers answer for a domain.

TypeWhat it does
DNAMEAliases a whole subtree of namesRare
NSNames the servers that answer for a domainEveryday
SOAThe zone's header: primary server, contact, version and timersCommon

Services

Find the host and port for other services, and reverse DNS.

TypeWhat it does
SVCBService binding for any protocolSpecialist
PTRReverse DNS: the name for an IP addressCommon
SRVSays which host and port run a serviceCommon
NAPTRRewrite rules that turn a name or number into a service addressSpecialist
URIPublishes a URI for a serviceRare

Certificates and keys

Control certificates and publish keys.

TypeWhat it does
CAASays which certificate authorities may issue certificatesCommon
TLSADANE: pins the TLS certificate or key for a serviceSpecialist
SSHFPPublishes SSH host key fingerprintsSpecialist
SMIMEAPublishes an S/MIME certificate for an email addressRare
OPENPGPKEYPublishes an OpenPGP public key for an email addressRare
CERTStores a certificate or revocation listRare

DNSSEC

Sign a zone so answers can be verified.

TypeWhat it does
DNSKEYDNSSEC: the zone's public signing keysCommon
DSDNSSEC: the parent's fingerprint of your keyCommon
RRSIGDNSSEC: the signature on a set of recordsCommon
NSECDNSSEC: signed proof that a name or type doesn't existSpecialist
NSEC3DNSSEC: hashed proof of non-existenceSpecialist
NSEC3PARAMDNSSEC: the NSEC3 settings for a zoneSpecialist
CDSDNSSEC: asks the parent to update your DS automaticallySpecialist
CDNSKEYDNSSEC: the key the parent should trustSpecialist

Information

Descriptive records that nothing depends on.

TypeWhat it does
LOCPublishes a geographical locationRare
HINFOHost hardware and operating system; also the reply to ANY queriesRare
RPWho is responsible for a nameRare

Check a record

Type or paste a record in zone-file form (name, TTL, type, value) or just its value. Each part is explained as you type.

A valid MX record.

PartWhat it means
Name@@ means the domain itself (the root, or apex), such as example.com.
TTL3600Resolvers may keep this answer for 1 hour before asking again. Changes can take that long to reach everyone.
ClassINInternet. Every record you'll write uses IN.
TypeMXMail server for the domain.
Priority10Lower numbers are tried first. Servers with the same number share the load. 10 on its own means nothing; only the order between your MX records matters.
Mail servermail.example.com.The host that receives this domain's email. It must have an A or AAAA record, and must not be a CNAME.

Builders and experiments

  • SPF builder: pick your email senders and count the DNS lookups live.
  • DMARC builder: policy, reports and alignment, each explained.
  • CAA builder: choose which certificate authorities may issue for you.
  • Zone playground: paste a whole zone file, find problems, and watch how a resolver answers.
  • DNS TTL: why changes take time, and how to make them fast.

The complete list of record types

Every type in the IANA registry you might meet, with its number. Obsolete and query-only types are listed so nothing you see in a lookup or zone file is a mystery.

TypeNumberPurpose
A1IPv4 addressin use
NS2Nameserver for a zonein use
MD3Mail destination, replaced by MXobsolete
MF4Mail forwarder, replaced by MXobsolete
CNAME5Alias to another namein use
SOA6Start of authority for a zonein use
MB7Mailbox domain nameexperimental
MG8Mail group memberexperimental
MR9Mail renameexperimental
NULL10Anything, never used in zone filesexperimental
WKS11Well-known services, replaced by SRVobsolete
PTR12Reverse DNS: address to namein use
HINFO13Host CPU and operating systemin use
MINFO14Mailbox or mail list informationexperimental
MX15Mail server for the domainin use
TXT16Free text: SPF, DKIM, DMARC, verificationin use
RP17Responsible personin use
AFSDB18AFS database locationobsolete
X2519X.25 addressobsolete
ISDN20ISDN addressobsolete
RT21Route throughobsolete
NSAP22NSAP addressobsolete
SIG24Signature, replaced by RRSIGobsolete
KEY25Public key, replaced by DNSKEYobsolete
PX26X.400 mail mappingobsolete
GPOS27Geographical position, replaced by LOCobsolete
AAAA28IPv6 addressin use
LOC29Geographical locationin use
NXT30Next domain, replaced by NSECobsolete
SRV33Where a service runs: host and portin use
NAPTR35Rewrite rules, used by phone systems (ENUM, SIP)in use
KX36Key exchangerin use
CERT37Certificate or certificate revocation listin use
A638IPv6 address in parts, replaced by AAAAobsolete
DNAME39Alias for a whole subtreein use
OPT41EDNS options, only in messagesquery only
APL42Address prefix listexperimental
DS43DNSSEC: fingerprint of a child zone's keyin use
SSHFP44SSH host key fingerprintin use
IPSECKEY45IPsec public keyin use
RRSIG46DNSSEC signaturein use
NSEC47DNSSEC proof that a name doesn't existin use
DNSKEY48DNSSEC public keyin use
DHCID49DHCP client identifierin use
NSEC350DNSSEC hashed proof of non-existencein use
NSEC3PARAM51Settings for NSEC3in use
TLSA52DANE: TLS certificate pinin use
SMIMEA53S/MIME certificate for an email addressin use
HIP55Host Identity Protocolin use
CDS59Child's copy of DS, for automatic updatesin use
CDNSKEY60Child's copy of DNSKEY, for automatic updatesin use
OPENPGPKEY61OpenPGP public key for an email addressin use
CSYNC62Child-to-parent sync of NS and gluein use
ZONEMD63Digest of a whole zonein use
SVCB64Service binding: endpoints and settingsin use
HTTPS65Service binding for websitesin use
SPF99SPF as its own type, retired: use TXTobsolete
EUI4810848-bit hardware (MAC) addressin use
EUI6410964-bit hardware addressin use
TKEY249Transaction key, only in messagesquery only
TSIG250Transaction signature, only in messagesquery only
IXFR251Incremental zone transfer requestquery only
AXFR252Full zone transfer requestquery only
ANY255Request for all records (most servers answer briefly)query only
URI256A URI for a servicein use
CAA257Which certificate authorities may issuein use
DLV32769DNSSEC lookaside validation, retiredobsolete

Questions

What is a DNS record?

A line of information in a domain's DNS that says where something lives: which server runs the website (A, AAAA, CNAME), which servers take the email (MX), which services are allowed to send email or issue certificates (TXT, CAA), and which servers answer for the domain at all (NS).

What are the most common DNS record types?

A, AAAA, CNAME, MX, TXT and NS cover almost every domain. Add CAA to control certificates, SRV for some services such as Microsoft Teams, and the TXT-based SPF, DKIM and DMARC for email.

Where do I change my DNS records?

At your DNS host: the company your domain's nameservers point to. That's often your registrar, but if your nameservers are at Cloudflare, Vercel or another host, records must be changed there. Look up the domain's NS records above to see which it is.

How long do DNS changes take?

Up to the old record's TTL, often an hour, because resolvers keep their cached copy until it expires. Nameserver changes can take a day or two. See DNS TTL, and flush your DNS cache to see a change on your own device sooner.

What does @ mean in DNS?

The domain itself, also called the root or apex: in the DNS for example.com, @ means example.com and www means www.example.com.

This guide is also available as Markdown, for AI assistants and offline reading.

Lemon Domains keeps every domain you own in one place, with expiry reminders, change monitoring and DNS editing from your AI assistant. Get started free