Skip to Content
Container Engine

Configure domains and DNS

Connect a custom hostname and configure the application's HTTP target.

The Domain & DNS page shows default and custom domains for a container. External requests use HTTPS; routing to the application uses HTTP. Each domain has its own internal HTTP port. For example, app.example.com can route to port 3000 while admin.example.com routes to port 8080 on the same container.

Adding, editing, deleting, refreshing and changing availability of domains requires container_engine.domains.manage. Viewing domains requires container_engine.domains.read.

Previous default domains will be removed on November 30, 2026. Their rows show a warning border and removal notice. Before that date, update links and any CNAME records pointing to the previous address to use the new default address.

Before you begin

Deploy an HTTP application and identify its internal listening port. To add a custom domain, you must be able to edit DNS records for that hostname.

Default address

Every container gets a default address below rdccloud.app, made of the container name, the project ID and a short random part, for example my-api-shop-k7q2m9.rdccloud.app. Letters are lowercased and other characters become hyphens; a long container name is shortened to fit. The address is assigned when the container is created and cannot be renamed or deleted.

Containers created before these addresses also keep their previous default address. It serves the same port as before, so existing links keep working. You can disable or enable it like the default address, but you cannot delete it.

Anyone can report an application on an RDC Cloud address that is used for phishing, scams, malware or other illegal or harmful content on the report page.

Configure the HTTP target

  1. Open Domain & DNS on the container.
  2. Select Edit on the domain to expand its inline editor, then set Internal HTTP port to the application's listening port. The port is required and must be an integer from 1 to 65535.
  3. Select Save port. The entered port replaces the current port, even if another update changed it while you were editing. Only this domain’s routing and connection check are updated; its DNS verification status is preserved.

For an application listening on port 3000, use 3000 here. This setting controls routing; it does not make the application start listening on a new port or publish a host port. Enabled default and custom domains can be edited. A disabled default domain retains its saved target; enable it before changing its port. Changing a custom domain port does not bypass DNS verification.

You can save a port while the container is Active or Failed. Enabling or disabling the default domain requires an Active container; saving a port does not restart or recover a failed container.

Disable or enable the default domain

The generated default hostname cannot be deleted. On an active container with domain management permission, select Disable beside that hostname and confirm Disable default domain?. This stops public application routing for that hostname. The container keeps running, and its hostname, DNS identity and saved HTTP target remain unchanged. You can still copy the hostname.

The row then shows Disabled and Enable. Select Enable to restore routing to the saved internal HTTP port and start a new connection check. Changing a port alone does not enable a disabled domain. Actions are unavailable while a request is pending or the container is not active.

Custom domains remain independent: verified active custom hostnames continue routing even while the default hostname is disabled. Keep their existing CNAME targets. Disabling the default hostname does not remove custom domains, their DNS records or their own HTTP targets.

If the row reports incomplete routing setup or shows no saved port, availability controls are unavailable. Configure the HTTP target through Edit when available. If setup cannot be completed, contact support with the resource ID and displayed error; do not guess a port.

Routing changes take time to propagate. Disabling does not remove DNS records or shared TLS configuration, revoke a certificate, or guarantee an immediate HTTP 404. It stops this hostname's application route; it does not stop other routes or replace application authentication and firewall controls.

If configuration changed during your request, the Console displays an error and reloads the current state. Review it before trying again; Enable is not retried automatically.

Connect a custom domain

  1. Select Add domain, enter a hostname such as app.example.com and its required Internal HTTP port in the dialog, and select Add domain to confirm.
  2. Expand DNS configuration for that domain. Copy the Value of its CNAME record. The Name column shows the full hostname; some DNS providers expect only the subdomain.
  3. In your DNS provider, create a CNAME record for the custom hostname pointing to that target. Use the exact target from the Console, not a guessed server address. Custom domains whose CNAME already points to a container's previous default address keep working; you do not need to change them.
  4. Allow the DNS change to propagate. Connection checks start automatically and continue after you leave the page.
  5. Wait for Valid Configuration, then open the HTTPS URL. If the check fails, correct the displayed issue and select Refresh.

Use Search domains to filter the list. Refresh beside a domain starts its connection check and reloads the list; Try again retries a failed list request. A failed add or edit keeps the hostname and port in the dialog for retry.

The generated domain hostname is read-only, but you can retry its connection check. For a custom hostname, choose a DNS name on which your provider allows a CNAME record. Hostnames below rdccloud.app cannot be added as custom domains.

Choose the primary custom domain

When a container has more than one custom domain, select Make primary beside a connected custom domain. The row then shows Primary. A container has one primary custom domain; choosing another moves the mark.

The primary custom domain is the address that ${resource.<name>.external_domain_custom} delivers in resource references. Changing it does not change routing: every connected custom domain keeps serving requests. Redeploy the containers that use the reference to deliver the new address.

Understand connection status

Generated and custom domains use the same connection checks. Registering a domain does not immediately mark it Valid Configuration.

  • Disabled: the default hostname does not publish an application route. Its last connection result is not shown as a current success. Select Enable to restore it.
  • Checking: the connection check is queued or starting.
  • Waiting for DNS: public DNS or the required custom-domain CNAME is not ready.
  • Certificate Provisioning: HTTPS does not yet present a trusted, unexpired certificate for this hostname.
  • Connecting: the endpoint is not responding yet, or returns HTTP 5xx. The response code, such as HTTP 502, appears separately.
  • Valid Configuration: the last check received a response below HTTP 500 over trusted HTTPS. HTTP 401, 403 or 404 can still appear alongside this state: the domain is reachable, but the root URL may require authentication or have no application route. This is not an application health check.
  • Failed: the initial check and three automatic retries failed, or a configuration issue needs attention. Fix the indicated DNS, routing, port or certificate issue, then select Refresh.

After a temporary failure, checks retry after one minute, then ten minutes, then twenty minutes. A successful check resets the failure count. Unsafe addresses and routing configuration errors fail immediately. Checks also stop if they cannot complete within 36 minutes.

While a check is pending, the page refreshes its status about every five seconds and shows a spinner. Checks of connected domains happen less frequently. Status changes are not instantaneous.

Refresh starts a new connection check. It does not restart the container or force certificate reissuance. An existing authorized route remains enabled while checks are pending or failed. If certificate errors persist, contact support with the resource ID, hostname and displayed error.

Remove a custom domain

Select Edit for the domain, then Delete in its expanded panel and confirm. Remove its CNAME record from your DNS provider separately.

If verification or routing fails, follow Troubleshoot containers.