Session 4Bonus

How to Verify Your Custom Domain in Resend

Right now your lead magnet emails send from onboarding@resend.dev and can only reach your own inbox. After this homework, your emails will come from your own domain and reach anyone. About 15 minutes.

Before (right now)

  • Emails come from onboarding@resend.dev
  • Often lands in spam
  • Can only send to your own email

After (15 minutes from now)

  • Emails come from hello@yourdomain.com
  • Lands in the inbox
  • Can send to anyone

What You Need Before Starting

  • 1.A domain you own (the one you set up in the session, or any domain you control)
  • 2.The ability to log in to your domain registrar (Porkbun, GoDaddy, Namecheap, Cloudflare, Wix, etc.)
  • 3.Claude Code open in your project folder

Walkthrough Video

Hit play and the video will stick to the top as you scroll.

1

Ask Claude Code to get your DNS records

You do not need to go to the Resend dashboard. Claude Code can do everything for you. Open Claude Code in your project folder and paste this:

Paste into Claude Code
Edit before copying

Pro Tip

If Claude does not have your Resend API key, paste it in first: My Resend API key is re_xxxx

Claude will register your domain with Resend and give you back 3 DNS records along with instructions for your specific registrar. Follow those instructions to add each record.

2

Understand the 3 records you need to add

Claude will show you 3 records. Here is what each one looks like and does so you know what you are pasting. You will add these in your registrar (Porkbun, GoDaddy, etc.) the same way you added DNS records for Vercel.

1

DKIM Record (TXT)

Unique to you

This proves to email providers that you own the domain. The value is a long string that Claude will give you. It is different for every person. Do not copy someone else's.

Type

TXT

Host / Name

resend._domainkey

TTL

Auto

Value (Claude will give you yours)

Copy this and paste it into the Value field

p=MIGf... (your unique key from Claude — do not use this example)

This is just an example. Copy the actual value Claude gives you.

2

SPF Record (MX)

Same for everyone

This tells email providers which server is allowed to send email for your domain. These values are the same for everyone.

Type

MX

Host / Name

send

TTL

Auto

Priority

10

Value — copy this exactly

Copy this and paste it into the Value field

feedback-smtp.us-east-1.amazonses.com
3

SPF Record (TXT)

Same for everyone

This is a second layer of verification. Also the same for everyone.

Type

TXT

Host / Name

send

TTL

Auto

Value — copy this exactly

Copy this and paste it into the Value field

v=spf1 include:amazonses.com ~all

Heads Up

Do not delete any of your existing DNS records (like the A and CNAME records from Vercel). You are adding 3 new records alongside the ones you already have.
3

Add the records in your registrar

Claude will give you step-by-step instructions for your specific registrar. If you need a refresher, click your registrar below for a walkthrough:

Account > Domain Management > find your domain > DNS

My Products > Domains > click your domain > DNS > Manage

Domain List > Manage > Advanced DNS tab

Select your domain > DNS tab on the left

Settings > Domains > click your domain > DNS Records

Squarespace DomainsDNS walkthrough →

domains.squarespace.com > select domain > DNS tab

Domains > Zone Editor > select your domain

For each record, you will fill in these fields in your registrar:

  1. Type — select TXT or MX from the dropdown
  2. Host / Name — paste the host value (like resend._domainkey or send)
  3. Value / Answer — paste the full value from the record card above
  4. TTL — leave as Auto or set to 600
  5. Priority — only needed for the MX record. Set it to 10

Click Save after each record. You should have 3 new records when you are done.

Note

Common mistake: some registrars automatically append your domain to the Host field. If your registrar does this, enter just resend._domainkey (not resend._domainkey.yourdomain.com). The registrar adds the domain part for you.
4

Wait for verification (1 minute to a few hours)

DNS changes take time to spread across the internet. Usually 1 to 5 minutes, sometimes up to a few hours. You can ask Claude Code to check for you:

Paste into Claude Code
Check if my domain is verified in Resend yet.

You can also check yourself at resend.com/domains. Look for a green Verified badge next to your domain.

Not verified after an hour?

Ask Claude Code for help:

Paste into Claude Code
My Resend domain verification is not working. Can you check what DNS records are currently set up for my domain and compare them to what Resend expects? Tell me what is wrong and how to fix it.
5

Update your email to send from your domain

Once verified, tell Claude Code to switch your email sender address:

Paste into Claude Code
Edit before copying

Pro Tip

You can use any name and any address at your domain. Common choices: hello@, joe@, or team@. You do not need to create a mailbox for this address. Resend sends on your behalf.
6

Test it with a real email

Make sure everything works end to end:

  1. Go to your lead magnet page
  2. Submit the form with a different email address (not your Resend account email). Try a friend or family member's email, or a second email you own.
  3. Check that inbox. The email should arrive from your domain, not from onboarding@resend.dev
  4. Make sure it lands in the inbox, not spam
  5. Check your Supabase Table Editor to confirm the new subscriber row appeared

You are done

Your lead magnet is fully functional. Anyone can sign up, and they will get an email from your own domain with your resource. Share your link and start collecting leads.

Already Use Another Email Service?

If you already have an account with SendGrid, Brevo (formerly Sendinblue), Postmark, or another email provider, you can use that instead of Resend. The logic is the same. Just ask Claude Code:

Paste into Claude Code
Edit before copying

Claude will handle the code changes. You may still need to verify your domain in that service to avoid spam filters.