TLSA record at a glance

FieldValue
Type code52
Defined inRFC 6698; updated by RFC 7671
Owner name_port._protocol.host, such as _25._tcp.mx1.example.com
ValueCertificate usage, selector, matching type and the certificate data
RequiresA DNSSEC-signed zone; clients ignore TLSA records they cannot validate

Here is how a TLSA record looks in a zone file:

_25._tcp.mx1.example.com.  3600  IN  TLSA  3 1 1 8D02536C887482BC34FF54E41D2BA659BF85B341A0A20AFADB5813DCFBCF286D

The values 3 1 1 mean: match the server’s own certificate (3, DANE-EE), using its public key (selector 1), compared by SHA-256 hash (matching type 1). The hash here is illustrative.

The three numbers

FieldValues
Certificate usage0 PKIX-TA and 1 PKIX-EE also require a public CA chain; 2 DANE-TA trusts your own CA; 3 DANE-EE trusts the exact server key
Selector0 the whole certificate; 1 only the public key (SubjectPublicKeyInfo)
Matching type0 the full data; 1 a SHA-256 hash; 2 a SHA-512 hash

For SMTP, RFC 7672 recommends 3 1 1 (or 2 1 1 if you run your own CA). Because it pins the public key rather than the certificate, a renewal that keeps the same key does not need a DNS change.

Where DANE is used

Mail servers that support DANE look up TLSA for each MX host before delivering. If valid TLSA records exist, the sender insists on TLS with a matching key and refuses to fall back to plain text, which defeats STARTTLS downgrade attacks. Several large mail providers and many European operators support it. DANE for email and secure email transport cover deployment.

Web browsers do not check TLSA for HTTPS, so _443._tcp records have little effect today. DANE for HTTPS explains why.

How to look up a TLSA record

Each tool below sends the query to your default resolver unless you name a server. Swap in your own domain for example.com, and add a public resolver such as 1.1.1.1 to compare answers with what your network sees. Look up TLSA at each MX host name, not at the bare domain.

dig (macOS, Linux, WSL)

CommandWhat it does
dig _25._tcp.mx1.example.com TLSAThe TLSA set for SMTP on one mail host
dig +short _25._tcp.mx1.example.com TLSAUsage, selector, matching type and data only
dig +dnssec _25._tcp.mx1.example.com TLSALook for the ad flag, which shows your resolver validated the answer
dig +short _443._tcp.example.com TLSAA TLSA record for HTTPS, if one exists

nslookup (Windows, macOS, Linux)

CommandWhat it does
nslookup -type=TLSA _25._tcp.mx1.example.comThe TLSA set, on macOS and Linux
nslookup -type=TYPE52 _25._tcp.mx1.example.comThe generic form, for builds that do not know the TLSA name

PowerShell (Windows)

CommandWhat it does
(Invoke-RestMethod 'https://dns.google/resolve?name=_25._tcp.mx1.example.com&type=52').AnswerThe TLSA set from Google Public DNS
(Invoke-RestMethod 'https://dns.google/resolve?name=_25._tcp.mx1.example.com&type=52').ADTrue when Google validated the answer with DNSSEC
Resolve-DnsName example.com -Type MXList the MX hosts whose TLSA records you need to check
TLSA and PowerShell

Resolve-DnsName has no TLSA value for -Type; its list stops at older types such as DS, DNSKEY and NSEC3. The Invoke-RestMethod rows ask Google Public DNS over HTTPS instead, using the type number 52, so they show what a public resolver sees rather than your own network. Running nslookup from PowerShell also works where your nslookup decodes the type.

Common mistakes

  • Rotating the server key without updating TLSA first. DANE senders refuse delivery. Publish the new hash next to the old one before the switch.
  • Publishing TLSA in an unsigned zone. Clients ignore it, so it gives no protection.
  • TLSA at the domain instead of the MX host. Senders look under each MX target name.
  • Usage 0 or 1 for SMTP. RFC 7672 says SMTP clients treat these as unusable; use 3 or 2.

TLSA records in Domain Visualizer

Domain Visualizer looks up TLSA at _443._tcp for the domain on every scan and shows any records in the detail panel.

FAQ

Does TLSA work without DNSSEC?

No. DANE clients only trust TLSA records that validate through DNSSEC. In an unsigned zone the records are ignored.

Do I need to change TLSA when my certificate renews?

Not if you publish 3 1 1 and the renewal keeps the same key pair. If the key changes, publish the new hash before the new certificate goes live.

Is DANE the same as MTA-STS?

No. Both make mail servers insist on TLS, but MTA-STS relies on a policy file served over HTTPS and public CAs, while DANE relies on DNSSEC and TLSA. Many domains publish both.

Sources and further reading