app.example.com) instead of the auto-generated Suga domains.
How It Works
When you add a custom domain to a service, Suga provides the DNS records you need to configure with your DNS provider. Once the records are in place, Suga automatically verifies ownership and provisions TLS certificates. No manual certificate management required. What you get:- Automatic TLS certificates
- Cloudflare CDN, WAF, and DDoS protection
- Zero-downtime certificate renewals
Adding a Custom Domain
Add a custom domain
In the Public Networking section, click + Custom Domain. Enter your domain name (e.g.,
app.example.com) and the target port your application listens on (e.g., 3000).Configure DNS
Suga will display the DNS records you need to add. Create a CNAME record with your DNS provider pointing your domain to the provided Suga target.Example:
| Type | Name | Target |
|---|---|---|
| CNAME | app | provided-target.suga.app |
Wait for verification
Once your DNS records propagate, Suga automatically verifies your domain and provisions a TLS certificate. This typically takes a few minutes.Your service will then be accessible at your custom domain.
DNS verification must complete within 48 hours of adding the domain. If your DNS records aren’t detected in that time, the claim will expire and you’ll need to re-add the domain to start a new verification.
Apex Domains
Apex (root) domains likeexample.com (without a subdomain prefix) require special DNS support because the DNS specification doesn’t allow CNAME records at the zone apex.
Supported DNS Providers
Providers that support CNAME flattening or equivalent include:| Provider | Mechanism |
|---|---|
| Cloudflare | CNAME flattening (automatic for apex) |
| NS1 | ANAME records |
| DNSimple | ALIAS records |
| Constellix / DNS Made Easy | ANAME records |
| EasyDNS | ALIAS records |
| DigitalOcean DNS | ALIAS records (CNAME flattening) |
| Namecheap | ALIAS records |
| Netlify DNS | ALIAS records |
AWS Route 53 and Azure DNS support ALIAS records, but only for pointing to their own services. They do not support arbitrary external targets. These will not work for Suga custom domains.
Configuring an Apex Domain
When you add an apex domain, Suga will provide two DNS records:| Type | Name | Target / Value |
|---|---|---|
| CNAME | @ | provided-target.suga.app |
| TXT | @ | suga-verification=... |
- Add both the CNAME (or ALIAS/ANAME equivalent) and the TXT record with your DNS provider
- Wait for DNS propagation and automatic verification
- Deploy your changes
If your DNS provider doesn’t support CNAME flattening, you can use a subdomain like
www.example.com or app.example.com and redirect to it from the apex domain.Domains Already Using Cloudflare
If your domain is already on Cloudflare, you’ll need to adjust the proxy setting for the CNAME record that points to Suga. Suga provides its own Cloudflare CDN, WAF, and DDoS protection for custom domains, so disabling the proxy on your side does not reduce protection, your traffic is still routed through Cloudflare’s edge network via Suga.Domain Conflicts
A domain can only be active on one Suga environment at a time. If another organization has already verified and activated the same domain, you’ll receive an error when trying to add it. Unverified (pending) claims from other organizations do not block you, only proven ownership counts. If you need to move a domain between environments within your organization, remove it from the original environment first, then add it to the new one.Common Questions
How long does DNS verification take?
How long does DNS verification take?
Usually a few minutes, but DNS propagation can take up to 48 hours depending on your provider and TTL settings. If verification doesn’t complete within 48 hours, the claim expires and you’ll need to re-add the domain.
Can I add multiple custom domains to one service?
Can I add multiple custom domains to one service?
Yes. Add each domain separately through the Public Networking configuration.
Do I need to manage SSL/TLS certificates?
Do I need to manage SSL/TLS certificates?
No. Suga automatically provisions and renews SSL/TLS certificates for all custom domains.
Can I use both a custom domain and the auto-generated domain?
Can I use both a custom domain and the auto-generated domain?
Yes. The auto-generated Suga domain continues to work alongside your custom domain.
Why can't I use an apex domain with my DNS provider?
Why can't I use an apex domain with my DNS provider?
Standard DNS does not allow CNAME records at the zone apex. Your provider needs to support CNAME flattening, ANAME, or ALIAS records. If it doesn’t, use a subdomain like
www.example.com with a redirect instead.My domain is on Cloudflare and verification is stuck
My domain is on Cloudflare and verification is stuck
Make sure the CNAME record pointing to Suga has the Cloudflare proxy disabled (grey cloud / DNS only). Suga can’t verify the CNAME target while it’s hidden behind Cloudflare’s proxy.
Next Steps
Networking
Learn about HTTPS endpoints, TCP proxy, and private networking
CDN and Regions
How Cloudflare’s edge and Suga regions route traffic
Service Configuration
Configure environment variables, resources, and scaling