DOMAINS

Connect a Custom Domain Without Breaking Your Existing Site

Verify that you own a domain, plan your CNAME and certificate checks, and avoid breaking mail or an existing website during the change.

TL;DR: Start with a subdomain you control, add the host's ownership TXT record, and add the requested CNAME. Mark the connection complete only after DNS resolves, the HTTPS certificate matches, and a request reaches the right site.

Introduction

To connect a custom domain, you need access to the authoritative DNS provider for the name. That may be your registrar, but it might also be another service listed in the domain's nameservers. Changing records in the wrong control panel creates a long wait on a change the public DNS never sees.

Give the change a small scope. If you are publishing a project under projects.example.com, you should normally be able to leave the site at example.com and its mail records alone. List the records you intend to change before touching them.

What is a custom domain connection?

A custom domain connection lets a hosted application serve content on a hostname you control. DNS sends browsers toward the configured service, an ownership record lets the platform distinguish your account from someone else's, and a TLS certificate lets the browser authenticate the address. A CNAME alone does not select a tenant inside a shared hosting service.

KairoBase uses a TXT challenge and a CNAME for configured custom subdomains. It treats the hostname and certificate as separate readiness checks. Because the standard flow is for subdomains, plan a separate apex redirect if example.com must lead to www.example.com.

Why the steps happen separately

  • TXT ownership: Proves you can create a specific record under the name without sending browser traffic there yet.
  • CNAME routing: Points a name such as www.example.com at the provider's assigned target. Its value is a hostname, without https:// or a path.
  • TLS issuance: Provides a certificate for your hostname. It may require time after DNS changes and can be affected by certificate authority rules.
  • DNS caches: Some resolvers continue serving earlier values until their TTLs expire. A correct change in the dashboard can coexist with old answers elsewhere for a while.

How a domain moves to a new host

Identify the authoritative account

Work out which provider responds with the domain's DNS records. If you maintain your own notes, write down the relevant old records and their TTLs. A DNS query for NS records or the domain registrar's nameserver settings can help you locate the right zone. Keep a separate account recovery method for the registrar.

Set ownership and routing precisely

Use the TXT name and value shown in your site settings. Some DNS editors append the zone automatically, so entering the full name can accidentally repeat the domain in the stored record. Add the CNAME at the actual publication hostname, removing a conflicting record only if you understand what previously depended on it. If your host requires an unproxied CNAME for ownership checks, leave it in DNS-only mode through verification.

Check the certificate and content

After KairoBase reports readiness, open https:// on the new hostname. In browser developer tools, check certificate validity and confirm the home page is your project. Refresh a deep URL and check linked assets. If it shows a different site, checking which service answered is more useful than changing your app's content. Plan for the old site to remain available until you have tested the new one.

CheckPassing resultIf it fails
TXTExact token at the specified nameCheck zone scope and duplicated suffixes
CNAMEExact assigned targetCheck existing records and DNS proxy settings
HTTPSValid certificate for the customer hostnameCheck provider status and certificate policy
RequestIntended website respondsCheck live release and hostname mapping

Practical steps

  1. Publish and verify a release on the default address first.
  2. In the workspace, request the custom subdomain and copy its DNS values exactly.
  3. Verify the TXT record, CNAME and certificate before linking to the new name.
  4. Decide on a preferred canonical hostname. Update external links and site metadata after the cutover succeeds.

Common mistakes

  • Changing nameservers for the whole domain to connect a single subdomain.
  • Deleting MX or existing verification records when editing your website DNS.
  • Treating an HTTPS response from an unrelated default page as proof that the site is connected.

Frequently asked questions

Do I need a new domain for each site? No. You can use different subdomains under a domain you control, subject to plan limits.

Can I use the bare domain? Standard KairoBase onboarding uses custom subdomains. An apex may need other provider support or a separate redirect.

How long does certification take? The timing depends on DNS caches and the certificate provider. Check readiness instead of assuming a fixed wait.

Can I keep my email provider? Usually yes. Leave mail routing and verification records in place unless you intend to change email providers too.

Should I delete old DNS immediately? Keep the previous record values documented and start with the smallest reversible change. Remove obsolete records only after the new flow works.

Conclusion

Keep DNS, TLS, and the content check separate. Start from KairoBase’s domain guide and review Cloudflare's CNAME documentation before changing an unfamiliar zone.

Related reading