TLSA Record
TLS Certificate Association
- Type code
- 52
- Status
- In use
- Defined in
- RFC 6698
What the TLSA record is for
TLSA is the record behind DANE. It is published at a name built from the port, the transport protocol and the host, such as _25._tcp.mx.example.com for SMTP. The record says which certificate or key the service should present, either by giving it in full or as a hash.
A TLSA record is only useful when the zone is signed with DNSSEC and the client validates it; otherwise an attacker could forge it. The certificate usage field decides how the record is applied: it can constrain normal CA-based validation (usages 0 and 1) or replace it with a trust anchor or end-entity key named directly in DNS (usages 2 and 3).
Its main deployment is SMTP between mail servers (RFC 7672), where it lets a sending server require TLS and authenticate the receiving server. Browsers do not use DANE for HTTPS.
Wire format and fields
| Field | Size | Meaning |
|---|---|---|
| Certificate Usage | 8 bits | 0 PKIX-TA (CA constraint), 1 PKIX-EE (service certificate constraint), 2 DANE-TA (trust anchor assertion), 3 DANE-EE (domain-issued certificate). The acronyms come from RFC 7218. |
| Selector | 8 bits | 0 matches the full certificate, 1 matches only the SubjectPublicKeyInfo. |
| Matching Type | 8 bits | 0 is the exact data, 1 a SHA-256 hash, 2 a SHA-512 hash. |
| Certificate Association Data | variable | The certificate, key or hash to match, shown in hex. |
Zone file syntax
_<port>._<protocol>.<host> <ttl> IN TLSA <certificate usage> <selector> <matching type> <certificate association data (hex)>
Example
The TLSA records at _25._tcp.mx.ietf.org, fetched from live DNS on 27 November 2026:
_25._tcp.mx.ietf.org. 300 IN TLSA 3 1 1 292481EEE04F9F5CE0DC1728488DEE2510053AF6D62F4E7CDEF8C82D 811A5AE9 _25._tcp.mx.ietf.org. 300 IN TLSA 3 1 1 E3008A5C0BC1E088455EC997DA389D31D2B379F76727BCB6594316F6 058E6190
Two DANE-EE records (3 1 1: SHA-256 of the public key) for SMTP on mx.ietf.org, the mail exchanger for ietf.org. Two records let the server roll to a new key without a gap.
Common mistakes
- Renewing a certificate with a new key without publishing the new TLSA record first. Clients that enforce DANE refuse to connect until it is fixed, which for SMTP means mail is queued and eventually bounced.
- Publishing TLSA in a zone that is not signed, or in a signed zone whose MX or host lookups are not validated. Clients ignore the record, so DANE is not in effect.
- Using usages 0 or 1 for SMTP. RFC 7672 says they should not be published for mail servers, and DANE SMTP clients treat them as unusable.
- Publishing the record at the wrong name, for example at _25._tcp.example.com when the MX host is mx.example.com. SMTP clients look up TLSA at the MX host name.
Specifications
- RFC 6698: The DNS-Based Authentication of Named Entities (DANE) Transport Layer Security (TLS) Protocol: TLSA
- RFC 7218: Adding Acronyms to Simplify Conversations about DNS-Based Authentication of Named Entities (DANE) (Names the usage, selector and matching type values (DANE-EE, SPKI, SHA2-256 and so on).)
- RFC 7671: The DNS-Based Authentication of Named Entities (DANE) Protocol: Updates and Operational Guidance (Updates how each usage is processed and gives guidance on key rollover.)
- RFC 7672: SMTP Security via Opportunistic DNS-Based Authentication of Named Entities (DANE) Transport Layer Security (TLS) (Defines DANE for SMTP between mail servers; PKIX-TA and PKIX-EE should not be used there.)
- IANA DNS Resource Record (RR) TYPEs registry: type code and status
Related record types
Domain Intelligence APIs
Get started with our easy-to-use API docs.