# Custom domains — Codara Cloud Docs

> The hostname every app gets by default, how to attach your own, and how sleeping apps wake on request.

Canonical: https://codaracloud.com/docs/guides/domains

## The hostname you get for free

Codara assigns every app a managed hostname at creation and starts provisioning its certificate. You do not have to configure DNS; the app page reports when routing and TLS are ready.

```
https://<managed-label>-<workspace>.codara.cloud
```

When an environment contains a single service, the URL uses the project name instead of the app name, which reads better for the common one-service case. Apps created before mid-2026 may still be on the older `*.apps.codarasolutions.com` scheme and can be migrated to the current one from the app’s domain settings.

The exact hostname is always shown on the app page, or:

bash

```
$ codaracloud domains list my-api
$ codaracloud open my-api
```

Renaming a workspace breaks its generated URLs immediately

The workspace address is part of every generated hostname. Renaming it rewrites those hostnames and the old URLs stop working at once, with no redirect. Treat a workspace address as permanent once anything real points at it.

## Registering a domain for your organization

If you will use one domain for several apps, register it once under `Settings → Domains`. Codara returns a single TXT record for the domain (for example `_codara-verify.acme.com`). Once that record is found, every hostname at or beneath the domain — such as `api.acme.com` or `staging.eu.acme.com` — can be attached to any app in the organization without a per-hostname challenge. Only owners and admins can register or remove domains; every member can see them. A verified domain is re-checked in the background about once a day, so a domain that changes hands stops being trusted.

The included `codara.cloud` hostnames need no registration at all: each app gets one automatically.

## Attaching your own domain

External domains require two DNS steps

For a hostname outside `codara.cloud`, first publish the TXT ownership challenge returned by Codara. After the hostname is accepted, point a CNAME at `customers.codara.cloud`. The operator then creates a dedicated Ingress and cert-manager requests its TLS certificate.

1

### Add the hostname

bash

```
$ codaracloud domains add my-api app.acme.com
```

Or use the Domains tab on the app page in the console.

2

### Prove you own the domain

For a customer-owned domain, Codara returns a TXT record to publish before the hostname is accepted:

```
_codara-verify.app.acme.com.   TXT   "<token Codara gives you>"
```

Publish it with your DNS provider, then run the command again. Generated `codara.cloud` hostnames do not use this flow.

3

### Point DNS at Codara

Create a CNAME:

```
app.acme.com.   CNAME   customers.codara.cloud.
```

A root domain such as `acme.com` cannot take a CNAME: see [Root domains](https://codaracloud.com/docs/guides/domains#root-domains) below.

4

### Wait for the certificate

Certificate issuance normally takes a couple of minutes once DNS resolves. The hostname will not become ready until its CNAME or flattened alias reaches Codara.

### Checking status

The console’s Domains tab reports live DNS and certificate state per hostname, which is what you want while waiting for a domain to come up.

The CLI does not show domain status

`codaracloud domains list` shows the hostnames attached to an app but not their DNS or TLS state. Use the console to diagnose a domain that is not working. A status of `unknown` there usually means a slow DNS lookup rather than a real failure — check again shortly.

## Root domains

A root domain is the domain itself with nothing in front of it, such as `acme.com` (also called the apex). DNS does not allow a CNAME record there: the root already holds the zone’s own SOA and nameserver (NS) records, and a CNAME cannot share a name with any other record. Codara publishes no fixed IP addresses either, so an A record is not a way around it. A root domain you attach stays pending until one of the options below is in place. Pick the first one that works for you.

### Use www and redirect the root

This is the simplest route and works with every DNS provider. Attach `www.acme.com` to your app instead, with the TXT records Codara shows and a normal CNAME:

```
www.acme.com.   CNAME   customers.codara.cloud.
```

Then send visitors from `acme.com` to `https://www.acme.com` with your DNS provider’s own forwarding or redirect feature. Check that this forwarding works over HTTPS: if it only answers on HTTP, people who open `https://acme.com` get a certificate error. Once `www.acme.com` is active, remove `acme.com` from the app so it does not stay pending.

### Use an ALIAS, ANAME or flattened CNAME

Some DNS providers offer a record that acts like a CNAME at the root. It goes by ALIAS, ANAME or CNAME flattening: the provider looks up `customers.codara.cloud` itself and answers with its current addresses. If yours has one, create it at `@` (the root) pointing to `customers.codara.cloud`, and add the TXT records Codara shows:

```
acme.com.   ALIAS   customers.codara.cloud.   ; or ANAME, or a flattened CNAME
```

Remove any other A or AAAA records at the root that served the old website. Leave every other record as it is.

### Move DNS to a provider that has one

If your provider has none of these, move the domain’s DNS to one that does (the domain itself stays with your registrar). This changes DNS for the whole domain, email included, so the domain’s owner should agree first.

1

### Copy every record first

Create the zone at the new provider and copy every existing record before anything else: MX, SPF, DKIM, DMARC, autodiscover, SRV and any other TXT records. Compare the two zones side by side.

2

### Turn DNSSEC off

If DNSSEC is on, turn it off at the registrar (remove the DS record) before you change nameservers.

3

### Change the nameservers

Set the new provider’s nameservers at the registrar and allow 24 to 48 hours for the change to spread. Leave the old zone untouched until then.

4

### Point the root at Codara

Create the flattened CNAME or ALIAS at the root pointing to `customers.codara.cloud`, plus the TXT records Codara shows.

Never point an A record at Codara's addresses

Looking up `customers.codara.cloud` and copying its IP addresses into an A record seems to work, but those addresses change without notice and the site goes down when they do. Codara publishes no fixed IP addresses.

Mail keeps working

Using www or an ALIAS record only touches the website records. Your MX, SPF, DKIM and DMARC records stay exactly as they are. When you move DNS, mail keeps working as long as every record was copied first.

### Which providers support it

| Provider | At the root | Source |
| --- | --- | --- |
| Cloudflare | CNAME flattening at the root, on all plans. | [Cloudflare docs](https://developers.cloudflare.com/dns/cname-flattening/set-up-cname-flattening/) |
| DNSimple | ALIAS record that points the root to a hostname. | [DNSimple docs](https://support.dnsimple.com/articles/alias-record/) |
| Amazon Route 53 | Alias records only point to selected AWS resources, not to `customers.codara.cloud`. Use www, or move DNS. | [AWS docs](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/resource-record-sets-choosing-alias-non-alias.html) |

Checked against each provider’s documentation on 17 November 2026. If yours is not listed, look in its documentation for ALIAS, ANAME or CNAME flattening.

## Rules

- A hostname can only be attached to one app. Attaching one that is already in use fails and tells you which app currently owns it.
- Managed hostnames must be exactly one label below `codara.cloud` — `api-acme.codara.cloud` is valid, `v2.api-acme.codara.cloud` is not.
- Some names are permanently reserved and cannot be claimed.
- A hostname inside another customer’s zone can never be claimed.

### Removing a domain

bash

```
$ codaracloud domains remove my-api app.acme.com
```

Codara only removes DNS records it created itself. A record you added at your own provider stays until you delete it.

## Ports

Traffic is sent to port `8080` by default, and the chosen port is injected into the container as `PORT`. To change it:

bash

```
$ codaracloud apps update my-api --port 3000 --client my-workspace
```

Changing the port restarts the app. Reading `PORT` from the environment rather than hardcoding a value avoids the issue entirely.

## Sleep and wake

Apps can scale to zero when idle and wake again on the next request to their `codara.cloud` address. This is **off by default** — enable it per app.

bash

```
# Sleep after 30 minutes without a request, wake on HTTP
$ codaracloud apps autosleep my-api --enabled --idle-after 1800 --wake-on-http

# Turn it off
$ codaracloud apps autosleep my-api --disabled

# Sleep or wake right now
$ codaracloud apps sleep my-api
$ codaracloud apps wake my-api
```

When a sleeping app receives a request on its `codara.cloud` address, Codara starts it and holds the request for a few seconds. If it comes up in time the request is served normally; if not, browsers get a self-refreshing “waking up” page and API clients get a `503`. Expect a noticeable delay on the first request after a sleep.

Three things that will not wake an app

- **Requests to a custom domain.** Wake-on-request only works on the app’s `codara.cloud` address. Custom domains route straight to the app, so a sleeping app on a custom domain stays down. Keep a service with a custom domain on **Always on**.
- **Internal traffic.** App-to-app calls bypass the waking layer, so a private dependency must stay awake.
- **A paused or suspended app.** Its environment is paused, or Codara has suspended it (for example over a spend cap).

Only idle-based sleeping is active

The autosleep setting accepts `scheduled` and `manual-only` modes, but only `idle` is honoured today. An app set to another mode simply never sleeps automatically — manual sleep and wake still work.

## Private service-to-service traffic

Apps in the same environment reach each other over the internal network using `CODARA_PRIVATE_URL`, without going through the public internet or consuming a domain. Traffic between different environments, projects or workspaces is blocked. See [Core concepts](https://codaracloud.com/docs/concepts).

Last updated 17 November 2026
