# Setting up Custom Domains ::pro

You can set up custom domains and point them to local Expose edge access points so that you can use Expose completely white-label with your clients. Using custom domains also prevents subdomain collision with other users and it's easy to set up in your account. 

## Configuration

Setting up a domain with Expose requires access to the DNS settings of your domain and adding a CNAME record that points to our infrastructure. To set up the domain, go to the [Domains](https://expose.dev/domains) section and add your domain there. We recommend to use a subdomain like `share.YOUR-DOMAIN.com`. After that, you'll get the CNAME record that you need to set up.

Once you are ready and have added the record, we regularly check your DNS provider to verify the domain – sometimes the DNS record propagates within seconds, sometimes it takes up to 48 hours.

![The Add a custom domain dialog in the Expose dashboard, with domain and region fields and DNS setup instructions](https://expose.dev/img/docs/expose/img/custom-domain.webp)

## Using Custom Domains

After setting up your custom domain, you can append it to your connection request and start sharing via your custom domain.

```bash
expose --domain=share.idontcare.lol
```

## Setting a default domain

You can set your default share domain to your custom domain and omit the `--domain` parameter when opening a tunnel.

```bash
expose default-domain share.idontcare.lol
```

### Clearing the default domain configuration

In case that you want to clear the default domain and go back to the `sharedwithexpose.com` domain, you can use the command to clear the default domain configuration.

```bash
expose default-domain:clear
```
