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.
On this page
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 changes | Only the website records | The whole DNS zone moves to Vercel |
| Email (MX), SPF, verification TXT | Stay where they are | Must be recreated at Vercel first |
Wildcard domains (*.example.com) | Needs extra certificate delegation | Supported directly |
| Where you edit DNS afterwards | GetNameDot DNS editor | Vercel dashboard |
| Best for | Most sites, especially if the domain also has email | Projects 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
- Open your project in the Vercel dashboard.
- Go to Settings → Domains and click Add Domain. You can also use the CLI:
vercel domains add example.com [project]. - Enter your domain. If you add the apex (
example.com), Vercel suggests addingwwwtoo and redirecting one to the other. - 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.
- Sign in, open My domains and click the domain.
- Click Manage DNS records.
- Remove conflicting records. Delete any existing A, AAAA or CNAME records for
@and forwww. Vercel's guidance is to remove AAAA records on the apex. - Add the apex A record:
| Name | Type | Value | TTL |
|---|---|---|---|
@ | A | IP from the domain card (often 76.76.21.21) | 1 hour |
- Add the www CNAME:
| Name | Type | Value | TTL |
|---|---|---|---|
www | CNAME | Target from the domain card, e.g. d1d4fc829fe7bc7c.vercel-dns-017.com | 1 hour |
The value above is Vercel's own example. Every project has its own CNAME target, so copy yours exactly.
- 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
- 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.comandns2.vercel-dns.com, but enter exactly what your card shows. - 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.
- In GetNameDot, open the domain, choose Custom nameservers, enter Vercel's nameservers and click Save nameservers.
- 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
| Symptom | Likely cause | Fix |
|---|---|---|
| "Invalid Configuration" | A conflicting A, AAAA or CNAME record for the same name, or a value copied from another project | Delete 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 missing | Add both in Vercel, add both records, set a redirect |
| "A CNAME cannot be used on the domain itself (@)" in our editor | Trying to put Vercel's CNAME on the root | Use the A record for @ and the CNAME for www |
| Certificate never issues | A CAA record that doesn't allow Let's Encrypt | Add a CAA record allowing it, for example 0 issue "letsencrypt.org" (our editor supports CAA) |
| Email stopped after switching nameservers | MX records not copied to Vercel | Recreate the MX, SPF and DKIM records in Vercel |
| Still showing the old site | DNS cache | Wait 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.