On this page
You can show your app on a domain you own, like yourbrand.com or app.yourbrand.com. You add two DNS records at the company that runs your domain's DNS, then Swarmz checks them and switches on a secure (HTTPS) connection for you. Custom domains need a paid plan. See Pricing for what each plan includes.
Before you start#
- You own the domain, and you can sign in to the place that manages its DNS. This is often where you bought it, but not always. DNS records explained shows how to find out.
- Your workspace is on a paid plan, and you are an owner or admin of the workspace.
- Your app is published, or you will publish it after connecting. A connected domain only shows your app once the project is published. See Publish your app.
Connect the domain#
Step 1: Open Domains
In your project, click Tools, then Domains.
Step 2: Click Connect domain or subdomain
If you already added a domain to your workspace, you can pick it with Use an available domain instead.
Step 3: Enter your domain
Type the full address you want visitors to use, such as
example.comorapp.example.com, then click Continue.Step 4: Read the root domain note, if one appears
If you typed a root domain like
example.comand Swarmz thinks your DNS provider cannot point it at an app, a yellow note offers two fixes: Use a subdomain or Switch to Cloudflare DNS. See below.Step 5: Add the DNS records
The Add these DNS records step lists each record with its Type, Name and Value, and a Copy button. Open the DNS settings where your domain is managed, add each record exactly as shown and save.
Step 6: Click Verify now
Swarmz checks your records. The step shows Waiting for your DNS changes, then Checking your records, then Records found, securing your connection.
Step 7: Finish
When you see Your domain is connected, click Visit to open it, then Done.
The records you add#
Swarmz shows you the exact values, so copy them from the step rather than typing them. There are two records.
For a root domain (example.com):
- CNAME
- Name
@- Value
cdn.swarmz.cloud
- TXT
- Name
_cf-custom-hostname- Value
- Shown in Swarmz
| Type | Name | Value |
|---|---|---|
| CNAME | @ | cdn.swarmz.cloud |
| TXT | _cf-custom-hostname | Shown in Swarmz |
For a subdomain (app.example.com):
- CNAME
- Name
app- Value
cdn.swarmz.cloud
- TXT
- Name
_cf-custom-hostname.app- Value
- Shown in Swarmz
| Type | Name | Value |
|---|---|---|
| CNAME | app | cdn.swarmz.cloud |
| TXT | _cf-custom-hostname.app | Shown in Swarmz |
- The CNAME sends visitors to Swarmz.
- The TXT proves you own the domain. Its value is different for every domain, so always copy it from the step.
- If you bought the domain through Swarmz, the records are added for you and the TXT record is not needed. See Buy a domain through Swarmz.
Some providers want only the first part of the name (app), and some want the full name (app.example.com). If your provider adds your domain to the end by itself, do not type it again. DNS records explained covers this.
Important
If your domain is on Cloudflare, set the CNAME to DNS Only (grey cloud), not Proxied (orange cloud). Otherwise the connection cannot be checked.
Root domain or subdomain?#
A root domain has nothing in front of it (example.com). Many DNS providers do not allow a CNAME on the root, and some are known not to, including GoDaddy and Namecheap. When Swarmz recognises one of these providers it says so and offers:
- Use a subdomain, such as
app.example.comorwww.example.com. This works on every provider. - Switch to Cloudflare DNS. Moving your DNS to Cloudflare is free and lets you use the root domain.
If Swarmz does not recognise your provider, you can still try the root domain. If it is not live within 30 minutes, switch to a subdomain or Cloudflare DNS. More in www and root domains.
How long it takes#
Most domains go live in 1 to 10 minutes after you save the records. Slow providers can take up to 48 hours. You can close the dialog and come back: your records are saved, and Swarmz keeps checking in the background and emails you when the domain is live. To continue later, open Tools, then Domains.
If it is still not connected after an hour, see Fix a domain that won't connect.
Good to know#
- You can connect several domains to a project and choose which one is Primary. Use Set as primary on the one you want to show as your website address.
- A domain serves one project at a time. If it is already connected somewhere else you will see "That domain is already connected elsewhere." Remove it from the other project first.
- Private projects (visible to your workspace or invited people only) cannot use a custom domain yet.
- If your plan drops back to Free, the domain moves to Disconnected. The records are kept so you can reconnect it after upgrading.
Common questions#
Do I need to publish again after connecting a domain?
Only if the project has never been published. The domain serves whatever is live. Publish again whenever you want your latest changes on it.
Can I use a domain I bought somewhere else?
Yes. Any domain from any registrar works, as long as you can edit its DNS records.
Will my old address still work?
Your included address (ending in swarmz.cloud) keeps working unless you unpublish the project.
Can I change the domain later?
Yes. Open Tools, then Domains, and choose Replace domain on the one you want to change. The new one takes over once it is verified.
Do I pay extra for HTTPS?
No. The certificate is issued and renewed for you.
Was this helpful?
Related articles
DNS records explained
What DNS records are, where to add them, how long they take and how to check they are right, in plain words.Fix a domain that won't connect
Work out why your custom domain is stuck, what each status means and what to change, with tips for common DNS providers.www and root domains
The difference between example.com and www.example.com, which one to connect and what to do if your provider blocks the root.HTTPS certificates
Swarmz sets up and renews the secure padlock for your domain automatically. Here is what to expect and what to do if it stalls.
Still have a question?
Ask about this article, or talk to a person.