Black Friday New domains at 5% below our own cost first year · until December 6 · up to 10 domains per account See prices

Connect a domain to Vercel: A record, CNAME and nameserver options

Point your domain at a Vercel project with an A record and www CNAME, or switch to Vercel's nameservers. Steps, verification and fixes for common errors.

Updated By GetNameDot team 5 min read

On this page
  1. Option A or option B?
  2. Step 1: Add the domain in Vercel
  3. Step 2 (option A): Add the records in GetNameDot
  4. Step 2 (option B): Switch to Vercel's nameservers
  5. Step 3: Verify in Vercel
  6. Common errors and fixes
  7. Keep email working

Short answer: add the domain in your Vercel project under Settings → Domains, then point DNS at it. For the root domain (example.com) create an A record with the IP Vercel shows (76.76.21.21 for most projects). For www or any other subdomain create a CNAME with the project-specific target Vercel shows. Alternatively, switch the domain to Vercel's nameservers and let Vercel manage all DNS. Records keep your email and other DNS where they are. Nameservers move everything, so copy your records first.

All Vercel details below come from Vercel's official documentation, checked on 29 October 2026: Adding & Configuring a Custom Domain and Can I use my domain on Vercel with A records?. Vercel changes its interface from time to time, so if a value differs, trust what your project's domain card shows.

Option A or option B?

DNS records (A + CNAME)Vercel nameservers
What changesOnly the website recordsThe whole DNS zone moves to Vercel
Email (MX), SPF, verification TXTStay where they areMust be recreated at Vercel first
Wildcard domains (*.example.com)Needs extra certificate delegationSupported directly
Where you edit DNS afterwardsGetNameDot DNS editorVercel dashboard
Best forMost sites, especially if the domain also has emailProjects that need wildcards or want all DNS in Vercel

Vercel's own warning for option B: before changing nameservers, copy your existing DNS records to Vercel, "including MX records for email and any verification TXT records".

Step 1: Add the domain in Vercel

  1. Open your project in the Vercel dashboard.
  2. Go to Settings → Domains and click Add Domain. You can also use the CLI: vercel domains add example.com [project].
  3. Enter your domain. If you add the apex (example.com), Vercel suggests adding www too and redirecting one to the other.
  4. Vercel now shows a domain card with the records it expects. Keep this tab open.

Vercel notes that Hobby teams can add up to 50 custom domains per project.

Step 2 (option A): Add the records in GetNameDot

Your domain must use our nameservers ("Our DNS") for the editor to work. New domains start on Our DNS. If you switched to custom nameservers earlier, the DNS page tells you so, and you can choose "Restore our DNS" on the domain page.

  1. Sign in, open My domains and click the domain.
  2. Click Manage DNS records.
  3. Remove conflicting records. Delete any existing A, AAAA or CNAME records for @ and for www. Vercel's guidance is to remove AAAA records on the apex.
  4. Add the apex A record:
NameTypeValueTTL
@AIP from the domain card (often 76.76.21.21)1 hour
  1. Add the www CNAME:
NameTypeValueTTL
wwwCNAMETarget from the domain card, e.g. d1d4fc829fe7bc7c.vercel-dns-017.com1 hour

The value above is Vercel's own example. Every project has its own CNAME target, so copy yours exactly.

  1. Click Save DNS records. Saving replaces the record set for the zone with what you see in the editor, so check that your MX and TXT rows are still there before you save.

Tip: the "Preset: point to an IP" button adds an A record for @ and a www CNAME in one click. Replace the placeholder IP with Vercel's value, and replace the www target (your own domain) with Vercel's CNAME target.

Subdomains such as app.example.com work the same way as www. Add a CNAME with the name app and Vercel's target.

Step 2 (option B): Switch to Vercel's nameservers

  1. In Vercel, use the nameserver option on the domain card. Vercel shows the nameservers to copy. Its documentation uses hosts such as ns1.vercel-dns.com and ns2.vercel-dns.com, but enter exactly what your card shows.
  2. Copy your existing records into Vercel first: MX, SPF/DKIM/DMARC TXT, verification TXT, and anything else in the zone. Our DNS page shows all current records.
  3. In GetNameDot, open the domain, choose Custom nameservers, enter Vercel's nameservers and click Save nameservers.
  4. From now on, edit DNS in Vercel. Our DNS editor shows a notice that the domain uses custom nameservers.

If you're moving several domains to Vercel's nameservers, you can change nameservers for up to 50 domains in one action with bulk domain management. Read how to change nameservers for multiple domains for the DNSSEC and record checks to do first.

Step 3: Verify in Vercel

Go back to Settings → Domains. When DNS matches, the domain card shows that the domain is configured correctly, and Vercel issues the certificate. You can check what the world sees with any DNS lookup tool, or with dig example.com A and dig www.example.com CNAME from a terminal.

Domain used by another Vercel account? Vercel then asks you to verify access with a TXT record. It always goes at _vercel on the apex domain (_vercel.example.com). In our editor, add a TXT record with the name _vercel and the value Vercel shows. Several domains on the same apex can each have their own _vercel TXT record.

Redirects: add both example.com and www.example.com to the project and set one to redirect to the other. Vercel recommends the www version as primary in its redirect documentation.

Common errors and fixes

SymptomLikely causeFix
"Invalid Configuration"A conflicting A, AAAA or CNAME record for the same name, or a value copied from another projectDelete the extra records and use the exact values on your domain card
Apex works, www doesn't (or the reverse)Only one hostname added in Vercel, or the www record is missingAdd both in Vercel, add both records, set a redirect
"A CNAME cannot be used on the domain itself (@)" in our editorTrying to put Vercel's CNAME on the rootUse the A record for @ and the CNAME for www
Certificate never issuesA CAA record that doesn't allow Let's EncryptAdd a CAA record allowing it, for example 0 issue "letsencrypt.org" (our editor supports CAA)
Email stopped after switching nameserversMX records not copied to VercelRecreate the MX, SPF and DKIM records in Vercel
Still showing the old siteDNS cacheWait for the old TTL to expire; next time lower the TTL to 5 minutes a day ahead

Wildcard domains. Vercel issues wildcard certificates through DNS challenges, so it recommends the nameserver method for *.example.com. If you keep DNS elsewhere, Vercel documents a workaround: delegate _acme-challenge to Vercel with NS records and add a wildcard CNAME. Our editor includes the NS record type for this kind of subdomain delegation.

Keep email working

Pointing the website at Vercel doesn't touch email as long as you use option A and leave the MX and TXT records alone. If you're setting up email on the same domain, see our guide to Google Workspace DNS records. For a store instead of an app, see connecting a domain to Shopify.

Don't have the domain yet? Search for it on the homepage or check prices on the pricing page.

Frequently asked questions

What A record does Vercel use?

Vercel's documentation says the value is 76.76.21.21 for most projects, but newer projects can get a different IP from a pool. Vercel calls the domain card in your project's Domains settings the source of truth, so always copy the value shown there.

Can I use a CNAME on the root domain for Vercel?

Not in a standard DNS zone. A CNAME at the zone apex conflicts with the zone's own NS and SOA records, which is why Vercel asks for an A record on the apex and a CNAME on subdomains such as www. GetNameDot's DNS editor blocks a CNAME on @ for the same reason.

Should I use Vercel's nameservers or DNS records?

Use records (A and CNAME) if you want to keep email and other DNS where it is. Use Vercel's nameservers if you want Vercel to manage the whole zone or need a wildcard domain. Before switching nameservers, copy every existing record, especially MX and verification TXT records.

Why does Vercel say Invalid Configuration?

Usually because another A, AAAA or CNAME record exists for the same hostname, or because the record values don't match what the project shows. Remove the conflicting records, copy the exact values from the domain card, and wait for DNS to update.

How long does it take for a Vercel domain to work?

Often minutes, sometimes longer, depending on DNS caching. In GetNameDot's editor, saved records usually propagate within minutes, up to the TTL of the old records. Lowering the TTL to 5 minutes a day before the change makes the switch faster.