DANE

Also known as: DNS-based Authentication of Named Entities

On this page 7

DANE, short for DNS-based Authentication of Named Entities, is a protocol that lets a domain owner publish in the DNS which TLS certificate or public key a service is expected to present, protected by DNSSEC signatures. It is one of the mechanisms of internet trust that shifts part of the trust decision away from certificate authorities and toward the owner of the domain itself.

DANE is specified mainly in RFC 6698, with operational guidance in RFC 7671 and SMTP-specific rules in RFC 7672. Its strongest real-world adoption is in server-to-server email, where it protects SMTP connections against downgrade and interception attacks.

How DANE binds certificates to domain names

DANE works by publishing a TLSA record at a name derived from the service port and protocol, for example _25._tcp.mail.example.org for SMTP on port 25. A client that connects to the service looks up this record, verifies it with DNSSEC validation, and then compares the certificate received in the TLS handshake with the data in the record.

The security of the whole scheme rests on the DNSSEC chain of trust from the DNS root to the zone. Without valid signatures, a TLSA record is worthless, because an attacker able to forge DNS answers could also forge the expected certificate. Clients therefore ignore TLSA records in unsigned zones.

Each TLSA record has four fields. The table below explains what they control.

FieldValuesMeaning
Certificate usage0 to 3Which certificate is matched and whether PKIX validation also applies
Selector0 or 1Match the full certificate or only its public key
Matching type0, 1 or 2Exact data, SHA-256 hash or SHA-512 hash
Association dataHex stringThe certificate, key or hash to compare against
Fields of a TLSA record

Certificate usage modes

The certificate usage field decides how DANE interacts with the traditional PKI. Two modes constrain the normal certificate authority system, and two modes allow the domain owner to act as its own trust anchor. Choosing the right mode is the most important configuration decision.

UsageNameEffectTypical use
0PKIX-TARequires a specific CA in a normally valid chainRestricting which CA may issue
1PKIX-EERequires a specific end-entity certificate in a valid chainRare in practice
2DANE-TANames the domain’s own trust anchor, no public CA neededPrivate CAs, SMTP
3DANE-EEMatches the server certificate or key directlyMost common for SMTP
The four DANE usage modes

For SMTP, RFC 7672 recommends DANE-EE (3) or DANE-TA (2), because mail servers do not share a common set of trusted root certificates. The combination 3 1 1, meaning DANE-EE with a SHA-256 hash of the public key, is the most widely deployed record because it survives certificate renewal when the key stays the same.

DANE addresses a weakness of the classic certificate authority model: any trusted CA can issue a certificate for any domain. Other mechanisms tackle the same problem differently, and they are often complementary rather than competing.

MechanismWhere trust comes fromMain strengthMain limitation
DANEDNSSEC-signed DNS zoneOwner controls accepted keysRequires DNSSEC end to end
Certificate authority PKIBrowser and OS root storesUniversal client supportMis-issuance by any CA
MTA-STSHTTPS policy plus CA certificatesWorks without DNSSECTrust on first use
CAA recordsDNS record read by CAsLimits which CA may issueNot checked by clients
Certificate transparencyPublic append-only logsDetects mis-issuanceDetects after the fact
DANE and neighboring mechanisms

In email, MTA-STS and DANE coexist: many large providers publish MTA-STS, while operators with signed zones prefer DANE because it is not vulnerable to first-contact downgrade. Sending servers that support both apply DANE when valid TLSA records exist.

Deploying DANE for email servers

A DANE deployment for SMTP requires DNSSEC on the zones of the MX hosts, TLSA records for each MX host on port 25, and a mail server that offers STARTTLS with the matching certificate. Senders that validate DANE then refuse to deliver mail in cleartext or to a server presenting the wrong certificate.

  1. Sign the zone with DNSSEC and confirm the DS record at the parent zone.
  2. Generate the TLSA record from the current key, for example as a 3 1 1 record.
  3. Publish the record for every MX host and wait for the old TTL to expire.
  4. Test with validating tools before relying on the record.
  5. Automate key rollover so a new record is published before the new key goes live.

The rollover rule is essential: publish the next key’s TLSA record in advance, keep both records during the transition, and remove the old one only after the new certificate is active. Automated certificate renewal through ACME can generate new keys silently, so many operators reuse the key on renewal or hook the renewal process into DNS updates.

Limitations and failure modes

DANE’s main barrier is limited client support on the web. Major browsers do not validate TLSA records, partly because DNSSEC answers are often unavailable to end-user devices and an additional DNS lookup adds latency. As a result, DANE today matters mostly for SMTP, XMPP and some private deployments.

FailureCauseResult
Stale TLSA recordKey replaced without updating DNSValidating senders defer mail
Broken DNSSEC chainExpired signatures or wrong DS recordTLSA treated as bogus
Missing record on one MXIncomplete rolloutInconsistent delivery behavior
Usage mode mismatchPKIX mode used for SMTPValidation fails on some senders
Typical DANE failures

Because a wrong record causes hard delivery failures rather than warnings, monitoring is mandatory. Operators should check TLSA records against the live certificate after every change and alert on DNSSEC signature expiry well before it happens.

Explained without jargon

When two computers start an encrypted conversation, one shows a digital ID card called a certificate. Normally, a company called a certificate authority vouches for that card. DANE lets the owner of a domain write down in the address book of the internet which ID card is genuine, and seal that entry so nobody can alter it.

A visitor can then compare the card it receives with the sealed entry. If they do not match, the connection stops instead of trusting an impostor. It is like a building posting a signed photo of its real receptionist at the entrance.

A typical use case

A university runs its own mail servers for 30,000 users and already signs its DNS zone with DNSSEC. The IT team publishes a 3 1 1 TLSA record for each of its two MX hosts, generated from the public key of the server certificate. Large European mail providers that validate DANE now refuse to send mail to the university in cleartext and reject any server that presents a different key.

When certificates are renewed every 60 days, the renewal script keeps the same key pair, so the TLSA record stays valid. Once a year the team rotates the key: it publishes the new record a week in advance, keeps both records during the switch and removes the old one afterward. Monitoring confirms that no message was deferred during the rollover, and an intercepted connection attempt on a misconfigured campus network fails safely instead of leaking mail.