Skip to main content
DNSLow PriorityPro

DANE/TLSA Records

Updated November 2026·SecScanner Team

DANE (DNS-based Authentication of Named Entities) uses TLSA DNS records to cryptographically bind TLS certificates to domain names via DNSSEC.

Results in 1–3 minutes · Free · No signup required

Want the result for your own site? Free DNS Security Checker — paste your domain, get the report.

Why It Matters

DANE provides an alternative to the CA trust model by allowing domain owners to specify exactly which certificates are valid. This prevents attacks from compromised Certificate Authorities.

How We Check

We query for TLSA records at _443._tcp.{domain} using DNS-over-HTTPS and validate the record format including usage, selector, and matching type fields.

Good vs Bad Values

Good and bad values for DANE/TLSA Records
ValueVerdictWhy
_443._tcp.example.com. TLSA 3 1 1 <sha256 of the public key>GoodDANE-EE with the SubjectPublicKeyInfo and a SHA-256 digest. It stays valid across renewals as long as the key does not change.
_443._tcp.example.com. TLSA 3 1 2 <sha512 of the public key>GoodThe same pin with SHA-512. Valid format, slightly longer record.
_25._tcp.mail.example.com. TLSA 3 1 1 <hash>GoodThe form most deployed today: SMTP servers verifying each other with DANE (RFC 7672). A web check will not see it, but it is correct.
TLSA 2 0 1 <hash of the CA certificate>WeakDANE-TA pins a trust anchor, so it survives leaf renewals, but it trusts everything that CA signs and needs the full chain served.
TLSA 0 0 0 <entire certificate>WeakA valid record that pins the full certificate as-is. It must be replaced at every renewal and is large.
TLSA 5 1 1 <hash> or 3 2 1 <hash>BadUsage must be 0 to 3, selector 0 or 1, and matching type 0 to 2. Out-of-range values are invalid and are failed by the check.
TLSA record without DNSSEC on the zoneBadDANE only means something when the answer is signed. A TLSA record in an unsigned zone is ignored by validating clients.
No TLSA recordGoodDANE is optional. This check passes when no record exists and gives advice, because browsers do not use DANE for HTTPS.

How to Fix

Enable DNSSEC for your domain first. Then add TLSA records: generate with 'tlsa --create --selector 1 --mtype 1 hostname'. Update records when certificates change.

Prerequisite: DNSSEC must be on for the zone, see the DNS Security check. Generate the digest of the public key (selector 1, matching type 1):

openssl x509 -in cert.pem -noout -pubkey \
  | openssl pkey -pubin -outform DER \
  | openssl dgst -sha256 -binary | xxd -p -c 64

Publish it with usage 3 (DANE-EE), selector 1, matching type 1. Usage 3 pins the end-entity key without relying on a CA, and RFC 7671 recommends that form for servers. Keep a second record for the next key during a rollover:

_443._tcp.www.example.com. 3600 IN TLSA 3 1 1 8cb0fc6c527506a053f4f14c8464bebbd6dede2738d11468dd953d7d6a3021f1
_443._tcp.www.example.com. 3600 IN TLSA 3 1 1 <digest of the next key>

Keep the key stable. With certbot use --reuse-key, so the pin survives renewals. Cloudflare has a TLSA record type in the DNS dashboard; if your provider does not offer one, host that name elsewhere.

Verify that the record exists, is signed and matches the key the server presents:

dig +dnssec TLSA _443._tcp.www.example.com
openssl s_client -connect www.example.com:443 -servername www.example.com </dev/null 2>/dev/null \
  | openssl x509 -noout -pubkey | openssl pkey -pubin -outform DER | openssl dgst -sha256

Common Mistakes

  • Publishing TLSA in a zone without DNSSEC. Clients ignore it, and one that does honour it has no way to trust the answer.
  • Hashing the wrong thing. For selector 1 the digest is of the public key (SubjectPublicKeyInfo), not of the whole certificate; hashing the whole certificate is selector 0.
  • Renewing the certificate with a new key and forgetting to update TLSA. Every DANE-validating client then fails the connection. Reuse the key on renewal, or publish the new record ahead of the switch.
  • Expecting a browser change. Mainstream browsers do not check DANE for HTTPS, so for a website this is defence-in-depth for custom clients, whereas for SMTP it is a real, deployed mechanism.
  • Using the hostname instead of the underscore name. The record lives at `_port._protocol.hostname`, for example `_443._tcp.www.example.com`.
  • Keeping an old record after a host change. Remove or replace it when the server or its certificate moves.

Frequently Asked Questions

What is DANE/TLSA Records?

DANE (DNS-based Authentication of Named Entities) uses TLSA DNS records to cryptographically bind TLS certificates to domain names via DNSSEC.

Why does DANE/TLSA Records matter for website security?

DANE provides an alternative to the CA trust model by allowing domain owners to specify exactly which certificates are valid. This prevents attacks from compromised Certificate Authorities.

How do I fix DANE/TLSA Records issues?

Enable DNSSEC for your domain first. Then add TLSA records: generate with 'tlsa --create --selector 1 --mtype 1 hostname'. Update records when certificates change.

Related Security Checks

Related Tool

DNS Security Checker

Run all 6 related checks with our free dns security checker

Check Your Website Now

Run a free security scan to check for DANE/TLSA Records issues and 61 other security checks.

Scan Your Website Free