What it does
Your domainis your identity online — it's the address people type to find you and the name that appears in every email you send. This guide covers registering a domain, pointing it to Vercel for hosting, setting up professional email with Google Workspace, and configuring the authentication records (SPF, DKIM, DMARC) that keep your emails out of spam folders.
DNS is the routing system that connects your domain to every service in your stack. It tells the internet where your website lives, where to deliver your email, and which servers are authorized to send messages on your behalf. Email authentication records(SPF, DKIM, DMARC) are the proof that you're legitimate — without them, email providers have no way to distinguish your messages from spam or phishing attempts.
Why we use it
A custom domain builds trust instantly. yourname.com looks professional. hello@yourname.combuilds credibility with customers in a way that a personal Gmail never will. Proper DNS setup ensures your site loads fast through Vercel's edge network, and email authentication records ensure your messages actually reach inboxes instead of landing in spam.
Every other service in your stack depends on your domain. Vercel serves your site on it. Resend sends transactional email from it. Google Workspacehandles incoming mail for it. Get this right once and everything downstream just works — get it wrong and you'll be debugging DNS issues across every service you set up.
Setup checklist
Choose your domain name
Keep it short, memorable, and easy to spell. Check availability on Namecheap, Cloudflare Registrar, or GoDaddy. .comis the standard expectation for most customers — it's what people type by default. .devworks well for tech products. Avoid hyphens and numbers — they're hard to communicate verbally and easy to mistype.
Budget about $12/yearfor a standard .com. Premium domains cost more but rarely justify the price for a new product. If your exact name is taken, try adding "get" or "use" as a prefix (getproductname.com, useproductname.com) before resorting to a different TLD.
Register the domain
Namecheap and Cloudflare Registrar are the cheapest options — both charge at-cost with no markup. GoDaddy works but tends to upsell aggressively during checkout. Whichever registrar you choose, enable WHOIS privacy(usually free) so your personal address and phone number aren't publicly visible in domain lookup databases.
Turn on auto-renewalimmediately so you don't accidentally lose your domain when it expires. Expired domains get snatched by squatters within hours. Save your registrar login credentials somewhere secure — a password manager, not a sticky note. Losing access to your registrar account is one of the hardest problems to recover from.
Point DNS to Vercel
In your registrar's DNS settings, add two records. An A record with the host set to @ (your root domain) pointing to 76.76.21.21 — this is Vercel's IP address. Then a CNAME record with the host set to www pointing to cname.vercel-dns.com.
Next, go to your Vercel project: Settings > Domains > Add your domain. Vercel will check your DNS records, verify ownership, and provision an SSL certificateautomatically — no extra configuration needed. DNS propagation typically takes 5–60 minutes, but can occasionally take up to 48 hours. You can check propagation status at dnschecker.org.
Configure www redirect
In Vercel's domain settings, set either www or non-www as your primary domain. Vercel handles the redirect from one to the other automatically. Most people prefer non-www ( yourdomain.com) because it's shorter and cleaner. Pick one and be consistent — having both versions active without a redirect splits your SEO authority between two URLs.
Set up Google Workspace
Go to workspace.google.com and sign up for the Business Starter plan ($7/mo). This gives you professional email, Google Drive, Calendar, and Meet under your domain. Enter your domain name during the setup flow — Google will guide you through verifying ownership.
Here's the key insight: you only need one Google Workspace subscription ever. When you launch additional products with different domains later, you add those domains as aliases to your existing account. All mail routes to one inbox. You don't pay for extra seats or extra subscriptions unless you hire people who need their own accounts.
Configure Google Workspace DNS records
Google provides you with MX recordsto add at your registrar. These tell email servers around the world where to deliver mail addressed to your domain. You'll typically add 5 MX recordswith different priority values — this creates redundancy so email delivery doesn't fail if one server is down.
Google also provides a TXT verification record that proves you own the domain. Add this to your DNS as well. Once the MX records propagate (usually 5–30 minutes), send yourself a test email from a different account to confirm delivery is working. Check both the inbox and spam folder.
Set up email aliases
In Google Admin > Users > your account > Email aliases, add aliases for the different addresses you want to use: hello@, support@, billing@. All of these route to your single inbox. No extra cost, no extra accounts.
When you reply to an email, Gmail lets you choose which "from" addressto send from. A customer who emails support@yourdomain.com gets a reply from that same address, not your personal account. Later, when you add additional domains, you can add those as aliases too — hello@domain1.com, support@domain2.com, all from one inbox, one subscription.
Configure SPF record
SPF (Sender Policy Framework) tells receiving email servers which mail servers are authorized to send email on behalf of your domain. Without it, anyone could send email pretending to be you, and legitimate email from your domain gets flagged as suspicious.
Add a TXT record at your registrar with the host set to @ and the value: v=spf1 include:_spf.google.com include:amazonses.com ~all. The include:_spf.google.com part authorizes Google Workspace to send on your behalf. The include:amazonses.com part authorizes Resend (which uses Amazon SES under the hood) for transactional emails. The ~all tells receivers to soft-fail anything not from those servers.
Configure DKIM
DKIM (DomainKeys Identified Mail) adds a cryptographic signatureto every email you send. Receiving servers use this signature to verify the email hasn't been tampered with in transit and actually came from your domain. It's like a wax seal on a letter.
In Google Workspace, go to Admin > Apps > Google Workspace > Gmail > Authenticate email. Click Generate new record. Google gives you a TXT record with a long string of characters — this is your public DKIM key. Add it to your DNS at the host Google specifies (usually google._domainkey). After DNS propagation, go back to Google Admin and click Start authentication.
Configure DMARC
DMARC (Domain-based Message Authentication, Reporting, and Conformance) ties SPF and DKIM together. It tells receiving servers what to dowith emails that fail SPF and DKIM checks — let them through, quarantine them, or reject them outright. It also sends you reports so you can monitor who is sending email using your domain.
Add a TXT record with the host set to _dmarc and the value: v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com. Start with p=none(monitor only) — this collects reports without affecting delivery. After a few weeks of clean reports confirming only your legitimate servers are sending email, change to p=quarantine(suspicious emails go to spam). Once you're fully confident, move to p=reject (unauthorized emails are blocked entirely).
Pro tips
Use one registrar for everything— register all your domains with the same registrar for easier management. Cloudflare Registrar offers at-cost pricing with no markup.
Set up a group alias early— create a Google Workspace group alias (e.g., team@yourdomain.com) even as a solo founder. It lets you add collaborators later without changing public-facing addresses.
Use Cloudflare DNS— even if you registered elsewhere, Cloudflare's DNS is the fastest globally and offers free DDoS protection. Just change your nameservers at the registrar.
Keep a DNS records spreadsheet— when you add services (Resend, Vercel, Google), document every record you added and why. Future you will thank you when debugging deliverability issues.
DNS records summary
DNS Records Summary for yourdomain.com: # Vercel (hosting) A @ 76.76.21.21 CNAME www cname.vercel-dns.com # Google Workspace (email) MX @ 1 aspmx.l.google.com MX @ 5 alt1.aspmx.l.google.com MX @ 5 alt2.aspmx.l.google.com MX @ 10 alt3.aspmx.l.google.com MX @ 10 alt4.aspmx.l.google.com TXT @ v=spf1 include:_spf.google.com include:amazonses.com ~all # Email authentication TXT google._domainkey (DKIM key from Google Admin) TXT _dmarc v=DMARC1; p=quarantine; rua=mailto:dmarc@yourdomain.com # Resend (transactional email) TXT (records provided by Resend during domain verification)
AI prompt to get started
I just registered [yourdomain.com]. Help me set up all the DNS records I need for: 1) Vercel hosting (A + CNAME), 2) Google Workspace email (MX + verification), 3) SPF, DKIM, and DMARC for email deliverability, 4) Resend domain verification. Give me the exact records to add.
Mistakes to avoid
- ✕Not enabling WHOIS privacy — your personal address and phone number will be public in domain lookup databases
- ✕Skipping email authentication (SPF/DKIM/DMARC) — your emails will land in spam or get rejected entirely by major providers
- ✕Buying domains before validating your idea — a domain is cheap, but the habit of buying-before-validating is expensive and distracting
- ✕Setting DMARC to p=reject immediately — start with p=none to monitor, then p=quarantine, then p=reject after you’re confident everything is clean
- ✕Not saving registrar credentials securely — losing access to your domain registrar is a nightmare that can take weeks to resolve
- ✕Using your registrar’s built-in email hosting — it’s always worse than Google Workspace in reliability, spam filtering, and features