Bridge CDN
On this page
Quick facts
Type code 52
Defined in RFC 6698; operations in RFC 7671; mail in RFC 7672
Holds Certificate usage, selector, matching type and the certificate data
Read by DANE-aware clients, mostly mail servers today
Requires A signed zone (DNSSEC)
In Bridge DNS Hand-editable on every plan

TLSA record syntax

The owner name carries the port and transport, then the host:

_25._tcp.mail.example.com.  3600 IN TLSA 3 1 1 8f6a...e21c
_443._tcp.www.example.com.  3600 IN TLSA 2 0 1 4b1d...9a07
Field Values Meaning
Certificate usage 0–3 3 DANE-EE: the server's own certificate or key. 2 DANE-TA: a CA you name. 0 and 1 add normal CA checks on top
Selector 0 or 1 0 matches the full certificate, 1 only the public key
Matching type 0, 1, 2 0 exact data, 1 SHA-256 hash, 2 SHA-512 hash
Data hex The certificate or key, or its hash

For mail servers, "3 1 1" is the usual choice: the server's own key, hashed with SHA-256. Because it pins the key rather than the certificate, a renewal that keeps the same key doesn't change the record.

To compute that hash from a certificate:

openssl x509 -in cert.pem -noout -pubkey | openssl pkey -pubin -outform DER | openssl dgst -sha256

Where DANE DNS is used

DANE is mostly a mail story. When one mail server sends to another, STARTTLS encryption is normally opportunistic: an attacker in the middle can strip it or present any certificate. With DANE for SMTP (RFC 7672), the sending server looks up the TLSA entry for the receiving MX host. If one exists, it insists on TLS with a matching key. Postfix, Exim and Microsoft Exchange Online all support it.

Browsers are a different matter. No mainstream browser validates DANE for websites, so a TLSA entry on port 443 helps very few visitors today. If you run a website, publishing one is optional. On a mail server, it's worth it.

How to add a TLSA record in Bridge DNS

Start with the prerequisite. The zone of the host you protect must be signed, and its DS record must be live at the registrar. Without that chain, DANE-aware clients ignore TLSA data. See how to enable DNSSEC in Bridge DNS.

Then:

  1. Compute the "3 1 1" hash from the certificate your server actually uses.
  2. In the zone, choose Add record, type TLSA.
  3. Name: _25._tcp.mail for SMTP on mail.example.com, or _443._tcp.www for a website.
  4. Enter usage 3, selector 1, matching type 1 and the hash.
  5. Save. It's served by our nameservers within seconds.

Use TLSA on DNS-only hosts, such as your mail server. For proxied names, Bridge issues and renews the certificates, so a pinned hash would break at the next renewal.

How to check DANE

Query through a validating resolver and look for the ad flag, which means the answer was DNSSEC-validated:

dig _25._tcp.mail.example.com TLSA +dnssec @1.1.1.1
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 2

Then compare the published hash with what the server presents, for example with openssl s_client -starttls smtp -connect mail.example.com:25. Online DANE checkers for SMTP do both steps at once.

Common mistakes

  • Publishing TLSA in an unsigned zone. Nothing validates it, so nothing is protected.
  • Replacing the certificate before the TLSA entry. Sending servers that cached the old hash will refuse mail until it expires. With DANE, a mistake bounces mail instead of just logging a warning.
  • Pinning the full certificate (selector 0) and then renewing. Every renewal changes the hash.
  • Wrong owner name. SMTP DANE looks at the MX host's name, not the domain in the email address.
  • A forgotten MX host. Each MX target needs its own TLSA entry, and its zone must be signed too.

Rotating a certificate safely

Publish the hash of the next key alongside the current one, so two TLSA entries exist. Wait at least twice the record's TTL. Then switch the server to the new key, wait again, and remove the old entry. RFC 7671 calls this "current + next".

TLSA vs CAA

Both concern certificates, at different moments. CAA tells certificate authorities who may issue for your domain. TLSA tells clients which key to trust when they connect. You can use both. See the CAA reference for issuance policy.

TLSA record questions

What is a TLSA record?

A TLSA record (type 52, RFC 6698) binds a TLS certificate or public key to a host and port in DNS. DANE-aware clients refuse a connection if the server's certificate doesn't match. It requires a DNSSEC-signed zone.

What does 3 1 1 mean in TLSA?

Usage 3 (DANE-EE) pins the server's own certificate. Selector 1 uses only the public key. Matching type 1 stores a SHA-256 hash of it. It's the recommended setting for mail servers.

Do browsers support DANE?

No mainstream browser checks DANE for websites today. Mail servers do, which is why most deployments protect SMTP on port 25.

Does DANE work without DNSSEC?

No. Without signatures, an attacker could forge the TLSA answer as easily as the certificate, so DANE clients ignore unsigned TLSA data. Read what DNSSEC does first.

How do I set up DANE for my mail server?

Sign the zone of the MX host, publish a "3 1 1" TLSA entry at _25._tcp.<mx host>, and check it with a DANE checker. Your MX record decides which hosts need one.

For other types, see the DNS records overview.