Hi, I'm Rahul. I'm documenting what I learn while building products.

3 Things to Set Up After Buying a Domain

Separate your website, app, email, and search setup properly from the start.

If you just bought a domain for your website, there are three things I'd set up next.

Want your coding agent to guide you?

Replace the details below, copy the prompt, and work through the setup one step at a time.

Help me set up my new domain correctly.

My domain:
[YOUR DOMAIN]

My website is hosted on:
[WEBSITE HOST]

My app is hosted on:
[APP HOST]

My email provider is:
[EMAIL PROVIDER]

Guide me through these three tasks:

1. Connect my main domain to my public website and use app.[YOUR DOMAIN] for my product.

2. Set up notifications.[YOUR DOMAIN] for important app emails and updates.[YOUR DOMAIN] for marketing emails. Help me configure SPF, DKIM, and DMARC correctly.

3. Check or create my sitemap, connect the domain to Google Search Console, and submit the sitemap.

Before suggesting changes, inspect any relevant project configuration you can access.

Guide me through one step at a time and wait for me to confirm before continuing.

Never guess DNS records. Tell me exactly where to find the values supplied by my hosting or email provider.

Do not overwrite an existing DNS or DMARC record without first explaining what it currently does and asking for confirmation.

If you cannot access my domain provider or another service, tell me exactly where to click and what information to copy back to you.

Step 1 of 3

Separate your main domain and subdomain

Use your main domain for the website and a subdomain for the actual app. This keeps your public website and product separate.

yourdomain.comWebsite
app.yourdomain.comApp

How to set it up

  1. Go to wherever your app is hosted.
  2. Add app.yourdomain.com as a custom domain.
  3. Your hosting provider will give you a DNS record.
  4. Go to your domain provider's DNS settings.
  5. Add the record exactly as your hosting provider gives it to you.
  6. Wait for it to verify.

Always use the DNS values provided by your hosting provider. Do not guess them.

Step 2 of 3

Separate your app emails and marketing emails

Do not send every email from the same domain. Keeping product and marketing emails separate helps protect important messages if marketing emails ever have deliverability or spam issues.

notifications.yourdomain.comApp emails
updates.yourdomain.comMarketing emails

Important app emails

Use notifications.yourdomain.com for sign-ups, password resets, billing, and account notifications.

Marketing emails

Use updates.yourdomain.com for newsletters, promotions, product updates, and marketing campaigns.

How to set it up with Resend

  1. Open Resend and go to Domains.
  2. Add notifications.yourdomain.com.
  3. Copy the DNS records Resend provides into your domain provider's DNS settings.
  4. Wait for Resend to verify the domain.
  5. Repeat the same process for updates.yourdomain.com.

Resend will normally ask you to configure SPF and DKIM. You should also configure DMARC for your domain.

If a DMARC record already exists, do not overwrite it without checking your existing email setup first.

Step 3 of 3

Set up your sitemap and Google Search Console

Your sitemap helps Google discover the public pages on your website.

First, check if you already have one

https://yourdomain.com/sitemap.xml

Some website builders and frameworks create this automatically. If it already exists, you can use it.

If it does not exist, create one that includes important public pages such as your homepage, pricing, features, about page, blog posts, and public documentation.

Do not include private pages such as dashboards, account settings, admin pages, or anything that requires a login.

If your website is built with code, ask your coding agent to create and maintain the sitemap automatically.

Connect Google Search Console

  1. Open Google Search Console and click Add Property.
  2. Choose Domain.
  3. Enter yourdomain.com without https://.
  4. Add Google's DNS verification record to your domain's DNS settings.
  5. Return to Google Search Console and verify the domain.

Submit your sitemap

  1. Open Sitemaps.
  2. Enter sitemap.xml.
  3. Click Submit.

Submitting a sitemap does not guarantee that every page will immediately appear on Google, but it helps Google find and crawl your public pages.

Final setup

yourdomain.comMain website
app.yourdomain.comActual app
notifications.yourdomain.comImportant app emails
updates.yourdomain.comMarketing emails
yourdomain.com/sitemap.xmlPublic pages for Google

Final checklist

0 of 10 completed

Once these are set up, your website, app, email, and Google indexing are all separated properly from the start.