Skip to main content
Vibe Code Forum

Article: Domains, DNS and hosting: how a web address finds your app

Your app is deployed and has an address like my-app.example-host.app. Now you want myapp.com. Here is how the pieces fit.

Three separate things

  • Domain name: the address people type, such as myapp.com. You rent it yearly from a registrar (Cloudflare, Namecheap, Porkbun, GoDaddy and many others).
  • DNS: the internet's address book. It says "myapp.com lives at this server". You edit DNS records at whoever manages your domain's DNS, usually the registrar.
  • Hosting: the server that runs your app. See Vercel, Netlify and friends.

The registrar and the host can be different companies; DNS connects them.

Connecting a domain to your host

  1. In your hosting platform, open the project's domain settings and add myapp.com (and www.myapp.com).
  2. The platform shows you which DNS records to create, usually:
    • an A record (points a name at an IP address), or
    • a CNAME record (points a name at another name, such as your host's address).
  3. At your registrar's DNS settings, create exactly those records.
  4. Wait. Changes can show up in minutes or take a few hours to spread.
  5. The host issues an SSL certificate automatically, so your site works on https://. Check the padlock appears.

Email on your domain

Sending email from hello@myapp.com (for sign-in links, receipts) needs extra DNS records, usually called SPF, DKIM and DMARC, which your email provider gives you. Without them, your emails land in spam.

Common problems

  • Site not found after adding the domain: DNS hasn't updated yet, or a record has a typo. Compare each record character by character with what the host asked for.
  • Certificate errors: usually fixes itself once DNS is correct; the host retries.
  • Two conflicting records for the same name: remove the old one the registrar created by default.

Paste your host's instructions and a screenshot of your DNS records (no passwords visible) into Ask for help if you get stuck.

Read next: Vercel, Netlify and friends: putting your site online and Going live checklist: check this before you share the link.

More in Concepts