# DNS Setup

## Hostnames

Your tenant uses these hostnames:

| Purpose           | Hostname                 |
| ----------------- | ------------------------ |
| Public site       | `<rootDomain>`           |
| Public site alias | `www.<rootDomain>`       |
| Public API        | `api.<rootDomain>`       |
| Admin dashboard   | `admin.<rootDomain>`     |
| Admin API         | `admin.api.<rootDomain>` |

## Records To Add

We will send you DNS records after setup begins. You do not need to choose the app, API, or admin targets yourself.

Add each record exactly as provided.

### Validation CNAMEs

These prove that you control the domain.

Example:

| Type  | Name                  | Value                         |
| ----- | --------------------- | ----------------------------- |
| CNAME | `_abc123.example.com` | `_xyz987.acm-validations.aws` |

### App Connection CNAMEs

These connect your hostnames to the app.

Example:

| Type  | Name                    | Value                    |
| ----- | ----------------------- | ------------------------ |
| CNAME | `www.example.com`       | target value we send you |
| CNAME | `api.example.com`       | target value we send you |
| CNAME | `admin.example.com`     | target value we send you |
| CNAME | `admin.api.example.com` | target value we send you |

### Root Domain

For the root domain, such as `example.com`, use the first option your DNS provider supports:

| Option    | Record                                                              |
| --------- | ------------------------------------------------------------------- |
| Preferred | `ALIAS`, `ANAME`, or flattened CNAME to the root target we send you |
| Fallback  | Redirect `example.com` to `www.example.com`                         |

## Cloudflare

If you use Cloudflare, keep the records DNS-only during setup. This means the gray cloud, not the orange proxied cloud. After setup is complete, ask us before enabling proxying.

## After Adding Records

Send us:

* Confirmation that all records were added.
* Screenshots of the DNS records.
* Which root-domain option you used: `ALIAS`, `ANAME`, flattened CNAME, or redirect.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.anwhitelist.com/custom-domains.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
