DNS and HTTPS Setup for Vercel: What to Do
A practical guide to the DNS records and HTTPS settings a Vercel site needs, with checks for certificates, CAA records, redirects and mixed content.
10 min readUpdated Nov 28, 2026By XPASS Editorial Team

When a site on Vercel works at its default address but fails on your own domain, the cause is almost always one of two layers: DNS, which decides where visitors are sent, or HTTPS, which decides whether the connection is trusted. Both are controlled by a few settings that are easy to get slightly wrong.
This guide explains the DNS records a Vercel project expects, the two ways to manage them, how the certificate is issued and renewed, and how to troubleshoot when something does not turn green. It is written for owners who are comfortable copying values into a form, not for network engineers. For comparison, the same ideas appear in DNS and HTTPS setup for Cloudflare Pages, DNS and HTTPS setup for Netlify and DNS and HTTPS setup for GitHub Pages.
The two layers: DNS and HTTPS
DNS turns a name such as example.com into an answer, usually an IP address, as described in the original RFC 1035. HTTPS is HTTP carried over an encrypted TLS connection, and the browser trusts it only if the server presents a certificate that is valid for that exact name. The Cloudflare overview of HTTPS is a readable introduction.
The two layers depend on each other. A platform can only obtain a certificate for your name after DNS proves that the name points to it. So the order is always the same: first DNS, then the certificate, then the checks on redirects and content. If you jump to the later steps while DNS is still wrong, you will chase problems that are only symptoms.

Which records you need
Open the Domains screen of your project. It lists the records the platform expects. The usual set is small.
| Hostname | Record type | Purpose |
|---|---|---|
| example.com (apex, written as @) | A | Sends the bare domain to the platform |
| www.example.com | CNAME | Sends www to the platform as an alias |
| anything else you serve, such as app.example.com | CNAME | Sends that subdomain to the platform |
Use the exact values from the dashboard. The platform may update its recommended targets over time, so a value in an old tutorial can be out of date. Where your DNS host supports a flattened alias record at the apex (often called ALIAS or ANAME) and the platform recommends it, you may use that instead of the A record.
What not to do
- Do not create a CNAME at the apex next to the SOA and NS records. The DNS standard does not allow it.
- Do not leave two different records of the same kind for one name unless you intend to split traffic.
- Do not delete MX, SPF, DKIM or other TXT records when you tidy the zone. They belong to email and other services, not to the website.
Two ways to manage the zone
You can keep DNS at your current provider and add the records above, or you can change the domain's nameservers to the ones the platform gives you and let it manage the zone.
Keeping DNS where it is is the least disruptive. Only the web records change, everything else stays. It is the right choice when you already run business email or other services on the domain.
Using the platform's nameservers is simple for a new domain with nothing attached. The platform answers all queries, so wildcard certificates become possible, and you manage records inside the platform dashboard. The cost is that you must recreate every other record, especially MX and TXT, before you switch. A missed MX record means lost mail.
Whichever you choose, only one set of nameservers is in charge at a time. Look up the NS records of your domain to find out which one. Edits made anywhere else have no effect.
Propagation and TTL
After you save a change, resolvers around the world still hold the old answer until its time to live (TTL) runs out. You cannot force other people's caches to refresh. What you can do is plan around it.
- Before a planned move, lower the TTL of the existing records a day ahead if your DNS host allows it. Then the old answer expires quickly after the switch.
- After the move, test from more than one network, for example your phone on mobile data and a laptop on Wi-Fi.
- Compare the lookup result with the dashboard value, not with what the browser shows. Browsers cache too.
If the dashboard still says the configuration is invalid after several hours, stop waiting and look for a mistake: a typo, the wrong host, a leftover record or a record at the wrong DNS provider.
How the certificate is issued
Certificates for sites on this kind of platform are normally issued automatically. The platform acts as an ACME client, the protocol defined in RFC 8555, and asks a certificate authority for a certificate. The authority sets a challenge that proves you control the name, and the platform answers it. For an ordinary hostname the proof depends on DNS pointing to the platform. For a wildcard it depends on a DNS record the platform can create itself, which is why nameserver delegation is usually required there.
Once the certificate arrives, the platform serves it for your hostname and starts a renewal cycle so that it is replaced before it expires. You do not upload files and you do not need a separate tool on your computer. If you want to learn how this works in general, Let's Encrypt explains the process in clear terms, though your platform may use a different authority.
The CAA record check
A CAA record is a DNS record that tells the world which certificate authorities are allowed to issue certificates for your domain. Many domains have none, which means any authority may issue. Some security-minded owners and some DNS defaults add one that lists a single authority.
If your zone has a CAA record that does not name the authority your platform uses, the platform's request will be refused and the dashboard may show a certificate error even though DNS is perfect. The fix is to add the right authority to the CAA set, or to remove the record if you do not need it. Check this early, since it is easy to forget about a record created years ago.
Redirects: HTTP to HTTPS and one main address
Two kinds of redirect make a site tidy.
- HTTP to HTTPS. Platforms of this type normally redirect plain HTTP requests to HTTPS once a certificate exists. Test by typing http://example.com in a browser and confirming that it ends up at https://example.com.
- One main hostname. Choose either the bare domain or www and redirect the other to it. Use a permanent redirect, so search engines learn which one is canonical. Set it in the Domains screen rather than in application code when you can, because it is simpler to maintain.
Avoid redirect chains. A visitor who types www and goes through three hops before landing wastes time, and some tools give up on long chains.
Mixed content and other HTTPS warnings
A padlock can be present and still show a warning. The most common reason is mixed content: the page itself loads over HTTPS but refers to an image, script, font or stylesheet using an address that begins with http. Browsers block active content of that kind and may flag the rest.
To find it, open the browser's developer tools, look at the console and network panels, and search for requests that start with http. Replace each with https, or use paths that start with a slash so the browser keeps the current scheme. Also check sitemap files, canonical tags and social sharing metadata, which often keep the old address after a migration.
Another warning appears when the certificate does not cover the name being visited, for example when it was issued for the bare domain but visitors arrive at www. Make sure both names are added to the project and both show as valid.

A plain example
Imagine example.com is registered at one company and its DNS is hosted at the same company. You add example.com and www.example.com in the project's Domains screen. The dashboard asks for an A record at the apex and a CNAME for www.
You open the DNS editor, remove the old A record that pointed to a former host, add the new A record, and add the CNAME. You notice a CAA record that lists a different authority, so you add the platform's authority to the list. You leave MX and TXT records alone. After half an hour you look up both names, see the new values, and refresh the dashboard. Both turn valid, the certificate appears, http redirects to https, and www redirects to the bare domain. A final pass in the browser's console shows one image still using an http address, which you fix.
Troubleshooting checklist
- Which nameservers are authoritative? Make sure you are editing there.
- Do the apex and www records match the dashboard exactly?
- Is there a leftover record for the same name?
- Is there a CAA record that blocks the authority?
- Is a proxy or another CDN in front, hiding the real DNS answer from the validation?
- Has enough time passed for the previous TTL?
- Are both hostnames added to the project?
- Does the page still contain http references?
Work down the list in order. Most cases end at the first or second item.
Limits and what to watch for
- Platform behaviour can change. Recommended values, redirect defaults and certificate rules are the platform's choice. Treat the dashboard and the current documentation as the source of truth.
- Automatic does not mean unattended. Certificates renew by themselves only while the DNS still points to the platform. If you move the domain elsewhere and forget the old setup, renewal will fail.
- HTTPS protects the connection, not the content. It stops others from reading or altering the traffic in transit. It does not make a site trustworthy, and it does not fix a slow or broken page.
- Email is separate. The records for mailboxes are not changed by pointing the website elsewhere, but they are easy to break by accident. If you need professional addresses, see how the domain services and your mail provider fit together before editing the zone.
- Keep a record of changes. Write down what you changed and the old values, so you can roll back quickly.
Summary
A Vercel site needs correct DNS first and HTTPS second. Copy the exact A and CNAME values from the dashboard, or delegate the domain to the platform's nameservers if you are comfortable recreating every other record. Wait for the TTL, check for CAA restrictions, let the platform issue and renew the certificate, then confirm the redirects and clean up mixed content. When something is wrong, work from DNS upward through the checklist.
If you are still choosing or managing the domain behind the site, the domain page is a sensible place to look next.
Frequently asked questions
Which DNS records does a Vercel site need?
Usually an A record for the bare domain and a CNAME record for www, with the exact values copied from the project's Domains screen. Alternatively you can delegate the whole domain to the platform's nameservers.
Do I have to buy or install a certificate for HTTPS?
Normally not. When the DNS records are correct, the platform requests a certificate automatically through the ACME process and renews it before it expires.
What does a CAA record do?
A CAA record lists which certificate authorities may issue certificates for your domain. If it names only other authorities, the platform's request is refused and HTTPS will not be issued until you add the right one or remove the record.
Why do I see a warning even though the padlock is there?
That is usually mixed content: the page loads over HTTPS but pulls an image, script or style from an address that starts with http. Change those references to https and the warning goes away.
Can I use wildcard subdomains?
Wildcard certificates generally require the platform to control the DNS challenge, which in practice means using its nameservers. Check the current documentation for your account before planning around them.
References
About the author

Bob Kanokphon Thongdee
- Founder of XPASS VPN
- Co-founder of eSIMonline.asia
- More than 7 years in online marketing
- Founder of Cojourney Visa and Cojourney Travel
Ready to register your domain?
Search a name, compare extensions and pay once for the years you choose.
.com registration from $18.81 for the first year
Search domainsKeep reading

Domain & DNS Guides
DNS and HTTPS Setup for Cloudflare Pages: What to Do
A technical look at DNS records, proxying, TLS modes, DNSSEC and certificate issuance for a custom domain on Cloudflare Pages, with a troubleshooting table.
10 min read

Domain & DNS Guides
How to Set Up DNS and HTTPS for Netlify
Point a custom domain at a Netlify site, add the correct DNS records and get HTTPS working. A clear walk-through with a worked example and fixes for common problems.
9 min read

Domain & DNS Guides
DNS and HTTPS Setup for GitHub Pages: What to Do
A focused look at the DNS records, propagation checks and HTTPS certificate steps behind a custom domain on GitHub Pages, plus fixes for the usual errors.
10 min read