Skip to content
AI-powered appsNewChat, vision, voice, generationBookings & schedulingAppointments that book themselvesShops & sellingA storefront in every pocketClient & businessRun the operation from one placeCommunities & clubsA home that is not a group chat
Health & wellnessHabits, tracking and calmGames2D, 3D and multiplayerPersonal & toolsThe tool you wish existedInternal toolsThe tool ops never had time for
See all use cases
ArcadeNewPricingSecurity
EngineThe game engine and World EditorHow it worksFrom one sentence to a live productDocsGuides for building and publishingBlogStories, guides and newsChangelogWhat shipped latelyStatusUptime of every serviceSupportGet help from the team
AI-powered appsBookings & schedulingShops & sellingClient & businessCommunities & clubsHealth & wellnessGamesPersonal & toolsInternal tools
See all use cases
ArcadeNewPricingSecurity
EngineHow it worksDocsBlogChangelogStatusSupport
Language
Blog
BackendNovember 22, 20265 min read

How to Connect a Custom Domain to Your App

A custom domain is a signpost: DNS records tell the internet where your app lives. Here is what each record does, the www vs root question, and how to fix one that will not connect.

Startbase Team
Editorial ink illustration of a hand-painted street sign at a crossroads pointing toward a small house, the arrow in ember orange

Key takeaways

  • You buy a domain from a registrar, then add a DNS record there that points the name at your app's host. The host then issues an HTTPS certificate.
  • Subdomains like www use a CNAME record. Root domains (yourapp.com) are trickier because the DNS standard does not allow a CNAME there; many providers work around it.
  • Most DNS changes take minutes, some up to 48 hours. Typos and leftover records cause most failures.

To connect a custom domain to your app, you add a DNS record at the company where you bought the domain (your registrar) that points the name at your app's host, then tell the host which domain to expect. For a subdomain like `www.yourapp.com` that record is usually a CNAME pointing at an address the host gives you. Once the host sees the record, it issues an HTTPS certificate, and visitors reach your app at your own name. The whole job is copying two values into the right boxes; the waiting is the slow part.

What DNS actually does

Computers find each other by numeric addresses (IP addresses). People remember names. DNS, the domain name system, is the internet's directory that turns one into the other. When someone types `www.bloomflowers.com`, their device asks DNS "where is this?", gets an answer, and connects.

Owning a domain means you control its entries in that directory. Think of it as owning a signpost: you decide which way the arrow points, and you can repoint it to a new host any time without changing the name on the sign.

The records you will meet

  • CNAME: "this name is an alias of that name". `www.bloomflowers.com` CNAME `bloom.someplatform.app`. The host can change its servers behind the scenes and your record keeps working. Used for subdomains.
  • A and AAAA: "this name lives at this IP address" (A for IPv4, AAAA for IPv6). Often used for root domains.
  • TXT: free-form text, used to prove you own a domain (a host or email service gives you a value to paste) and for email records like SPF.
  • MX: where email for the domain is delivered. Do not touch these when connecting your app, or your inbox may stop receiving mail.

Tip

Each record has a name (also called host) and a value (also called target or points to). Many registrars add your domain to the name automatically, so for `www.bloomflowers.com` you type just `www` in the name box.

www or the root domain?

The root domain (also called apex or naked domain) is `bloomflowers.com` with nothing in front. The DNS standard does not allow a CNAME on the root, because the root must also hold other records like MX for email. That creates the most common confusion in this whole topic. You have three options:

  1. 01Use www as the main address with a CNAME, and set up a redirect (often called forwarding) at your registrar from the root to www. Works everywhere.
  2. 02Use a DNS provider that flattens CNAMEs at the root (Cloudflare does this, and others offer similar features under names like ALIAS or ANAME). Then the root can point at your host directly.
  3. 03Use A records with IP addresses, if your host publishes fixed IPs for this purpose.

Whichever you pick, make sure both versions reach the app, because people type both.

Connecting a domain, step by step

  1. 01Buy the domain from a registrar (Namecheap, Cloudflare, Porkbun, GoDaddy and many others). Prices for common endings like .com are usually around $10 to $20 a year; premium names and some endings cost much more. Turn on auto-renew so it never lapses. Our hosting cost breakdown covers the rest of the monthly bill.
  2. 02Publish your app on its host first, so there is something to point at.
  3. 03Add the domain in your host: it shows you the record type, name and target to create.
  4. 04Create the record in your registrar's DNS settings. Delete any old record with the same name first (a parking page A record is a common leftover).
  5. 05Wait and check. The host verifies the record, then issues an HTTPS certificate automatically, usually for free.
  6. 06Test `https://` on both www and root, on your phone with Wi-Fi turned off, so you are not seeing a cached answer.

When it will not connect

  • Still pending after an hour. Check the record for typos, a trailing dot problem, or the domain added twice (`www.bloomflowers.com.bloomflowers.com`). That last one happens when the registrar appends the domain for you.
  • Two records for the same name. An old A record and your new CNAME conflict. Remove the old one.
  • Nameservers point elsewhere. If your domain's nameservers are at a different company than where you are editing, your changes do nothing. Edit DNS wherever the nameservers point.
  • Certificate warning in the browser. The certificate is issued after the record is found; give it a little time, then check again.
  • Worked on Wi-Fi, not on mobile data. Different networks cache DNS answers for different lengths of time. Wait out the TTL (time to live) on the old record.

Owning a domain well

A domain is a small yearly bill that quietly becomes one of your most important assets. Your links, your email sender, your search rankings and your login redirects all hang off it. A few habits protect it:

  • Register it in your own account, not a freelancer's or an agency's. Getting a domain back from someone who left is slow and sometimes impossible.
  • Turn on auto-renew and keep the card current. Expired domains can be bought by others, sometimes within days of lapsing.
  • Turn on registrar lock and two-factor authentication, so nobody can transfer the domain away with a stolen password.
  • Use WHOIS privacy (most registrars include it) so your home address and phone number are not published in the public domain record.
  • Plan subdomains: `www` or the root for the app, `mail` for sending email, perhaps `docs` or `status` later. Each can point to a different service without affecting the others.

Moving your app to a new host later is just repointing the same records. Visitors keep using the same address, which is why a domain you control is worth having even before you have many users.

Custom domains on Startbase

Every published Startbase app gets an address under `startbase.app` on every plan. Custom domains are included on the paid plans (Starter and Pro); see pricing. After your first publish, open Custom domain in the Publish panel, enter your domain (for example `www.yourdomain.com`) and click Connect. Copy the record name and target into your registrar's DNS settings. Startbase checks automatically and issues the HTTPS certificate once the record is found; Check again runs the check on demand. Your site stays reachable at its `startbase.app` address either way, and Settings → Domains lists every domain connected across your organization's projects. The launch checklist for web apps puts the domain in order with everything else.

One specific: a root domain (`yourdomain.com`) works on Startbase only when its DNS is hosted on Cloudflare. Otherwise, connect `www.yourdomain.com` and forward the root to it at your registrar. Most DNS changes are picked up within minutes, though some take up to 48 hours. The custom domains docs and publishing docs cover the panel.

I just connected www.bloomflowers.com to my published flower shop. Update everything in the app that still uses the startbase.app address: the link preview title and description, the sign-in redirect URLs in the backend, the sitemap and canonical links, and any absolute links in emails. List what you changed.

That last brief catches the thing people forget: a new domain affects login redirects and emails too. User authentication explained shows why redirect URLs matter, and if your app sends email, the domain you just bought can also become your sender (sending emails from your app).

Frequently asked questions

How long does it take for a custom domain to work?

Often minutes. DNS changes can take up to 48 hours to reach every network, and the HTTPS certificate is issued after the record is found.

Should I use www or not?

Either works if both reach your app. www is easier to connect with a CNAME on any registrar; the root domain needs a DNS provider that supports root-level aliases or A records.

Will connecting a domain break my email?

Not if you only add the record your host asks for and leave MX records alone. Email delivery is controlled by MX records, which connecting a website does not need to change.

Can I use a custom domain on Startbase's free plan?

No. Custom domains are included on the paid Starter and Pro plans. Every plan publishes to a startbase.app address.

On this page

  • What DNS actually does
  • The records you will meet
  • www or the root domain?
  • Connecting a domain, step by step
  • When it will not connect
  • Owning a domain well
  • Custom domains on Startbase

Keep reading

More in Backend
Editorial ink illustration of a shop counter with a brass cash register and a curling paper receipt, the receipt in ember orange
BackendNovember 22, 2026

How to Accept Payments in Your App with Stripe

Taking money online is mostly a solved problem, if you let Stripe hold the card and you trust only its webhook. Here is the flow, the data you store and the mistakes to avoid.

5 min read
Editorial ink illustration of an iron safe set into a workshop wall with a key hanging on a hook beside it, the key in ember orange
BackendNovember 22, 2026

API Keys and Secrets: Keeping Them Safe

Anything you ship to a browser or phone can be read. Here is how to tell a public key from a secret one, where secrets belong, and the five-step plan for a leaked key.

5 min read

Read less. Ship more.

Everything in this post is one prompt away. Describe your app and watch it build.

Start building

Apps, games, backends and publishing from one conversation.

Product

  • Features
  • Use cases
  • Pricing
  • Changelog

Resources

  • Blog
  • Docs
  • Support
  • Status
  • Security

Contact

  • w@startbase.ai
  • X / Twitter
  • LinkedIn
  • Instagram

Legal

  • Terms
  • Privacy

© 2026 Startbase. All rights reserved.