All ArticlesDevOps2026-11-22T19:13:41+08:00

Migrated DNS to a New Provider but DigiCert Validation Keeps Failing? Check CAA Records

After moving DNS providers, certificate issuance from DigiCert fails even though the domain resolves correctly, because CAA records were not carried over or updated. After reading, you will know how to audit CAA records in the new zone and set them correctly so automated certificate workflows resume.

You moved your DNS zone to a new provider, the site resolves, mail flows, and nothing looks broken. Then a DigiCert order or renewal stalls and keeps failing validation, even though the domain points exactly where it should. In most cases like this, the cause is the CAA records in the new zone. They are wrong, they no longer mention DigiCert, or a CA cannot read them reliably. This post-mortem follows the usual way this failure gets investigated, the point where the cause becomes visible, and the fix that stops it from coming back.

Initial impact: certificates stop, everything else works

This incident is easy to underrate because it is quiet. Visitors see no errors, since the existing certificate stays valid until it expires. The only symptoms are on the certificate side. A new order sits in a pending or failed state, an automated renewal job reports an error, or a reissue for an extra hostname never completes.

The real impact comes later. If nobody reads the renewal alerts, the current certificate eventually expires and browsers start showing warnings. The gap between the DNS migration and the first visible problem can be weeks or months, so the migration is rarely the first suspect.

A quick definition helps here. A CAA record (Certification Authority Authorization) is a DNS record that tells certificate authorities which of them may issue certificates for a domain. Before issuing, a public CA looks up CAA for the names on the certificate. If CAA records exist and none of them authorizes that CA, the CA must refuse. The behavior is defined in RFC 8659.

How the investigation usually goes

The first checks usually focus on domain control validation, the step where the CA confirms you control the domain through an email, a DNS TXT record, or a file over HTTP. People confirm that the A record points to the right server, that the validation TXT record exists, and that the validation file is reachable. All of these pass, which is what makes the case confusing. In support conversations, this is the moment someone says "but DNS is correct," and they are right about the records they are looking at.

The next suspicion is usually propagation. Some resolvers might still be asking the old provider, or the registrar's nameserver change might not have taken effect everywhere. Checking this is reasonable, and the method is covered in verifying propagation at each authoritative NS. Here, though, propagation tends to come back clean too.

Progress usually starts when someone reads the CA's actual rejection reason instead of the generic "validation failed" status, or when someone runs a CAA query for the first time. Domain control and CAA are separate checks. A domain can pass the first and fail the second.

The critical discovery: what the new zone says about CAA

CAA is easy to lose in a migration because nothing else depends on it. If an MX record goes missing, mail stops within hours. If a CAA record goes missing or changes, nothing happens until the next certificate request. Run the same query against public resolvers and against the new provider's authoritative nameserver, so you can see both what the internet sees and what the new zone actually holds:

# What public resolvers currently return
dig example.com CAA +short

# Ask the new provider's authoritative nameserver directly
dig @ns1.new-provider.example example.com CAA +short

# Check each exact name on the certificate as well
dig www.example.com CAA +short

Replace ns1.new-provider.example with one of the nameservers your registrar now lists for the domain. The dig command is part of the bind9 utilities on most Linux distributions.

Several distinct situations can come out of these queries. Each one means something different.

No CAA records anywhere. An empty answer at the name and at every parent up to the domain means no restriction. Any CA may issue, so a missing CAA set does not block DigiCert. If this is your result, look elsewhere, starting with the rejection reason in the order details.

CAA records exist but do not name DigiCert. This is the common blocker. The zone might have been rebuilt by hand and someone added only the CA they remembered. The new provider might have added its own defaults. Or the old zone listed several CAs and only some came across in the import. The output often looks like this:

Illustrative output format:
0 issue "letsencrypt.org"
0 issuewild "letsencrypt.org"

These two records authorize one CA for normal and wildcard certificates. DigiCert is not listed, so DigiCert must refuse.

CAA records exist but the value is malformed. Some DNS panels ask for flag, tag, and value in separate fields. Pasting a full record string into the value field can store literal quote characters or the tag inside the value, and the result no longer matches digicert.com. In dig output this shows up as escaped quotes or a value that repeats the tag. Compare the raw output carefully with what you meant to enter.

The wildcard rules differ from the base rules. If an issuewild record exists, it alone decides who may issue wildcard certificates, and issue no longer applies to wildcards. A zone can authorize DigiCert under issue and still block a DigiCert wildcard order because issuewild lists a different CA.

CAA comes from a different name than you expected. The CA checks the exact name first and then climbs toward the parent domain, stopping at the first name that has CAA records. A CAA set on shop.example.com overrides whatever example.com says. If a name is a CNAME, the lookup follows the alias, so CAA at the target can apply.

The CAA query fails. If the new nameservers answer CAA queries with SERVFAIL or time out, many CAs treat that as a reason not to issue. A frequent cause after a provider move is DNSSEC: the registrar still publishes a DS record for the old provider's signing keys. Run dig example.com CAA without +short and check the status line for NOERROR versus SERVFAIL.

Temporary mitigation: authorize the CAs you actually use

The quick fix is to make the new zone's CAA set match reality. First, list every CA that issues certificates for this domain. That might be DigiCert for the main certificate, plus another CA used by a control panel's automatic SSL, a CDN, or a load balancer. Leaving one out moves the outage to that CA's next renewal. This is the same mechanism described in AutoSSL failing because CAA blocks the CA.

A corrected set, in zone-file form, looks like this:

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

The TTL of 3600 is an illustrative example. The 0 is the flags field. Leave it at 0 unless you know you need the critical flag, which makes a CA refuse issuance if it does not understand the tag. Add an issuewild line only if you issue wildcard certificates. Without any issuewild records, issue covers wildcards too. In a panel or API, you will enter these as separate fields rather than as a single line, so check how your provider expects flag, tag, and value.

After saving, query the authoritative nameserver again to confirm the stored value. Then retry the DigiCert validation from the order. If resolvers cached the old answer, the TTL of the previous record controls how long that lasts. If the CAA query was failing because of DNSSEC, fix or remove the DS record at the registrar first. Changing CAA values cannot help while the lookup itself fails.

The architectural fix: treat CAA as part of the zone, not an afterthought

The underlying problem is that the migration copied the records people use every day and treated the rest as optional. Three habits fix that.

First, export the full zone from the old provider before cutover and diff it against the new zone, record type by record type, by querying both sets of authoritative nameservers. CAA, TXT, SRV, and DS-related settings are the usual gaps. Do this while the old provider still answers queries, because once the account is closed, the old CAA values are gone.

Second, keep the zone in version control, either as a zone file or as configuration for a DNS management tool. A migration then becomes a deploy of known content to a new target instead of a manual rebuild. A CAA change also becomes a reviewed diff that someone can link to a certificate decision.

Third, add a CAA check to certificate monitoring. A scheduled job that runs dig example.com CAA +short against the authoritative servers and alerts when the output changes is enough. It catches provider-side defaults and accidental edits long before the next renewal.

CAA is still worth keeping. It limits which CAs can issue for your domain, which reduces the impact of a mis-issuance at a CA you never use. The goal of the fix is to keep the restriction and make it match reality. If DigiCert validation fails after any DNS change, query CAA at the authoritative nameserver before anything else. That one command usually shows whether the zone stopped authorizing DigiCert, stored the value wrong, or cannot answer at all.