Domain Configuration
What Is a Domain?
Your site is deployed on Vercel with a default domain like your-project.vercel.app. It works, but if you're building a real product, you need your own domain.
A domain is the address users type in the browser — like google.com or github.com. With your own domain, your product looks like an actual product, not a "demo."
Your own domain also helps with SEO. Search engines treat .vercel.app and similar free subdomains as temporary projects, giving them lower ranking weight than independent domains.
There's also a practical benefit: brand trust. Users naturally feel more confident about a product with its own domain. chatgpt.com and chatgpt.vercel.app feel completely different, right?
Domain Naming Tips
Good domains are scarce, but there are ways to find decent ones.
Start from your product's function. What does your product do? List keywords for core features and try various combinations. For an AI translation tool, try transai.com, ai-translate.com, fanyi.ai, etc.
Use AI to brainstorm. Tell ChatGPT or Claude: "My product is xxx, suggest 20 domain names — short, memorable, and brandable." The names AI suggests might not all be available, but they'll give you plenty of inspiration.
Invent new words. Many successful brands use made-up words: Google, Spotify, Notion, Figma. You can combine two words or take a variant of one. Like Code + Spark = Codespark, Write + ly = Writey.
Check availability. Type your desired domain into Cloudflare or Namecheap's search box — it'll tell you if it's registered and suggest similar available domains.
Don't overthink it. Domains matter, but not as much as you think. The product itself matters ten thousand times more. Pick something decent and start using it. You can always change later — there's some SEO cost, but it's better than stalling forever.
Practical tips:
- Keep it short. Shorter is better — ideally under 15 characters. Users should be able to remember and spell it correctly
- Avoid hyphens and numbers.
my-tool.comis worse thanmytool.com— users easily forget the dash. Numbers are confusing too — is it2ortwo? - Check social media. Got the domain, but the matching Twitter/GitHub handle is taken? Check ahead of time and try to keep your brand consistent
- Pick the right extension.
.comis most universal, but.app,.dev,.aiare also good. The.aiextension is hot right now — using it for AI products conveys instant credibility
Domain Registrar Comparison
The place where you buy domains is called a "registrar." Here are the most popular ones:
| Registrar | .com Annual Fee (approx.) | Free WHOIS Privacy | CDN/SSL | Best For |
|---|---|---|---|---|
| Cloudflare Registrar | $10 | ✅ Built-in | ✅ Built-in | Top recommendation — transparent pricing, no markups |
| Namecheap | $10 (first year often $6 promo) | ✅ Free first year | ❌ Separate setup | Beginner-friendly, good interface |
| GoDaddy | $15-20 | ❌ Paid | ❌ Separate setup | Not recommended — expensive renewals, dark patterns |
| Alibaba Cloud | ¥65 (first year) | ✅ | ✅ | China market, requires ICP registration |
| Tencent Cloud | ¥65 (first year) | ✅ | ✅ | China market, good Tencent ecosystem integration |
| Google Domains (migrated to Squarespace) | $12 | ✅ | ❌ Separate setup | Clean interface, Google ecosystem integration |
My recommendation:
- For global markets → Cloudflare Registrar, no contest. Lowest price, built-in CDN and SSL, one-stop solution
- For China market → Alibaba Cloud — the ICP registration process is smoothest there
- Want convenience → Any registrar works. You can transfer domains to another registrar at any time (though there's a 60-day unlock wait period)
WHOIS Privacy Protection
Something easy to overlook when buying a domain: WHOIS privacy.
WHOIS is a public domain info lookup system. Anyone querying your domain can see the registrant's name, email, phone, and address — unless you enable WHOIS privacy protection.
Once enabled, this info is replaced with the registrar's proxy details, protecting your personal privacy. Cloudflare and Namecheap offer this for free by default. GoDaddy charges extra — yet another reason not to use them.
Always enable it. Otherwise your inbox will be flooded with spam — website building services, SEO optimization pitches, and more.
A Records vs CNAME Records
You've got a domain. Now how do you point it to your Vercel project? You need to understand two basic DNS records.
A Records
An A record's purpose: point a domain directly to an IP address.
Like telling a friend: "I live at 123 Main Street" — a precise address.
For example, Vercel will ask you to add an A record:
Type: A
Name: @ (@ means root domain, e.g., yourdomain.com)
Value: 76.76.21.21 (Vercel's IP address)
TTL: Auto
CNAME Records
A CNAME record's purpose: point one domain to another domain.
Like telling a friend: "Ask John — he knows where I live." An indirect pointer.
For example, Vercel will ask you to add a CNAME for the www subdomain:
Type: CNAME
Name: www (means www.yourdomain.com)
Value: cname.vercel-dns.com
TTL: Auto
When to Use Which?
| Scenario | Record Type | Example |
|---|---|---|
Root domain (yourdomain.com) pointing to IP | A record | yourdomain.com → 76.76.21.21 |
| Subdomain pointing to another domain | CNAME record | www.yourdomain.com → cname.vercel-dns.com |
| Subdomain pointing to another service | CNAME record | api.yourdomain.com → api-service.com |
Why can't root domains use CNAME? Due to a DNS protocol technical limitation, a CNAME on the root domain conflicts with other records (like MX mail records). So root domains must use A records pointing to IP addresses. However, Cloudflare offers a feature called "CNAME Flattening" that bypasses this limitation — another reason to recommend Cloudflare.
Connecting a Domain to Vercel (Step-by-Step)
Alright, theory done — let's look at the actual steps.
Step 1: Add Domain in Vercel
- Log into vercel.com, go to your project
- Click Settings → Domains on the left
- Enter your domain in the input box, e.g.,
yourdomain.com - Click Add
- Vercel will show the DNS records needed — screenshot or note this page
📸 Screenshot note: Vercel's Domains page shows two record requirements — an A record pointing to
76.76.21.21and a CNAME record pointingwwwtocname.vercel-dns.com. The page bottom shows verification status.
Step 2: Configure DNS at Your Registrar
Using Cloudflare as an example:
- Log into cloudflare.com, go to your domain
- Click DNS → Records on the left
- Click Add record to add the A record:
- Type:
A - Name:
@ - IPv4 address:
76.76.21.21 - Proxy status: DNS only (gray cloud, don't enable orange proxy)
- Click Save
- Type:
- Click Add record again for the CNAME:
- Type:
CNAME - Name:
www - Target:
cname.vercel-dns.com - Proxy status: DNS only
- Click Save
- Type:
📸 Screenshot note: Cloudflare's DNS Records page is a table showing each DNS record. After adding, you should see two new records: one A record and one CNAME record.
Step 3: Wait for Propagation
Go back to Vercel's Domains page. Wait a few minutes and the page will auto-refresh to show verification status. If everything's correct, you'll see a green ✅ checkmark.
Common issues:
- Stuck on "Pending"? DNS propagation can take anywhere from a few minutes to 48 hours. Usually resolves within 10 minutes. If it's been over an hour, double-check your records for typos
- Shows "Invalid Configuration"? Most likely a wrong record value — go back and verify carefully
- Should I enable Cloudflare proxy? No! Vercel has its own CDN. Adding another Cloudflare proxy layer can cause issues. Keep it in DNS-only mode
SSL Certificates: The Security Lock
Have you noticed that many websites now show a small lock 🔒 in the address bar? That means the site uses HTTPS encryption.
HTTP vs HTTPS
- HTTP: Data transmitted in plain text. Passwords and personal info you enter on the site can be intercepted
- HTTPS: Data transmitted encrypted. Even if intercepted, it's just gibberish
All major browsers now show "Not Secure" warnings for HTTP sites, and Chrome even displays a red warning page. So HTTPS isn't optional — it's mandatory.
What Is an SSL Certificate?
HTTPS relies on SSL/TLS certificates. They serve two purposes:
- Encrypted communication: Ensures data between you and the server can't be eavesdropped
- Identity verification: Ensures you're visiting the real site, not a phishing one
Getting SSL certificates used to be a hassle — paying for them (hundreds to thousands per year), manually installing them on servers, manually renewing when they expired. Let's Encrypt made them free, but you still had to configure them yourself.
Now it's completely hands-off. Both Vercel and Cloudflare automatically request and renew SSL certificates for you. After connecting your domain, Vercel will automatically configure SSL within minutes.
If the browser shows "Not Secure," it's probably:
- DNS hasn't propagated yet — wait a bit
- DNS records are misconfigured — go back and check
- Browser cached an old state — force refresh (Ctrl+Shift+R)
Using Subdomains
Besides www.yourdomain.com, you can create various subdomains to organize different services:
| Subdomain | Purpose | Example |
|---|---|---|
www | Main site | www.yourdomain.com |
api | Backend API | api.yourdomain.com |
docs | Documentation | docs.yourdomain.com |
blog | Blog | blog.yourdomain.com |
app | Web app | app.yourdomain.com |
staging | Test environment | staging.yourdomain.com |
cdn | Static assets | cdn.yourdomain.com |
status | Status page | status.yourdomain.com |
In Vercel, each subdomain can point to a different project. Your main site might be in one Vercel project, API in another, docs in yet another — subdomains organize them under one brand.
Adding a subdomain works the same as adding a main domain: enter api.yourdomain.com in Vercel project Settings → Domains, then add a CNAME record at your DNS manager pointing api to cname.vercel-dns.com.
Domain Transfers
If you want to move your domain from one registrar to another (e.g., from GoDaddy to Cloudflare), here's the process:
- Unlock the domain at the current registrar and get the transfer authorization code (Auth Code)
- Initiate the transfer at the new registrar and enter the authorization code
- Confirm the transfer email
- Wait for the transfer to complete (typically 5-7 days)
Note: Newly registered domains must wait 60 days before transferring — this is an ICANN requirement.
After transfer, DNS records need to be reconfigured. Screenshot your existing DNS records before transferring, then re-add them at the new registrar.
Chapter Summary
Domain configuration looks like a lot of steps, but it comes down to three things:
- Buy a domain (recommended: Cloudflare Registrar)
- Configure DNS records (one A record + one CNAME)
- Wait for Vercel to auto-configure SSL
These three steps give your product a professional domain and secure HTTPS access. The whole process doesn't take much time, but the boost to your product's professionalism is enormous.