Explainer · DNS and security

CAA and DNSSEC explained

CAA tells certificate authorities who is allowed to issue a certificate for your domain. DNSSEC makes sure those DNS answers cannot be forged along the way. Together they form two fairly simple records that provide quiet but effective protection.

What CAA is

CAA (Certificate Authority Authorization) is a DNS record that states which certificate authorities may issue a certificate for this domain. The rule is defined in RFC 8659 and is honoured by every major CA before issuing a certificate.

Without a CAA record, any trusted CA could in theory issue a certificate for any domain — proving control of the domain would be enough. CAA does not replace that check; it adds a second, independent restriction: even if someone manages to fake the challenge, the wrong CA is still not allowed to issue.

Real-world benefit: if your CAA allows only Let's Encrypt, a compromised or mistaken CA cannot issue for your domain. That matters most for organisations whose domains are attractive targets.

CAA syntax and tags

example.com.  3600  IN  CAA  0  issue  "letsencrypt.org"

The fields from left to right: name, TTL, class, type, flags, tag and value. Flag 0 means a normal record; flag 128 marks a “critical” record the CA must understand — with an unknown critical tag, issuance must stop.

TagMeaning
issueAllows the named CA to issue ordinary certificates.
issuewildAllows the named CA to issue wildcard certificates (*.example.com). If absent, issue also governs wildcards.
iodefAn email address or URL where a CA can report a forbidden issuance attempt.

Example with two CAs and reporting:

example.com.  3600  IN  CAA  0  issue     "letsencrypt.org"
example.com.  3600  IN  CAA  0  issue     "digicert.com"
example.com.  3600  IN  CAA  0  issuewild  "letsencrypt.org"
example.com.  3600  IN  CAA  0  iodef     "mailto:[email protected]"

How CAA is looked up

A CA does not look only at the exact name. The query walks up the domain tree: www.example.com → example.com → com → root. The first set of CAA records found is authoritative — records from different levels are not merged.

Two practical consequences follow:

Setting up CAA

Most DNS panels treat CAA as an ordinary record type. In Cloudflare:

  1. Open DNS → Records and click Add record.
  2. Type: CAA. Name: @ (apex) or a specific subdomain.
  3. Tag: issue. CA domain: letsencrypt.org. Flags: 0.
  4. If you use wildcard certificates, add a second record with the tag issuewild.

Before you add it, check which CA actually serves you. If the CAA record does not allow your current CA, the next renewal will fail. Find the issuer name in the ssl.ee result or in the certificate details.

If you deliberately want to forbid all issuance, use an empty value with a semicolon:

example.com.  3600  IN  CAA  0  issue  ";"

That is meant for domains that will never be a web server. Do not do it for a normal site.

Checking CAA

dig CAA example.com +short
dig CAA www.example.com +short

An empty answer means there is no CAA. If you see a record, verify that the issue value matches your CA domain (for example letsencrypt.org, not letsencrypt or a URL).

The ssl.ee check displays CAA records and the DNSSEC status in a separate panel under the result. The data comes from Cloudflare's DNS-over-HTTPS service, so you do not need the command line.

What DNSSEC is

DNSSEC adds cryptographic signatures to DNS answers. Without it a client has no way to tell a genuine answer from a forged one — DNS itself is historically completely untrusted. DNSSEC does not encrypt traffic or hide queries; it only proves that an answer came from the right zone and was not modified.

The chain of trust has three components:

A validating resolver marks a successful check with the AD flag (Authentic Data) in the response. If a signature does not match, the resolver returns an error (SERVFAIL) and the site ultimately fails to load.

Setting up DNSSEC

DNSSEC is a two-step process and the order is critical:

  1. Enable DNSSEC at your DNS provider. In Cloudflare: DNS → Settings → DNSSEC → Enable DNSSEC. Cloudflare generates the keys and starts signing answers.
  2. Add the DS record at your registrar. Cloudflare shows the required values (key tag, algorithm, digest type, digest). Enter them in your registrar's panel (for .ee domains, the registrar's DNSSEC section).
  3. Wait for propagation. The DS record usually propagates within minutes to hours. Only after that do validating resolvers start trusting your zone.

The most common outage: adding the DS record before the zone is actually signed. At that moment the domain becomes unreachable for validating resolvers. Always fix the zone first, then the DS record.

If you switch DNS providers, the DS record must be replaced with the new provider's values. An old DS record does not match the new zone and causes the same kind of outage.

How they work together

Three layers reinforce each other:

Without DNSSEC, CAA is still useful but weaker: an attacker able to forge DNS answers could hide the CAA answer too. DNSSEC makes such forgery detectable.

Common failures

SymptomCause and fix
CAA record prevents issuanceThe CAA allows a different CA than the one you use. Add the correct issue record or remove the old one.
A subdomain renewal fails while the apex worksThe subdomain has its own CAA that shadows the apex record. Check both levels.
A wildcard certificate is not issuedThe issuewild record is missing or allows the wrong CA.
The domain stops loading after enabling DNSSECA DS record exists but the zone is not correctly signed. Remove the DS temporarily and fix the zone.
DNSSEC validation fails after switching DNS providersThe old DS record is still at the registrar. Update it with the new provider's values.
SERVFAIL on every queryA broken signature or an expired key. Compare the zone and the DS record using dnsviz.net.

See which CAA records currently apply to your domain.

Check CAA and DNSSEC Renewal guide

Frequently asked questions

Is CAA mandatory?

No. CAA is optional, but every major CA honours it. If there is no CAA record, any trusted CA may issue a certificate.

Does the CAA record have to be on the apex?

Putting it on the apex is the most sensible choice, because then it applies to all subdomains. As an exception, a subdomain may have its own CAA, which replaces the apex record.

Does DNSSEC make a website faster?

No. DNSSEC adds some query volume and validation work. Its benefit is security, not speed.

Does DNSSEC encrypt DNS queries?

No. DNSSEC signs the answers, but queries and responses remain visible. Encryption requires separate technologies (DNS-over-HTTPS, DNS-over-TLS).

What should I do when CAA blocks a renewal?

Find the issuer domain the certificate uses and add it as an issue record. If you use several CAs, add them all. After the change, wait for the TTL to pass and try again.