Back to Learning Hub
EMAIL AUTH September 11, 2026 · 11 min read · 6K/mo

What Is DANE? TLSA Records and DNS-Anchored TLS Explained

DANE pins your TLS certificate in DNS. If DNSSEC is signed, and the TLSA record matches the cert your service presents, receivers can trust the connection without depending only on public certificate authorities. It's the most-adopted alternative to CA-based PKI — but it lives mostly in SMTP.

D
DomainScan Team
DomainScan
Share
EMAIL AUTH

DANE (DNS-based Authentication of Named Entities, RFCs 6698/7671) is a mechanism for pinning the expected TLS certificate of a service directly in DNS, protected by DNSSEC. A DNS-anchored PKI alternative to the traditional public CA system.

In practice, DANE lives almost entirely in SMTP: senders and receivers use it to force TLS on inbound mail and to defeat STARTTLS downgrade attacks. Browser support was killed years ago.

The Record — TLSA

DANE data is carried in TLSA records published at a specific DNS name:

_{port}._{protocol}.{hostname}

For SMTP inbound on port 25:

_25._tcp.mx.example.com.  TLSA  3 1 1  A1B2C3D4E5F6...

The four fields:

FieldPurposeCommon value
Certificate UsageWhich cert to match3 — service cert, self-signed OK
SelectorWhat to hash1 — SubjectPublicKeyInfo only
Matching TypeHash algorithm1 — SHA-256
Association DataThe actual hash64 hex chars

Prerequisites — DNSSEC

DANE cannot function without DNSSEC. If an attacker can spoof your DNS, they can spoof your TLSA record and defeat the pin.

To deploy DANE:

  1. Enable DNSSEC on your zone — publish DNSKEY records, sign records with RRSIG
  2. Submit the DS record to your registrar so it lands in the parent zone (.com, .org, etc.)
  3. Publish TLSA records for each service
  4. Test with a DANE validator

If DNSSEC isn’t practical for your zone, use MTA-STS instead (see below).

SMTP DANE — the Real Use Case

The reason DANE exists in production is SMTP. The STARTTLS problem:

Without DANE, receiving MX servers advertise STARTTLS opportunistically. A sender connects, sees the STARTTLS advertisement, upgrades to TLS. Great.

Problem: an on-path attacker can strip the STARTTLS advertisement from the server’s response. The sender doesn’t see STARTTLS advertised, falls back to plaintext, delivers the message unencrypted. Silent downgrade attack.

With DANE:

  • The sender’s MTA looks up TLSA at _25._tcp.{mx-hostname}
  • If TLSA is present and DNSSEC validates, TLS is required
  • If the cert the MX presents doesn’t hash to the TLSA record, the connection fails closed

No downgrade possible. The sender knows in advance that TLS is required and what cert to expect.

DANE vs MTA-STS

Two ways to solve the same SMTP downgrade problem:

DANEMTA-STS
AnchorDNSSECHTTPS + DNS TXT
PrerequisiteDNSSEC on zoneWeb server + valid cert
Publish locationTLSA recordsHTTPS policy file
Cost to deployHigh (DNSSEC ops)Low
Cryptographic strengthStrongerAdequate
Adoption in SMTPGrowingWider (Google, MS 365 support)

Read the MTA-STS glossary entry for the alternative.

Most modern operators deploy both. Modern Postfix, Exim, and Sendmail support both. The receiver publishes both; the sender uses whichever it validates first.

The Certificate Usage Modes

TLSA field 1 — how to interpret the hash:

ValueNameMeaning
0PKIX-TACA constraint — the cert must chain through this CA
1PKIX-EEService cert constraint — the leaf cert must match this
2DANE-TATrust anchor assertion — treat this cert as the CA
3DANE-EESelf-signed OK — trust the leaf cert directly

For SMTP, 3 1 1 (DANE-EE, SPKI, SHA-256) is the most common — pins the cert’s public key, allows self-signed, resistant to renewals that keep the same key.

Why Browser DANE Died

Chrome removed DANE support in 2015. Firefox never shipped native support. Reasons:

  • DNSSEC adoption plateau — only ~30% of recursive resolvers validate, and browser-side validation requires DNSSEC-aware clients that most OSes don’t provide
  • Performance cost — DNSSEC + TLSA lookup on every HTTPS handshake adds latency
  • Alternatives filled the gap — Certificate Transparency (all certs public), CA/Browser Forum baseline requirements, HSTS Preload

For the browser-facing web, the modern trust anchor is CA + CT logs, not DANE. For SMTP, DANE lives on.

Practical Deployment

If you want to deploy DANE for your inbound SMTP:

  1. Enable DNSSEC — talk to your registrar and DNS host. Some (Cloudflare, Route 53, Google DNS) make this a checkbox.
  2. Generate TLSA hash — from your cert’s SPKI. openssl x509 -in cert.pem -noout -pubkey | openssl pkey -pubin -outform DER | openssl dgst -sha256
  3. Publish TLSA record_25._tcp.mx1.example.com. TLSA 3 1 1 <hash>
  4. Test with DomainScan’s TLSA lookup — verify DNSSEC validates and the record is served
  5. Update TLSA whenever you rotate the cert — otherwise sender-side DANE validation will fail-closed and mail stops

Tools

Check the TLSA glossary entry, the DNSSEC entry, and the MTA-STS entry for the DNSSEC-free alternative.

Common Questions

01

What problem does DANE solve?

The STARTTLS downgrade attack for SMTP. Without DANE (or MTA-STS), a receiving mail server accepts STARTTLS opportunistically — if the sender advertises it, TLS is used; if not, the message is delivered in plaintext. An on-path attacker can strip the STARTTLS advertisement, downgrading the connection. DANE lets the receiver require TLS by publishing a TLSA record; senders that support DANE will refuse to deliver without a validated cert.

02

Why isn't DANE used in browsers?

Chrome removed DANE support in 2015 after the DNSSEC adoption failed to reach critical mass on the browser-facing web. Firefox never supported it natively. Reasons: performance impact of DNSSEC lookups on every HTTPS connection, low DNSSEC adoption rate, and the perception that certificate transparency + HPKP (later killed) + browser CA management addressed the same problem. Result: DANE is now essentially an SMTP-only technology.

03

What is the difference between DANE and MTA-STS?

Both prevent SMTP STARTTLS downgrade. DANE requires DNSSEC on the zone and publishes cert pins in TLSA records. MTA-STS uses HTTPS + a DNS TXT record — no DNSSEC required, easier to deploy. Trade-offs: DANE has stronger cryptographic anchoring (DNSSEC chain of trust); MTA-STS has lower operational cost. Some SMTP receivers implement both; Postfix + Exim support both; Google Workspace supports MTA-STS but not DANE for inbound.

04

Do I need DNSSEC to use DANE?

Yes — mandatory. Without a validated DNSSEC chain of trust from the root down to your zone, TLSA records can be spoofed by any on-path attacker, defeating the entire point. If your registrar or DNS provider doesn't support DNSSEC, you can't deploy DANE — use MTA-STS instead.

05

Which SMTP servers support DANE?

Postfix (since 2.11), Exim (since 4.85), Sendmail (via patches), Halon, and PowerMTA. On the receiving side, deploying TLSA records is straightforward. On the sending side, most operators enable DANE checking in the smtpd config. Google Workspace + Microsoft 365 do not currently check DANE on outbound; they honor MTA-STS instead.

#email-auth#security#dns#domainscan
D
DomainScan Team
Writes about DNS infrastructure, email authentication, domain security, and the engineering behind automated domain intelligence.