How to Configure DNS CAA Records: RFC 8659 SSL Guide

Technical guide on how to configure DNS CAA records under RFC 8659 and RFC 8657. Lock SSL certificate issuance with issue, issuewild, iodef, and accounturi.

How to Configure DNS CAA Records: RFC 8659 SSL Guide
RFC 8659 DNS Standard

To configure DNS CAA records for SSL security: Publish Type CAA records at your domain apex (@) using Flag 0, Tag issue, issuewild, or iodef, and permitted Certificate Authority identifiers (e.g., letsencrypt.org or pki.goog). Restrict ACME flows further with ;validationmethods= or ;accounturi= under RFC 8657, then confirm via dig example.com caa +short.[1][2]

Follow this technical DNS and PKI guide to restrict unauthorized SSL/TLS issuance across apex domains, subdomains, CNAME targets, and Cloudflare edge proxies.[1][3]


Understanding DNS CAA Records Under RFC 8659 and RFC 8657

By default, every publicly trusted Certificate Authority (CA) on the Internet is technically permitted to sign an SSL/TLS certificate for any domain once domain control validation succeeds.[1] If an upstream CA suffers a validation flaw or BGP hijacking diverts HTTP-01 verification, an attacker could obtain a rogue valid certificate for your domain.

Certification Authority Authorization (CAA), standardized in 2019 by RFC 8659 and extended with ACME-binding parameters in RFC 8657, eliminates this exposure by requiring every public CA to verify DNS CAA resource records prior to signing.[1][2]

What is the difference between issue, issuewild, and iodef CAA tags?

Every CAA DNS record uses the standardized structure CAA <flags> <tag> <value>:[1]

Property Tag Flag Value Scope & Enforcement Behavior Production Example Value
issue 0 (or 128 critical) Authorizes the listed CA to sign standard single/SAN certificates—and also covers wildcards if no issuewild record exists.[1] 0 issue "letsencrypt.org"
issuewild 0 (or 128 critical) Explicitly authorizes wildcard issuance (*.domain.com). Overrides issue specifically for wildcard checks.[1] 0 issuewild "pki.goog" (or ";" to forbid wildcards)
iodef 0 Incident Object Description Exchange Format endpoint (mailto: or https:) where CAs report blocked unauthorized requests.[1] 0 iodef "mailto:[email protected]"
Deny All (;) 0 Explicit semicolon tells every public CA that zero certificates may be issued for that hostname. 0 issue ";"

Flags are typically set to 0. Setting Flags to 128 activates the critical bit, forcing CAs to abort certificate issuance immediately if they do not recognize the tag or parameter syntax.[1]

How do CAs resolve CAA records across subdomains and CNAME targets?

During validation, a CA walks up the DNS label hierarchy starting from the target hostname, stopping at the closest ancestor containing a CAA record, and following CNAME redirects like normal DNS lookups.[1]

  • If requesting a certificate for www.api.example.pk, the CA queries www.api.example.pk, then api.example.pk, then example.pk.
  • If api.example.pk defines its own issue record, it overrides the apex example.pk rule for api.example.pk and its children.[1]
  • If portal.example.pk is a CNAME to saas-provider.net, the CA inspects CAA records published on saas-provider.net rather than the alias source.[1]

Step-by-Step Guide: How to Configure DNS CAA Records for Your Domain

Multiple CAA records using the same tag are additive: if at least one matching issue record grants permission to the requesting CA, issuance succeeds.[1]

Step 1: Audit Existing Certificates Across Infrastructure

List every CA issuing TLS certificates for your web servers, Cloudflare proxy, cPanel AutoSSL (Sectigo / Let’s Encrypt), load balancers, and SaaS hostnames so production renewals are never interrupted when CAA takes effect.

Step 2: Deploy Apex and Wildcard CAA Records

In your authoritative DNS manager (BIND, PowerDNS, cPanel Zone Editor, or Cloudflare DNS), publish records for your primary certificate providers. For example, a domain using Let’s Encrypt directly on origin servers publishes:[1]

; BIND Zone File Format (RFC 8659)
example.pk.   300   IN   CAA   0   issue "letsencrypt.org"
example.pk.   300   IN   CAA   0   issuewild "letsencrypt.org"
example.pk.   300   IN   CAA   0   iodef "mailto:[email protected]"

If an enterprise wishes to block wildcard issuance entirely across subdomains while permitting standard host certificates:

example.pk.   300   IN   CAA   0   issue "letsencrypt.org"
example.pk.   300   IN   CAA   0   issuewild ";"

(Note: When requesting a dual wildcard + apex certificate covering both *.example.pk and example.pk, ACME clients check issuewild for *.example.pk and issue for example.pk, so include both tags unless restricting wildcards.)

Step 3: Verify Propagation with dig

Confirm your authoritative nameservers return exact Type 257 (CAA) strings from a Linux or macOS terminal:

dig CAA example.pk +short

Expected response:

0 issue "letsencrypt.org"
0 issuewild "letsencrypt.org"
0 iodef "mailto:[email protected]"

Hardening SSL Issuance with validationmethods and accounturi Parameters

Under RFC 8657, Let’s Encrypt and compliant ACME CAs allow attaching semicolon-separated validation constraints directly inside the issue or issuewild string.[1][4]

  1. Restrict Validation Challenge Types (validationmethods): Prevent HTTP-01 webroot validation spoofing by forcing ACME challenges to succeed strictly over DNS-01 (dns-01) or TLS-ALPN-01 (tls-alpn-01). Let’s Encrypt recognizes http-01, dns-01, and tls-alpn-01:[1]
example.pk.   IN   CAA   0   issue "letsencrypt.org;validationmethods=dns-01"
  1. Bind Issuance to One ACME Account (accounturi): Even if an attacker temporarily hijacks an HTTP path or subdomain DNS record, adding your explicit ACME Account URI prevents anyone lacking your private ACME account key from issuing certificates:[1][4]
example.pk.   IN   CAA   0   issue "letsencrypt.org;accounturi=https://acme-v02.api.letsencrypt.org/acme/acct/1234567890"

Test RFC 8657 Parameters with Flag 128 Carefully: Only set the critical flag to 128 alongside accounturi when you confirm every listed CA implements RFC 8657 parsing; CAs that fail to recognize a critical parameter reject every certificate renewal immediately.[1]


Cloudflare Automatic CAA Records and DNS Troubleshooting Checklist

Why does Cloudflare add hidden CAA records even after custom entries are created?

When a domain runs on a Cloudflare full DNS setup with Universal SSL enabled and you manually add at least one CAA record to your zone, Cloudflare automatically injects hidden CAA records into public DNS responses so Universal edge certificates can continue renewing seamlessly.[3]

Running dig example.pk caa +short reveals these automatic Cloudflare entries even though they do not appear in the Cloudflare dashboard:[3]

0 issue "pki.goog; cansignhttpexchanges=yes"
0 issuewild "pki.goog; cansignhttpexchanges=yes"
0 issue "letsencrypt.org"
0 issuewild "letsencrypt.org"
0 issue "ssl.com"

(Note: Cloudflare documentation specifies that this automatic injection does not apply to Advanced Certificate Manager zones, nor does it apply if you host the parent domain externally with a subdomain delegated to Cloudflare—in that scenario, the parent zone must explicitly allow Cloudflare partner CAs or carry no CAA records.)[3]

How do you fix DNS NOTIMP or SERVFAIL CAA lookup errors?

Diagnostic Checklist for CAA Validation Failures

Legacy Nameserver NOTIMP Violation (RFC 1035): Even if you never created CAA records, Let's Encrypt queries Type CAA before signing every certificate.[1] Older authoritative DNS appliances that reply with NOTIMP (Not Implemented) or FORMERR instead of NOERROR with an empty answer section violate RFC 1035 and cause CAs to abort issuance with a CAA error.[1]

Verify DNSSEC integrity and CAA query compliance using these terminal checks:

  1. Query CAA records across public resolvers and check status flags (status: NOERROR):
dig +dnssec CAA example.pk @1.1.1.1
dig +dnssec CAA example.pk @8.8.8.8
  1. Confirm parent .PK or .COM domain DNSSEC DS keys are synchronized with your authoritative DNS zone if SERVFAIL occurs during CA lookups. For .pk and .com.pk properties requiring reliable Anycast DNS and local PKR management, configure domains cleanly through NextGen Domain Registration.
  2. If migrating to origin SSL automation on Linux servers, pair strict DNS CAA policies with isolated enterprise hardware on Dedicated Servers or low-latency Dedicated Servers in Pakistan.

Manage .PK Domains & RFC-Compliant DNS Security

Register .pk, .com.pk, and global domains with Anycast DNS support, DNSSEC compatibility, and clean RFC 8659 CAA record control.

Manage & Register Domains

Disclaimer: This post is for informational and educational purposes only, accurate to the best of our knowledge at publication. It does not constitute advice. Always verify active ACME renewals and third-party CDN certificate authorities in staging before deploying restrictive CAA rules in production.

Sources & Official References
  1. Let's Encrypt Documentation. "Certificate Authority Authorization (CAA) — Using CAA, validationmethods, accounturi, and CAA Errors." Internet Security Research Group (ISRG), updated October 4, 2026. Available at: https://letsencrypt.org/docs/caa/
  2. IETF RFC 8659. "DNS Certification Authority Authorization (CAA) Resource Record." Internet Engineering Task Force. Available at: https://www.rfc-editor.org/rfc/rfc8659
  3. Cloudflare Documentation. "Add CAA Records — CAA Records Added by Cloudflare & Universal SSL." Cloudflare SSL/TLS Docs. Available at: https://developers.cloudflare.com/ssl/edge-certificates/caa-records/
  4. IETF RFC 8657. "Certification Authority Authorization (CAA) Record Extensions for Account URI and Automatic Certificate Management Environment (ACME) Method Binding." Internet Engineering Task Force. Available at: https://www.rfc-editor.org/rfc/rfc8657

Disclaimer: This post is for informational and educational purposes only, accurate to the best of our knowledge at publication. It does not constitute advice. We do not guarantee accuracy or completeness and accept no liability for any decisions or losses resulting from reliance on this content.