Vercel custom domain shows "Invalid Configuration"

On this page

Short answer

Vercel can't find the DNS records it expects for your domain. Check for a missing record, a value copied from another project, or an old A, AAAA or CNAME record that is still there. Copy the exact values from Settings → Domains in your project, delete the conflicting records at your DNS provider, and wait for DNS to update.

Deploy Without Errors Pack

Environment variables on Vercel, Netlify and Replit, SPA refresh rewrites, npm peer dependency errors and domain setup.

See what’s inside

Secure checkout by Stripe

One-time payment through Stripe. Priced in USD. Local taxes such as UK VAT may be added at checkout.

The exact error you'll see

The domain's status in Settings → Domains:

Invalid Configuration

Source: https://vercel.com/docs/domains/troubleshooting (opens in a new tab)

When you add a domain that another account already uses:

Another Vercel account is using this domain

Source: https://vercel.com/docs/domains/troubleshooting (opens in a new tab)

A record that points at a different Vercel address than your project's, such as one copied from another project, can show this status instead:

DNS Change Recommended

Source: https://vercel.com/docs/domains/troubleshooting (opens in a new tab)

Applies to

  • Vercel projects (including v0 and Cursor deploys) with a custom domain bought from another registrar (GoDaddy, Namecheap, Cloudflare and so on)
  • Apex domains (example.com), which need an A record; subdomains (www, app), which need a CNAME
  • The place to check: your project's Settings → Domains

Why it happens

Vercel's troubleshooting page lists these causes:

  • The DNS records were never added at your DNS provider.
  • The domain is in use by another Vercel account, so Vercel asks for a TXT record to verify access.
  • The SSL certificate couldn't be generated. Vercel says "the most common reason for this is missing CAA records."
  • Wildcard subdomains are set up, but Vercel can't manage their DNS challenges.

The add-a-domain page adds one more: "conflicting A, AAAA, or CNAME records for the same hostname."

How to fix it, step by step

  1. In Vercel, open the project, then Settings → Domains, and click the domain. Copy the record values shown there.
  2. At your DNS provider, for the apex domain, add an A record with name @ (or blank) and the value Vercel shows. Many projects show 76.76.21.21, but newer projects can show a different address, such as 216.198.79.1. Use yours.
  3. For www or another subdomain, add a CNAME to the target Vercel shows, such as d1d4fc829fe7bc7c.vercel-dns-017.com. Copy it exactly, including any trailing period.
  4. Delete every other A or AAAA record on the apex, and any old CNAME on the subdomain.
  5. If you have CAA records, make sure they allow Let's Encrypt: 0 issue "letsencrypt.org".
  6. If the domain belongs to another Vercel account, add the TXT record Vercel shows. It is always at _vercel on the apex.
  7. Wait for DNS to update, then recheck in Settings → Domains.

What the docs don't spell out

  • Old tutorials can cause this. Vercel assigns the A value per project. Using an address "copied from another project or an older guide" can produce exactly this status. Always copy the value from your own dashboard. (Troubleshooting (opens in a new tab))
  • AAAA records conflict. Vercel says it doesn't support IPv6 yet for domains from a third-party provider, so a leftover AAAA record from a parking page is a conflict, not a backup. (Troubleshooting (opens in a new tab))
  • Switching nameservers takes longer than changing records. Vercel says record changes "typically propagate quicker," while nameserver changes "can take up to 24–48 hours." If you're in a hurry, change the A or CNAME record instead. (Troubleshooting (opens in a new tab))

How to check it worked

Run the checks Vercel gives:

dig A example.com +short
dig CNAME www.example.com +short
curl -IL https://example.com

The dig results should match the values in Settings → Domains. The curl should finish over HTTPS on your primary domain. In Vercel, the domain no longer shows Invalid Configuration.

Sources

  1. https://vercel.com/docs/domains/troubleshooting (opens in a new tab): Invalid Configuration causes, per-project A values, AAAA/IPv6, propagation times, error texts, CAA, dig commands
  2. https://vercel.com/docs/domains/working-with-domains/add-a-domain (opens in a new tab): A for apex, CNAME for subdomains, TXT at _vercel, conflicting-records symptom, settings path

Tool to consider: Vercel.

Deploy Without Errors Pack

Environment variables on Vercel, Netlify and Replit, SPA refresh rewrites, npm peer dependency errors and domain setup.

See what’s inside

Secure checkout by Stripe

One-time payment through Stripe. Priced in USD. Local taxes such as UK VAT may be added at checkout.