# Publish on your own domain

> Give a document a dedicated Hyperclay subdomain, then connect your own custom domain with automatic TLS.

Source: https://hyperclay.com/docs/guide/domains/

Every document you create in Hyperclay starts with an address under your account namespace, such as `<username>.hyperclay.com/<document>.html`. When you are ready to publish a document at its own root address, you can promote it to a dedicated `.hyperclay.com` subdomain first, and connect a custom domain you own whenever you want. Both options are included on the [Personal and Maker plans](https://hyperclay.com/docs/billing/).

## Step 1: Claim a Hyperclay subdomain

A Hyperclay subdomain gives your document a short address like `my-project.hyperclay.com` without buying a domain or editing DNS records.

1. Open the document's menu and choose **Domains** (or open its **Domains** tab).
2. In the **Current address** row, click **Change**.
3. In the **Hyperclay subdomain** field, type the subdomain name you want before `.hyperclay.com`. Names use lowercase letters, numbers, hyphens, and underscores.
4. Click **Claim subdomain** (or **Change subdomain** if the document already has one).

Your document is immediately live at `https://<subdomain>.hyperclay.com`. Changing an existing subdomain updates the document's public address, so links using an earlier claimed subdomain stop working.

Personal plans start with 3 subdomains (growing by 1 each month up to 10), and Maker plans start with 6 (growing by 2 each month up to 25). For naming rules and how folder paths and addresses fit together, see [Addresses and subdomains](https://hyperclay.com/docs/addresses/).

## Step 2: Connect your own domain

When you have a domain of your own at a DNS provider or registrar, connect it in the same **Domains** panel.

**Step 1: Add the domain in Hyperclay**

In the document's **Domains** panel, under **Custom domains**, click **Add domain**. Enter a bare domain such as `example.com` or a subdomain such as `app.example.com`. If you enter a bare domain, leave **Also send `www.<domain>` here** checked so `www.<domain>` redirects to the bare domain, then click **Add domain**.

**Step 2: Create the DNS records at your provider**

Look at the **DNS setup** table on the **Domains** page and copy each record into your DNS provider:

- A **Traffic** record: an `A` record pointing to `5.161.29.91` for a bare domain, or a `CNAME` record pointing to `domains.hyperclay.com` for a subdomain.
- A **Validation** record: a `CNAME` record for `_acme-challenge.<domain>` pointing to the validation target shown in the table. Keep this record in place permanently so TLS certificates can renew.

If you checked **Also send `www.<domain>` here**, add the `www` records listed in the table as well.

**Step 3: Check that the domain is live**

After saving your DNS records, return to the **Domains** panel and click **Refresh status**. Once DNS propagation finishes and the certificate is provisioned, **Status** changes to **Active** and **TLS** changes to **Issued**.

For wildcard domains, Cloudflare settings, status meanings, and removing a domain, see [Custom domains](https://hyperclay.com/docs/custom-domains/).
