My Tool Studio
Developer

DNS Record Types

This guide to DNS record types explains 36 entries, from A, AAAA, CNAME and MX to CAA, HTTPS, TLSA, SSHFP and the full set of DNSSEC records, each with what it does, a typical TTL and an example value. Not sure what you need? Pick a task such as receive email or point my domain to a website, and the table shows only the records for that job. Filters group the rest into common, email, security, service, DNSSEC, rare and legacy types. The Kind column marks SPF, DKIM, DMARC, MTA-STS and BIMI as TXT conventions and ALIAS as a provider feature, not real record types. It is a reference list; to see a domain's live records, use the DNS Lookup tool.

Always freeNo sign upRuns in your browser

This is a reference list. To see the records a live domain has right now, use the DNS Lookup tool. TTLs are common starting points, not rules: lower them a day before you change a record.

36 / 36
TypeNameKindWhat it doesTypical TTLExample
AAddress recordRecord typePoints a hostname to an IPv4 address.300 to 3600 sexample.com → 192.0.2.10
AAAAIPv6 address recordRecord typePoints a hostname to an IPv6 address.300 to 3600 sexample.com → 2001:db8::10
CNAMECanonical nameRecord typeMakes one name an alias of another. A name with a CNAME cannot hold any other records, so it cannot sit at the domain apex.300 to 3600 swww.example.com → example.com
MXMail exchangeRecord typeNames the servers that accept email for the domain. The lowest preference number is tried first.3600 s10 mail.example.com
TXTText recordRecord typeFree text. Used for SPF, DKIM, DMARC and domain verification strings.300 to 3600 sv=spf1 include:_spf.example.com ~all
NSName serverRecord typeLists the authoritative name servers for the zone.86400 s (1 day) or morens1.example.com
SOAStart of authorityRecord typeZone details: primary name server, admin mailbox, serial number and refresh timers.3600 sns1.example.com hostmaster.example.com 2024010101 7200 3600 1209600 3600
PTRPointerRecord typeReverse DNS: maps an IP address back to a hostname. Set by whoever controls the IP block. Mail servers need one.3600 s or more10.2.0.192.in-addr.arpa → mail.example.com
SRVService locatorRecord typeGives the host and port for a service, with priority and weight. Used by SIP, XMPP and some Microsoft services.3600 s_sip._tcp.example.com 10 60 5060 sip.example.com
CAACertification authority authorizationRecord typeLists which certificate authorities may issue certificates for the domain.3600 s0 issue "letsencrypt.org"
HTTPSHTTPS service bindingRecord typeTells browsers before they connect which protocols a site supports, such as HTTP/3, and can point to another endpoint. Allowed at the apex.300 to 3600 sexample.com HTTPS 1 . alpn="h3,h2"
SVCBService bindingRecord typeThe general form of the HTTPS record, for other protocols such as encrypted DNS.300 to 3600 s_dns.example.com SVCB 1 dns.example.com alpn="dot"
TLSATLS authentication (DANE)Record typePins the certificate or public key a TLS service should present. Needs DNSSEC. Mostly used for mail servers.3600 s_25._tcp.mail.example.com TLSA 3 1 1 <sha-256 hash>
SSHFPSSH fingerprintRecord typePublishes SSH host key fingerprints so clients can verify a server on first connect. Needs DNSSEC to be trusted.3600 sserver.example.com SSHFP 4 2 <sha-256 fingerprint>
NAPTRNaming authority pointerRecord typeRewrite rules that map a name to a service. Used in VoIP, SIP and ENUM phone number lookups.3600 s100 10 "S" "SIP+D2U" "" _sip._udp.example.com
URIUniform resource identifierRecord typeMaps a service name to a URI, with priority and weight like SRV.3600 s_ftp._tcp.example.com URI 10 1 "ftp://ftp.example.com/"
DNAMEDelegation nameRecord typeRedirects a whole subtree of names to another domain, unlike CNAME which aliases one name.3600 sold.example.com DNAME new.example.net
DNSKEYDNS keyRecord typePublic key used to verify DNSSEC signatures in the zone.3600 to 86400 s257 3 13 <public key>
DSDelegation signerRecord typeHash of the child zone's key, published in the parent zone to link the DNSSEC chain of trust.86400 s, set by the parent12345 13 2 <sha-256 digest>
RRSIGResource record signatureRecord typeThe DNSSEC signature over a set of records. Created by the signing software, not by hand.Same as the signed recordsA 13 2 300 20261001000000 20260901000000 12345 example.com. <signature>
NSECNext secure recordRecord typeProves that a name or record type does not exist in a signed zone by naming the next name.Zone minimum TTLa.example.com NSEC c.example.com A AAAA RRSIG NSEC
NSEC3Hashed next secure recordRecord typeLike NSEC, but uses hashed names so the zone cannot be listed by walking it.Zone minimum TTL<hash>.example.com NSEC3 1 0 0 - <next hash> A RRSIG
CDSChild DSRecord typePublished by the child zone so the parent can update its DS record automatically.3600 s12345 13 2 <sha-256 digest>
CDNSKEYChild DNSKEYRecord typeThe key form of CDS, used for automated DNSSEC key rollovers with the parent.3600 s257 3 13 <public key>
OPENPGPKEYOpenPGP public keyRecord typePublishes a user's OpenPGP key under a hashed local part, for email encryption. Needs DNSSEC.3600 s<sha-224 of local part>._openpgpkey.example.com OPENPGPKEY <key>
SMIMEAS/MIME certificate associationRecord typeBinds an S/MIME certificate to an email address, like TLSA for mail content. Needs DNSSEC.3600 s<hash>._smimecert.example.com SMIMEA 3 0 1 <hash>
LOCLocationRecord typeStores latitude, longitude and altitude for a host. Rarely used today.3600 s52 22 23.000 N 4 53 32.000 E -2.00m 0.00m 10000m 10m
HINFOHost informationRecord typeDescribes the CPU and operating system of a host. Rarely published; Cloudflare uses it to answer ANY queries (RFC 8482).3600 s"RFC8482" ""
RPResponsible personRecord typeNames the mailbox of the person responsible for a host, with a TXT record for more details.3600 sadmin.example.com. info.example.com.
CERTCertificateRecord typeStores certificates or certificate revocation lists, such as PKIX or PGP.3600 sCERT PGP 0 0 <base64>
SPFSender Policy Framework (type 99)ObsoleteThe dedicated SPF record type is deprecated (RFC 7208). Publish SPF as a TXT record instead.n/aTXT: v=spf1 ip4:192.0.2.0/24 -all
DMARCEmail authentication policyTXT conventionNot a record type. A TXT record at _dmarc.yourdomain that tells receivers what to do when SPF and DKIM fail.3600 s_dmarc TXT v=DMARC1; p=reject; rua=mailto:r@example.com
DKIMDomainKeys Identified MailTXT conventionNot a record type. A TXT record at selector._domainkey.yourdomain holding the public key that signs your mail.3600 ss1._domainkey TXT v=DKIM1; k=rsa; p=<public key>
MTA-STSMail transfer agent strict transport securityTXT conventionNot a record type. A TXT record at _mta-sts.yourdomain that signals a policy file requiring TLS for incoming mail.3600 s_mta-sts TXT v=STSv1; id=20260901
BIMIBrand indicators for message identificationTXT conventionNot a record type. A TXT record at default._bimi.yourdomain pointing to a logo that some inboxes show next to your mail. Needs DMARC enforcement.3600 sdefault._bimi TXT v=BIMI1; l=https://example.com/logo.svg
ALIASAlias / ANAME / CNAME flatteningProvider featureNot a record type on the wire. The DNS provider resolves the target and answers with A and AAAA records, so it works at the apex. Names vary by provider.Set by the provider@ ALIAS app.hosting-provider.net

How to use

01

Pick a task or filter

Choose a task in Which record do I need, such as Stop my email going to spam, or press a filter such as Email or DNSSEC. You can also search by type or by a word such as certificate.

02

Read the Kind, TTL and example

Check the Kind column first: Record type, TXT convention, Provider feature or Obsolete. Then read what the record does, its typical TTL, and compare your value with the Example column.

03

Check your live records

Press Copy next to a type if you need it for a ticket or config, then use the DNS Lookup link above the table to see which records your domain publishes.

Why DNS Record Types

A vs CNAME vs ALIAS

All three can send visitors from a hostname to a server, but they work differently and have different limits. Picking the wrong one is a common cause of broken apex domains and email.

Use A or AAAA when you control the IP address and it rarely changes. Use a CNAME for subdomains such as www that should follow a host's name. At the apex, where a CNAME is not allowed, use your provider's ALIAS feature if it has one, or the host's IP addresses. Remember that a CNAME moves every lookup for that name, including MX and TXT, which is why it cannot share the name with other records.

RecordPoints toAllowed at the apexOther records on the same name
A or AAAAAn IP addressYesAllowed
CNAMEAnother hostnameNoNot allowed
ALIAS or ANAMEAnother hostname, resolved by the providerYesAllowed
HTTPSAnother hostname plus connection detailsYesAllowed

Email records: what to add and in which order

Email needs several records working together. Add them in this order, and check each one with the DNS Lookup tool before you move on.

StepRecordWhy
1MXTells other servers where to deliver your mail
2SPF (TXT)Lists the servers allowed to send as your domain
3DKIM (TXT)Publishes the key that signs your outgoing mail
4DMARC (TXT)Tells receivers what to do when checks fail; start with p=none
5MTA-STS and TLS-RPT (TXT)Optional: require TLS for incoming mail and get reports
6BIMI (TXT)Optional: show your logo in supporting inboxes, once DMARC is enforced

Common questions

What do A and AAAA records point to?
An A record maps a hostname to an IPv4 address, such as 192.0.2.10, and an AAAA record maps it to an IPv6 address, such as 2001:db8::10. Many domains publish both so visitors on either kind of network can connect.
Why can't I put a CNAME at my domain's apex?
A CNAME cannot share its name with any other record, and the apex must hold SOA and NS records, so the standard forbids it. Some providers offer ALIAS, ANAME or CNAME flattening to get the same effect, and the newer HTTPS record can also sit at the apex.
How do MX records decide where email goes?
Each MX record has a preference number, and sending servers try the lowest number first, falling back to higher ones if it is unreachable. An MX target must be a hostname with an A or AAAA record, not a CNAME.
What is the difference between an MX record and a CNAME?
They do different jobs. MX says which servers receive email for a domain, while CNAME makes one hostname an alias of another for every kind of lookup. You can have MX records on a domain, but the MX target itself should not be a CNAME.
Are SPF records still a real DNS record type?
The dedicated SPF record type (type 99) is obsolete under RFC 7208. Publish your v=spf1 policy as a TXT record at the domain instead, which is what mail servers check.
Are DKIM and DMARC separate DNS record types?
No. Both are TXT records at special names. DKIM keys live at selector._domainkey.yourdomain, and the DMARC policy lives at _dmarc.yourdomain.
In what order should I set up email DNS records?
Add MX records first so mail can arrive, then an SPF TXT record listing the servers allowed to send for you, then the DKIM TXT record from your email provider. Add DMARC last, usually starting with p=none to collect reports before tightening the policy.
What is the HTTPS DNS record used for?
The HTTPS record tells browsers, before they connect, which protocols a site supports, such as HTTP/3, and can point them to another endpoint. Unlike a CNAME, it is allowed at the domain apex.
Does this reference include DNSSEC record types?
Yes. DNSKEY holds the public key that signs a zone, DS sits in the parent zone to link the chain of trust, RRSIG holds the signatures, NSEC and NSEC3 prove that a name does not exist, and CDS and CDNSKEY automate key changes with the parent. TLSA, SSHFP, OPENPGPKEY and SMIMEA also depend on DNSSEC.
Can this page look up my domain's DNS records?
No, it is a static reference. Use the DNS Lookup tool, linked above the table, to query the live records for any domain.

More Developer tools

View all