The short answer

Vercel checks that each domain in a project's Settings > Domains page resolves to the values shown there, then issues a Let's Encrypt certificate for it. Nearly every problem is a record that does not match, a record left over from a previous host, or something in front of Vercel (a proxy, a CAA policy, a DS record) that blocks the check. Match the symptom first:

SymptomUsually meansSection
Invalid Configuration, DNS Change Required or DNS Change RecommendedThe A or CNAME record is missing, wrong, copied from another project, or competing with old recordsRecords
Asked to add a TXT record at _vercelThe domain is already used by another Vercel account or teamVerification
Certificate never issuesA CAA record blocks Let's Encrypt, the domain does not point at Vercel yet, or a proxy blocks the challengeCertificates
Wildcard domain stays invalidVercel cannot answer the DNS-01 challengeWildcards
Email stopped after moving to Vercel name serversMX and TXT records were not copied overName servers
SERVFAIL after moving to Vercel name serversA DS record from the previous provider is still at the registrarDNSSEC
ERR_TOO_MANY_REDIRECTS behind CloudflareCloudflare is in Flexible SSL/TLS modeCloudflare in front

Step 1: use the records Vercel shows for this project

Vercel offers three ways to point a domain at a project, and the dashboard shows the exact values for each:

DomainRecordValue
Apex, such as example.comA at @The address shown in Settings > Domains. Many projects show 76.76.21.21; newer projects can show another address, such as 216.198.79.1
Subdomain, such as www or docsCNAMEThe project's own target, such as d1d4fc829fe7bc7c.vercel-dns-017.com.
Whole domainNS at the registrarns1.vercel-dns.com and ns2.vercel-dns.com

The mistakes that produce Invalid Configuration are almost always one of these:

  • A value from somewhere else. Vercel assigns anycast addresses and CNAME targets per project. A value copied from another project, an old blog post, or the older generic cname.vercel-dns.com target can leave the domain flagged. Copy it from this project's settings.
  • Old records still published. Remove every other A, AAAA and CNAME for the same name before adding Vercel's. Two A records, one for the old host and one for Vercel, send some visitors to each.
  • An AAAA record. Vercel does not serve custom domains over IPv6, so there is no AAAA value to point at it. Delete AAAA records that point at an old host.
  • The full name in the Name field. For www.example.com the name is www. Many DNS panels append the zone, which turns www.example.com into www.example.com.example.com.
  • A missing trailing dot. The CNAME value Vercel shows ends in a period because it is a fully qualified name. Copy it exactly, or confirm your provider adds the dot.
CheckmacOS or LinuxWindows PowerShell
Apex addressdig A example.com +shortResolve-DnsName example.com -Type A
Leftover IPv6 recordsdig AAAA example.com +shortResolve-DnsName example.com -Type AAAA
Subdomain targetdig CNAME www.example.com +shortResolve-DnsName www.example.com -Type CNAME
Who is authoritativedig NS example.com +shortResolve-DnsName example.com -Type NS

If the results are right but the dashboard still disagrees, the old answer may still be cached. Lower the TTL well before a move (Vercel suggests 60 seconds about a day ahead), and see DNS TTLs and caching and DNS propagation myths.

Step 2: apex, www and CNAME flattening

A CNAME cannot sit at the apex next to the NS, SOA and MX records every domain needs (see CNAME at the zone apex), so Vercel gives the apex an A record and subdomains a CNAME. When you add an apex domain, Vercel prompts you to add www as well. To serve both names:

  1. Add both example.com and www.example.com to the project.
  2. Create the A record for @ and the CNAME for www with the values shown for each.
  3. Set one as primary and redirect the other to it in Settings > Domains. Vercel recommends making www primary, because a CNAME lets Vercel route traffic more flexibly than a fixed address.

If your DNS host offers ALIAS, ANAME or CNAME flattening at the apex (Cloudflare does), it answers with whatever addresses the target resolves to. That can work, but Vercel documents an A record for the apex, so if the domain will not validate with a flattened record, switch to the A record. Check the result end to end:

CommandWhat to look for
curl -sIL https://example.comHTTPS works and the chain ends on your primary domain
curl -sIL https://www.example.comIt ends on the same URL

More on redirect chains in HTTPS and HTTP redirects.

Step 3: domain verification with a TXT record

A domain can belong to only one Vercel account or team at a time. If it is already in use elsewhere, Vercel asks you to verify access with a TXT record, which lets you use the domain in your project without moving it. The record always goes at _vercel on the apex (_vercel.example.com), even when you are verifying a subdomain such as ai.example.com.

  • Each verified domain gets its own value, and several can sit side by side as separate TXT records at _vercel. Do not replace one with another.
  • Removing a domain from a project and adding it again generates a new value, so update the record.
  • Add the record wherever DNS for the apex is actually served. If that is Cloudflare, TXT records are never proxied, so only the name and value matter.
  • If you own the domain but not the other Vercel account, use Connect External on the Domains dashboard; once the TXT record verifies, the domain moves to your account.

Check what is published with dig TXT _vercel.example.com +short (or Resolve-DnsName _vercel.example.com -Type TXT on Windows).

Step 4: SSL certificates

Vercel issues certificates from Let's Encrypt. For an ordinary hostname it uses the HTTP-01 challenge and answers it automatically, which only works once the name resolves to Vercel. Work through these in order:

  • The domain must point at Vercel first. A certificate cannot be issued while DNS still points at the old host.
  • CAA must allow Let's Encrypt. Having no CAA record is fine. If you publish one, include 0 issue "letsencrypt.org", and for wildcards an issuewild entry that allows it too. CAA is checked at the exact name and then each parent until a policy is found, so a policy on the apex applies to every subdomain without its own. Vercel adds the Let's Encrypt record itself when it hosts your DNS.
  • A CNAME and a CAA record cannot share a name. If you need your own CAA policy on a subdomain that is a CNAME to Vercel, use an A record with the project's address instead.
  • Old _acme-challenge records. A previous host may have left a TXT, CNAME or NS record there that sends validation elsewhere. Check its purpose before removing it.
  • /.well-known is reserved. Vercel does not let you redirect or rewrite it, and a proxy in front must pass /.well-known/acme-challenge/* through on port 80.
CommandWhat it shows
dig CAA example.com +noall +answerThe CAA policy that applies to the apex
dig CAA www.example.com +noall +answerWhether a subdomain has its own policy (or follows a CNAME to one)
dig TXT _acme-challenge.example.com +shortLeftover challenge records
curl -sS -D - -o /dev/null http://example.com/.well-known/acme-challenge/testA 404 with server: Vercel means the path reaches Vercel

For an ERR_SSL_PROTOCOL_ERROR, open the deployment's vercel.app URL in the same browser. If that works, the problem is the custom hostname's DNS, certificate or proxy; if it only fails on one network, ask that network's administrator about filtering or TLS inspection. Let's Debug runs the same checks Let's Encrypt does. See the CAA records deep dive.

Step 5: wildcard domains

Wildcard certificates such as *.example.com can only be validated with the DNS-01 challenge, so Vercel must be able to publish a TXT record at _acme-challenge every time it issues or renews. There are two ways to allow that:

  • Move the domain to Vercel's name servers. Wildcards then work without further setup.
  • Keep your DNS host and delegate only the challenge. On the domain's page, choose Enable Vercel DNS but leave the registrar alone, then add two NS records at your DNS host and a wildcard CNAME for traffic:
TypeNameValue
NS_acme-challengens1.vercel-dns.com.
NS_acme-challengens2.vercel-dns.com.
CNAME*cname.vercel-dns-0.com.

For *.preview.example.com the names become _acme-challenge.preview and *.preview. Keep the NS records in place, or renewal fails months later. Delegating the challenge also stops any other provider from issuing certificates that need the same name. See wildcard DNS risks.

Step 6: moving to Vercel's name servers

With ns1.vercel-dns.com and ns2.vercel-dns.com at the registrar, Vercel creates the records for domains you add to projects automatically. Everything else in the zone is now your job to recreate on Vercel:

  • Copy every record first, especially MX, SPF, DKIM and DMARC records, and verification TXT records. Vercel does not provide email, so mail stops the moment the name servers switch if MX records were not copied.
  • Expect 24 to 48 hours for a name server change to settle everywhere, because the parent zone's NS TTL is long. Ordinary records on Vercel default to a 60 second TTL.
  • Compare old and new before switching. Query both providers' servers directly for the records you depend on.

The full checklist is in moving DNS providers without downtime. If you only need the website on Vercel, you do not have to move name servers at all: change the A and CNAME records at your current DNS host and leave the rest of the zone where it is.

Step 7: DNSSEC

Vercel's domain documentation does not cover DNSSEC for zones on its name servers, and Vercel staff answers in its community forum say DNSSEC signing is not offered there. That has two consequences:

  • Remove the DS record before moving name servers to Vercel. A DS record left at the registrar from the previous provider makes validating resolvers return SERVFAIL. Delete it, wait for its TTL to expire (dig DS example.com +short returns nothing), then change the name servers.
  • To keep DNSSEC, keep DNS elsewhere. Leave the zone at a provider that signs it, such as Cloudflare, and point A and CNAME records at Vercel. DNSSEC protects the DNS answers; Vercel serves the site.

To confirm DNSSEC is the cause of a failure, compare dig example.com A @1.1.1.1 with the same query plus +cd: an answer only with +cd means validation is failing. Check Vercel's current documentation before relying on this, because support could change. See debugging DNSSEC validation errors and the DS record page.

Step 8: Cloudflare or another proxy in front of Vercel

Vercel does not recommend putting a reverse proxy in front of a project: its firewall loses sight of real visitors, and attacks on the proxy pass through as usage. The simplest fix for most problems is to set the Cloudflare record to DNS only (grey cloud) so visitors reach Vercel directly. If you must keep the proxy:

  • Use Cloudflare's Full (strict) mode. In Flexible mode Cloudflare connects to Vercel over HTTP, Vercel redirects to HTTPS, and the browser loops with ERR_TOO_MANY_REDIRECTS. Vercel's HTTP to HTTPS redirect cannot be turned off.
  • Let http://example.com/.well-known/acme-challenge/* reach Vercel on port 80 with no redirect, cache, challenge or authentication, or certificate renewals fail.
  • Never cache /.well-known/vercel/*.

The Cloudflare side of these settings is covered in troubleshooting DNS on Cloudflare.

How DNS Panopticon helps

Run Domain Visualizer to see every record the public sees for the domain, which quickly shows a leftover A or AAAA record next to Vercel's. Website Recon identifies the DNS provider, CDN and hosting behind a domain, so it confirms whether traffic reaches Vercel directly or through a proxy. Security Posture grades CAA, DNSSEC, TLS and mail settings, and each finding links to the article that explains it.

FAQ

Which IP address should my apex domain point to on Vercel?

Use the A record value shown for the domain in your project's Settings, under Domains. Vercel assigns addresses per project, so the right value may be 76.76.21.21 or a newer address. A value copied from another project can leave the domain flagged as misconfigured.

Why is my Vercel domain stuck on Invalid Configuration?

Usually the A or CNAME record does not match the value Vercel shows, an old record for the same name is still published, or the record has not reached resolvers yet. Compare dig output with the values in Settings, under Domains, and remove competing A, AAAA and CNAME records.

Can I use Cloudflare in front of a Vercel site?

You can, but Vercel does not recommend it. Setting the Cloudflare record to DNS only avoids most problems. If you keep the proxy, use Full (strict) mode and let the /.well-known/acme-challenge/ path reach Vercel without redirects or caching.

Sources and further reading