What is DANE?
DANE (DNS-Based Authentication of Named Entities) is a cryptographic protocol that uses DNSSEC-signed DNS records to pin TLS certificates for services like email. Instead of trusting any of the hundreds of public Certificate Authorities to vouch for a server's identity, DANE lets the domain owner publish exactly which certificate — or which public key — their server uses, cryptographically signed by DNSSEC. An attacker cannot forge or substitute a different certificate without breaking the DNSSEC signature chain.
For email specifically, DANE is implemented via RFC 7672 (DANE for SMTP) using TLSA records published at _25._tcp.mx-hostname.example.com. When a sending MTA connects to your MX host, it compares the TLS certificate presented by the server against the DNSSEC-signed TLSA record. If they match, the connection is authenticated. If they diverge — because an attacker inserted a rogue server or substituted a fraudulent certificate — the sender refuses to deliver.
Check your domain's email security posture: Run a free security report →
TLSA record anatomy
A TLSA record consists of four components:
_25._tcp.mx1.example.com. 3600 IN TLSA [Usage] [Selector] [Matching Type] [Certificate Data]
| Field | Options | Meaning | |-------|---------|---------| | Usage | 0 (PKIX-TA), 1 (PKIX-EE), 2 (DANE-TA), 3 (DANE-EE) | Which certificate is trusted and how | | Selector | 0 (Full certificate), 1 (SPKI — public key only) | Which part of the certificate is hashed | | Matching Type | 0 (exact), 1 (SHA-256), 2 (SHA-512) | How the certificate data is encoded | | Certificate Data | Hex-encoded hash or full certificate bytes | The actual cryptographic value to match |
For SMTP (RFC 7672 recommendation): use 3 1 1 — DANE-EE, SPKI hash, SHA-256. This pins the MX server's public key hash and allows certificate renewal without changing DNS, as long as the same key pair is used.
Usage, Selector, Matching Type explained
Usage 3 (DANE-EE) — "Trust this specific end-entity certificate, regardless of CA." This completely removes public CAs from the trust decision. The DANE-aware sender only trusts the exact public key or certificate hash published in your TLSA record. This is the most secure mode for SMTP.
Usage 2 (DANE-TA) — "Trust certificates issued by this specific CA." You publish the hash of your internal or specific CA rather than the end-entity cert. Less common for SMTP.
Selector 1 (SPKI) — Only the Subject Public Key Info (the public key itself) is hashed. This allows renewing the TLS certificate with the same key without updating DNS. Always use Selector 1 over Selector 0 for operational sanity.
Matching Type 1 (SHA-256) — 32-byte SHA-256 hash of the selected certificate data, encoded as 64 hex characters. The industry standard for DANE TLSA records.
DANE for SMTP
SMTP is where DANE has the clearest operational value. RFC 7672 (DANE for SMTP) specifies how sending MTAs should use TLSA records to authenticate receiving MX hosts during STARTTLS negotiation:
- The sending MTA looks up MX records for the recipient domain
- For each MX host, it queries
_25._tcp.mxhost.example.comfor TLSA records - If TLSA records exist and are DNSSEC-signed, the sender connects and expects TLS
- The sender compares the MX host's presented certificate against the TLSA hash
- If they match, TLS connection proceeds; if not, the sender refuses delivery
This eliminates both STARTTLS stripping (the sender knows to require TLS from the TLSA record) and rogue certificate attacks (only the pinned key/cert is accepted).
DANE vs MTA-STS: detailed comparison
| Feature | DANE | MTA-STS | |---------|------|---------| | Trust mechanism | DNSSEC + TLSA cryptographic pinning | Web PKI + HTTPS policy file | | DNSSEC required | Yes — mandatory | No | | CA trust dependency | None (Usage 3) | Yes — valid CA-signed cert required | | Certificate pinning | Yes — pins specific key or cert | No — any valid CA cert accepted | | Sender adoption | Moderate (Microsoft, many EU providers) | High (Gmail, Microsoft, Yahoo, most MTAs) | | Operational complexity | High — DNSSEC expertise required | Moderate — web hosting + DNS | | Regulatory requirement | BSI TR-03108 (Germany) | CISA guidance (US federal) | | Best for | High-security; DNSSEC-capable domains | Most organizations seeking broad coverage |
Recommendation: Deploy MTA-STS first for broad coverage. Add DANE additionally if your domain already runs DNSSEC reliably and you need the highest security assurance or BSI compliance.
Why DANE requires DNSSEC
Without DNSSEC, a TLSA record is just unsigned text in DNS — any attacker who can intercept DNS queries (via BGP hijacking, compromised resolvers, or on-path attacks) could substitute a different TLSA hash that matches their fraudulent certificate. The entire security model collapses.
DNSSEC provides cryptographic authenticity for DNS answers: each record in the signed zone is accompanied by an RRSIG (digital signature), and the chain of trust is anchored to the IANA root zone. A DANE-aware sender validates this entire chain before trusting any TLSA record. If the DNSSEC chain is broken (expired RRSIG, missing DS record, invalid DNSKEY), DANE-aware senders fall back to standard PKI validation — losing all DANE protection.
Deployment risks: what breaks DANE
DANE is powerful but unforgiving. Common production failures:
Certificate rotation without DNS update: The most frequent DANE outage. IT replaces an expiring TLS certificate on the MX server but forgets to update the TLSA record. The new certificate has a different hash — DANE-enforcing senders (Microsoft, Comcast) immediately refuse delivery. Prevention: always publish the new TLSA hash before binding the new certificate.
DNSSEC expiry: DNSSEC signatures (RRSIG) expire. If your DNS provider's signing process fails, all TLSA records become untrusted and DANE protection silently disappears. Monitor RRSIG expiry dates continuously.
Hashing the full certificate (Selector 0): If you hash the full certificate (Selector 0) instead of the public key (Selector 1), every certificate renewal — even with the same key — changes the hash and breaks DANE. Always use Selector 1.
How to implement DANE
Technical Architecture
DANE is defined in RFC 6698 and uses the TLSA DNS record type. For SMTP (RFC 7672):
_25._tcp.mx1.example.com. 3600 IN TLSA 3 1 1 09b82...[sha256_hash_of_public_key]...
Key architectural principle: The TLSA record's cryptographic value (the hash in the last field) must exactly match what the receiving MX server presents during TLS negotiation. DANE-aware senders verify this match after establishing the TLS connection — if the presented certificate's SPKI hash does not match the DNSSEC-signed TLSA record, the sender terminates the connection without delivering.
Implementation Examples
Usage 3 1 1 — DANE-EE with SHA-256 SPKI hash (recommended for SMTP):
_25._tcp.mail.example.com. 3600 IN TLSA 3 1 1 09b82...[sha256_of_public_key]...
Publish next key in advance of rotation:
_25._tcp.mail.example.com. 3600 IN TLSA 3 1 1 09b82...[current_key_hash]...
_25._tcp.mail.example.com. 3600 IN TLSA 3 1 1 8f91c...[next_key_hash]...
Common Misconfigurations
- Key rotation without DNS pre-publishing: New cert bound before TLSA updated → immediate DANE failure for all compliant senders
- DNSSEC breakage: Expired RRSIG or missing DS record → TLSA records untrusted → DANE protection silently lost
- Using Selector 0 (full certificate): Every cert renewal breaks DANE even if the key is the same → always use Selector 1
Security Risks DANE Addresses
- Rogue CA certificate issuance: Any of hundreds of global CAs can issue a certificate for your domain. DANE eliminates this risk — only the specific key hash in TLSA is trusted, regardless of which CA signed the certificate
- BGP hijacking: Attacker redirects MX traffic to rogue server. Without DANE, any CA-signed cert satisfies TLS. With DANE, the rogue server cannot forge the DNSSEC-signed TLSA record, and delivery is refused
- STARTTLS stripping: DANE-aware senders know TLS is expected from the TLSA record — they will not downgrade to plaintext even if STARTTLS is stripped from the greeting
Compliance Impact
- BSI TR-03108 (Germany): Explicitly mandates DANE for email transport security in German government and critical infrastructure communications
- GDPR Article 32: State-of-the-art technical measures for data security — DANE provides cryptographic guarantees beyond what opportunistic or Web PKI-based TLS can offer
Best Practices for DANE in 2025/2026
- Publish next-key TLSA before every rotation — 48+ hours in advance, never after
- Use Selector 1 (SPKI) — allows certificate renewal without TLSA update if key is unchanged
- Monitor DNSSEC chain continuously — RRSIG expiry breaks all DANE protection silently
- Deploy TLS-RPT alongside DANE — the only way to detect DANE validation failures from the sender side
- Deploy MTA-STS concurrently — provides coverage for senders that do not support DNSSEC
Tools to check your DANE
Use the CyberFurl security report to audit your DANE posture as part of a full email and DNS security assessment. For TLSA record lookup and validation, check that the DNSSEC signatures are valid and the hash matches your live MX certificate. After any certificate rotation or MX infrastructure change, re-validate the TLSA records to confirm DANE continues to protect delivery. Combine DANE validation with TLS-RPT monitoring for continuous enforcement visibility.
How CyberFurl Helps
Automated monitoring. Zero manual work.
CyberFurl security report includes DANE posture validation as part of the comprehensive email and DNS security assessment. The platform validates DNSSEC chain integrity, checks TLSA record syntax and correctness against live MX certificates, and integrates TLS-RPT data to surface DANE validation failures - including alerts when certificate rotation breaks the TLSA hash match.
