CAA record: what it is and how to set one up

Last updated

The short answer

A CAA record is a DNS record that lists the certificate authorities allowed to issue https certificates for your domain. Authorities must check it and refuse if they aren't listed, which makes it harder for anyone to get a certificate for your domain fraudulently. Before adding one, find out which authorities your host, CDN and email services actually use, and list all of them: leave one out and your certificate can fail to renew.

How a CAA record works

A CAA record (RFC 8659) has three parts: a flag (almost always 0), a tag, and a value.

With no CAA record at all, any authority may issue. Once you have issue or issuewild lines, only the authorities they list can. A record with only an iodef line gives a contact address but restricts nothing. A record on your main domain covers its subdomains unless they have their own, and a subdomain that points elsewhere with a CNAME can pick up the CAA record of the name it points to.

Find which authorities you use

  1. Open your site in a browser, click the padlock, and view the certificate: it names the issuer (for example Let's Encrypt, Sectigo, DigiCert or Google Trust Services).
  2. Check the same for any subdomain on a different service, such as a shop or booking system.
  3. Ask your host or CDN which authorities it may use: some switch between several, and all of them need to be listed.

Records to copy

For a site whose certificates come from Let's Encrypt and Sectigo:

Type  Name  Value
CAA   @     0 issue "letsencrypt.org"
CAA   @     0 issue "sectigo.com"
CAA   @     0 iodef "mailto:security@yoursite.com"

Add them wherever your domain's DNS is managed. Some DNS panels ask for the flag, tag and value in separate boxes.

The CDN trap

CDNs and hosts often renew certificates through more than one authority. A CAA record listing only the one you saw today can block the next renewal. Cloudflare handles this for its Universal SSL certificates: if you add any CAA record, it adds records for the authorities it uses automatically (Cloudflare). It also notes that a CAA record on a CNAME target applies to your domain, and that subdomains inherit the parent's records. Other providers publish the list of authorities to allow in their help pages.

How to check yours

CAA lives in the same DNS settings as your email records; see SPF, DKIM and DMARC and DNSSEC.

Checklist

Questions people ask

What does a CAA record do?
It names the certificate authorities allowed to issue https certificates for your domain. Any other authority is required to refuse, which makes it harder for someone to get a certificate for your domain fraudulently.
Can a CAA record break my website?
Not straight away, but it can stop your certificate renewing if it leaves out the authority your host or CDN uses. List every authority you rely on before you add one.
Do I need a CAA record if I use Cloudflare?
It is optional. Cloudflare says that when you use its Universal SSL and add any CAA record, it adds records for the authorities it uses automatically, so you won't block it by accident.
What is the iodef line for?
It gives authorities an address to report a refused request to, so you hear about an attempt to get a certificate for your domain.

What the free scan checks for this

These are the FocalScore checks that cover this guide's subject. Each one in your report says what it found, shows the evidence and gives the fix.

Sources

Last checked . Documentation, settings and rules change; if one of these pages now says something different, it is right and this guide is out of date. Tell us at info@focalscore.com.

  1. RFC 8659: DNS Certification Authority Authorization (CAA)
  2. Cloudflare: CAA records
  3. OWASP Cheat Sheet: HTTP security response headers