# Custom CNAME Domains

> Canonical: https://www.isnotai.com/docs/custom-domains
> Summary: Configure first-party custom CNAME domains for Enterprise NotAI deployments, including DNS CNAME setup, TLS provisioning, CSP rules, and verification.

Enterprise Deployment

Enterprise customers can serve the NotAI script and telemetry endpoint from a first-party subdomain of their own domain (for example, `verify.example.edu`) instead of the shared default hosts.

## Why use a custom CNAME domain

- **First-party network hygiene:** Browser requests travel exclusively to your own organization's domain, simplifying strict corporate and campus firewall policies.
- **Reduced filter mis-categorization:** School web filters that categorize domains containing "ai" under blocked AI tools leave your own institution's subdomain untouched.
- **Zero change to data residency:** Your custom domain routes directly into your account's permanent US or EU NotAI region with managed TLS certificates.

## Setup steps

1. Open **Settings**, then **Custom Domains** in your NotAI dashboard (available on Enterprise plans).
2. Enter your chosen subdomain (such as `integrity.example.com`) and copy the DNS CNAME target and verification TXT record shown in the dashboard.
3. Create the DNS CNAME and TXT records with your DNS provider. If you use Cloudflare DNS, set the record to **DNS only (gray cloud)** during verification so NotAI can issue and renew the TLS certificate cleanly.
4. Wait for DNS propagation and TLS issuance (typically a few minutes), then update your script tag or Canvas theme file with the generated first-party script URL from **Settings**, then **Pixel Install**.

## Updating Content Security Policy

Replace the default NotAI hosts in your site's Content Security Policy with your custom domain:

```
Content-Security-Policy:
  script-src 'self' https://integrity.example.com;
  connect-src 'self' https://integrity.example.com wss://integrity.example.com;
```

Ensure your school web filters also allow your custom subdomain without HTTPS decryption on WebSocket traffic (see [Network Requirements](https://www.isnotai.com/docs/network)).

## Verification and troubleshooting

- Confirm `https://<your-subdomain>/api.js` returns HTTP 200 JavaScript over valid HTTPS.
- Confirm `https://<your-subdomain>/health` returns healthy status.
- Verify your site origin is listed under **Settings**, then **Pixel Install**, then **Allowed Origins**.
