Skip to main content

runtm domain

Manage custom domains for your deployments.

Commands


domain add

Add a custom domain to a deployment.

Arguments

Examples

Output

Custom domains only work with ready deployments.

domain status

Check the status of a custom domain.

Arguments

Examples

Output

Certificate Status


domain remove

Remove a custom domain from a deployment.

Arguments

Options

Examples


DNS Configuration

CNAME Record (Subdomains)

For subdomains like api.example.com:

A Record (Apex Domains)

For apex domains like example.com, you’ll need to use Fly.io’s dedicated IPs. Contact support for apex domain setup.

DNS Propagation

DNS changes can take up to 48 hours to propagate globally, though most propagate within minutes. Check propagation with:

Troubleshooting

Verify DNS is configured correctly:
The output should show your Fly.io URL.
Custom domains only work with ready deployments:
The domain may be configured on another deployment. Remove it first: