Custom domains let you serve your Suga services from your own domain (e.g.,Documentation Index
Fetch the complete documentation index at: https://docs.suga.app/llms.txt
Use this file to discover all available pages before exploring further.
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 |
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.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.
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.Next Steps
Networking
Learn about HTTPS endpoints, TCP proxy, and private networking
Service Configuration
Configure environment variables, resources, and scaling