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 likeapi.example.com:
A Record (Apex Domains)
For apex domains likeexample.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
'Certificate pending' for too long
'Certificate pending' for too long
Verify DNS is configured correctly:The output should show your Fly.io URL.
'Deployment not ready'
'Deployment not ready'
Custom domains only work with
ready deployments:'Domain already in use'
'Domain already in use'
The domain may be configured on another deployment. Remove it first:
Related
- Custom Domains Feature - Detailed guide
runtm status- Check deployment status