Back to blog

How to connect Vercel to your own domain

Add the domain in Vercel under Settings and Domains, create an A record for the apex domain and a CNAME for www at your domain provider, and wait until Vercel shows Valid Configuration. The SSL certificate follows on its own, and your email keeps working as long as you leave the MX records alone.

Thiago Andrade7 min read
The three steps at a glance. The IP and CNAME target in the video are examples from the Vercel docs.

What you need

  • A Vercel project that already runs on a .vercel.app address.
  • A domain, for example from Strato, IONOS, GoDaddy or Namecheap. You can also buy it from Vercel, which skips the DNS part.
  • Access to the DNS settings of that domain at your provider.
Diagram: the A record and CNAME at the domain provider point to Vercel, the MX record keeps pointing to the email provider.
The website moves to Vercel, the email stays where it is.

Step 1: Add the domain in Vercel

  1. Open the project in the Vercel dashboard.
  2. In the sidebar, go to Settings and then Domains.
  3. Click Add Existing and enter the domain, for example yourname.com.
  4. Vercel suggests adding www.yourname.com as well and redirecting one address to the other. Accept the suggestion.

Both entries first show Invalid Configuration. That is expected: Vercel is waiting for the DNS records and lists the ones it needs right below.

Vercel Settings and Domains: yourname.com and www.yourname.com with Invalid Configuration and the DNS values they need.
After you add the domain, Vercel shows the DNS values for your project (recreated view).

With or without www?

The address without www is the apex domain. Add both addresses to the project and redirect one to the other, so visitors and search engines see a single version. Vercel recommends www as the primary address because www can point to Vercel with a CNAME, which gives Vercel more routing flexibility than a fixed IP in an A record.

Step 2: Set the DNS records at your provider

There are two ways. The first one is enough for most websites.

Option A: A record and CNAME (recommended)

TypeNameValue
A@ (or blank if your provider does not accept @)The IP Vercel shows for the apex domain
CNAMEwwwThe target Vercel shows for www, for example d1d4fc829fe7bc7c.vercel-dns-017.com.

Copy the values exactly as Vercel shows them in your project. Vercel assigns them per project: many projects show 76.76.21.21, newer ones for example 216.198.79.1, and every project has its own CNAME target. Values from an old guide or another project lead to Invalid Configuration. Copy the trailing dot of the CNAME target too.

Delete any other A and AAAA records for the apex domain, or some visitors will still reach the old server. Vercel does not support IPv6 yet, so there is no AAAA record pointing to Vercel.

Tip: a few hours before the switch, lower the TTL of the old record to 60 seconds. The change then takes effect faster, and you can roll back quickly if something goes wrong.

DNS settings at the provider: old A record crossed out, new A record and CNAME for Vercel, MX record stays.
At the provider: replace the old A record, add a CNAME for www, keep MX (recreated view).

Option B: Switch the nameservers to Vercel

You can also change the nameservers at your provider to ns1.vercel-dns.com and ns2.vercel-dns.com. Vercel then manages all DNS for the domain, which mainly pays off for wildcard domains. Before you switch, recreate every existing record in Vercel, especially MX and TXT for email, or email stops arriving. A nameserver change can take 24 to 48 hours.

Example: Strato

  1. In the customer login, go to Domains and then Domainverwaltung.
  2. Click the gear next to the domain and open the DNS tab.
  3. Next to A-Record, click verwalten, choose Eigene IP-Adresse, enter the IP from Vercel and click Einstellungen übernehmen.
  4. For www, expand the subdomains in the domain overview and select www. If it is missing, create it first. Under DNS-Verwaltung, click verwalten next to CNAME-Record, enter the target from Vercel and save.

Strato only allows CNAME records on subdomains, which is why the apex domain gets the A record. At Strato, a CNAME turns off every other DNS setting of that subdomain. That is fine for www, but not for a subdomain with its own email. Strato says changes can take up to 24 hours to be active everywhere.

Example: GoDaddy

  1. In your Domain Portfolio, select the domain and open DNS.
  2. Edit the existing A record named @ and enter the IP from Vercel. Delete any other A records for @.
  3. Edit the CNAME named www, or create it with Add New Record, and enter the target from Vercel.
  4. Save.

This applies when the domain uses GoDaddy nameservers. Changes usually take effect within an hour and can take up to 48 hours worldwide. IONOS and Namecheap work the same way: in the domain's DNS settings, add an A record for @ and a CNAME for www.

Step 3: Check, wait, done

Single records often show up within minutes, or after hours depending on the old TTL. Settings and Domains then switches to Valid Configuration. Vercel issues a Let's Encrypt SSL certificate automatically, usually within a few minutes. You don't have to do anything for it.

To check the records in a terminal on macOS or Linux:

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

On Windows, use nslookup yourname.com and nslookup www.yourname.com. Without a terminal, Google Public DNS at dns.google works too. The results have to match the values in Vercel.

Email: do not delete the MX records

Your email runs through the domain's MX records, not through the website. If you only change the A record and the www CNAME, email is not affected. When you clean up, don't delete MX records or TXT records such as SPF. If you move the nameservers to Vercel, add MX and TXT in Vercel first. Vercel itself does not offer an email service.

Common errors

Invalid Configuration does not go away

Usually there is still an old A, AAAA or CNAME record for the same name, or the value comes from another project. Compare record by record with Settings and Domains. The Name field only takes @ or www, not the full domain.

The domain is already used by another project or account

A domain belongs to one Vercel account or team at a time. If it sits in another project in the same team, remove it there first. If it belongs to another account, Vercel asks for a TXT record at _vercel to confirm access. Vercel shows the value when you add the domain.

The SSL certificate is not issued (CAA)

If the domain has CAA records that only allow certain certificate authorities, Let's Encrypt has to be one of them: 0 issue "letsencrypt.org". Without CAA records, this problem does not occur.

Only works with or only without www

Both addresses have to be in the project, with one redirecting to the other.

ERR_TOO_MANY_REDIRECTS with Cloudflare

If the domain runs through the Cloudflare proxy, the Flexible SSL mode is a common cause. Set the records for Vercel to DNS only.

Do you have a portfolio built by Beabstracto? This guide shows how to edit and publish it yourself.

Sources: Vercel documentation on domains (Adding & Configuring a Custom Domain, Troubleshooting domains), the Strato FAQ on DNS records and GoDaddy help on A records, as of December 2026.

Frequently asked questions

How long until my own domain works?
Single DNS records take minutes to hours, depending on the old TTL. A nameserver change can take 24 to 48 hours. The SSL certificate usually follows a few minutes after the check passes.
Do I have to transfer the domain to Vercel?
No. The domain stays with your provider. You only change the A record and the www CNAME there.
Will I lose my email when I connect the domain to Vercel?
No, as long as you keep the MX records. Only if you move the nameservers to Vercel do you need to add MX and TXT in Vercel first.

Let's talk

Beabstracto Logo

Optional

Desired service