# Domains

> The two domains an agency can set up, a custom domain for the app and an email sending domain, and which one to do first.

An agency can put two of its own domains to work:

| | [Custom domain](https://docs.getleal.com/agency/domains/custom-domain) | [Email sending](https://docs.getleal.com/agency/domains/email-sending) |
| --- | --- | --- |
| What it changes | The web address of the app, sign-up pages and customer links | The address emails to your clients come from |
| Example | app.youragency.com | hello@youragency.com |
| DNS records | Two CNAME records | Three CNAME records, an MX and a TXT record, plus an optional DMARC record |
| Where | **Custom domain** in the agency menu | **Email sending** in the agency menu |

Both need an Agency plan subscription and access to your domain's DNS settings, which is usually wherever you bought the domain (GoDaddy, Namecheap, Cloudflare and so on).

## Which first?

Set up the **custom domain** first. It's what makes white label complete: clients sign in at your address, customers' links use it, and sign-ups on it join your agency. Email sending is a finishing touch on top.

## DNS in plain words

DNS is the address book of the internet. Adding a record tells the world "this name points there". Leal shows you exactly which records to add, each with a **Copy** button. You paste them into your DNS provider, and Leal checks for them.

- **Name** (sometimes called Host): the part before your domain, such as `app`. Most providers add your domain to the end for you, so if you paste `app.youragency.com` and it becomes `app.youragency.com.youragency.com`, delete the repeated part.
- **Type:** CNAME, MX or TXT. Pick the same type Leal shows.
- **Target** or **Value:** where the record points. Paste it exactly.

Changes can take a few minutes to a day to be seen everywhere. Leal keeps checking, so you don't need to wait on the page.

## Store custom domains

A client store can also have its own custom domain for its sign-up pages and passes, separate from yours. Where a store has one, its customers' links use the store's domain first. See [Set up your custom domain](https://docs.getleal.com/custom-domains/setting-up).

## In this section

- [Agency custom domain](https://docs.getleal.com/agency/domains/custom-domain): Run the whole Leal app under your own address, such as app.youragency.com. Adding the DNS records, checking status and what changes once it's live.
- [Email sending](https://docs.getleal.com/agency/domains/email-sending): Send the emails your clients get from your own address, such as hello@youragency.com. Which emails it covers, the DNS records to add, and what to do if verification fails.
