---
title: Custom Domains
description: Point your own domain at Atlasflow with DNS verification and automatic TLS.
order: 0
---

Atlasflow serves your application on `*.atlasflow.dev` preview hostnames by default. Add a custom domain when you're ready to use your own hostname in production. Atlasflow provisions TLS certificates automatically once your domain is verified.

## Add a domain

1. Open your project **Settings → Domains**.
2. Enter your domain name (for example `app.example.com` or `example.com`).
3. Atlasflow shows the DNS records you need to configure.

You'll add two kinds of records: a **routing** record (A or CNAME) that points traffic at Atlasflow, and an **ownership** record (TXT) that proves you control the domain. See [DNS configuration](/docs/networking/dns-configuration.md) for exact values.

## Verification

After you add the records, Atlasflow polls DNS automatically. Once both the routing and ownership records are detected, the domain status changes to verified and traffic is routed to your deployment. A TLS certificate is issued at the same time.

Verification can take a few minutes depending on your DNS provider's propagation time. You can re-check verification manually from the domain row if you don't want to wait for the next automatic poll.

## Apex vs subdomain

- **Apex domains** (`example.com`) use A records pointing at Atlasflow's proxy IPs.
- **Subdomains** (`app.example.com`) use a CNAME pointing at Atlasflow's fallback origin.

The exact records for your domain are always shown in the dashboard. See [DNS configuration](/docs/networking/dns-configuration.md).

## Domain conflicts

A verified domain can only be attached to one project at a time. If a domain is already in use, the dashboard shows which project owns it. Remove it from the other project before attaching it here.

## Redirects

You can configure a domain to redirect to another hostname instead of serving traffic directly, for example to send `www.example.com` to `example.com`. See [Redirects](/docs/networking/redirects.md).

## Next steps

- [DNS configuration](/docs/networking/dns-configuration.md): the exact records to add.
- [Redirects](/docs/networking/redirects.md): forward one hostname to another.
- [Regions](/docs/networking/regions.md): where your app runs.