# Custom domain

Serve your docs from an address of your own, like docs.example.com.

Every site is reachable at `https://<slug>.docsheaf.io`. Give it your own address so readers stay on
your brand — and search engines credit your domain.

{% stepper %}
{% step %}
### Enter the domain

Open the site's **Settings → Domain and URL** and enter the domain: a subdomain such as
`docs.example.com` or a root domain such as `example.com`. Enter only the domain, without `https://`,
a port or a path. Pick one you don't use for anything else: the site takes over the whole domain.
{% endstep %}

{% step %}
### Add the DNS records

Docsheaf shows the records to create at your DNS provider: the record that points the domain to
Docsheaf, and the records that prove you own it and let us issue its certificate. Copy them exactly.

{% hint style="warning" %}
If your DNS is on Cloudflare, set these records to **DNS only** (grey cloud). Proxied records stop the
domain from verifying.
{% endhint %}

On a root domain, most DNS providers don't allow a `CNAME` record. If the routing record shown is a
`CNAME`, create it as an `ALIAS` or `ANAME` record, or use your provider's CNAME flattening. `www.` is a
separate domain: a site serves only the one domain you enter.
{% endstep %}

{% step %}
### Wait for verification

Docsheaf checks pending domains every few minutes and issues the certificate automatically. Choose
**Check now** to look again at once. The domain turns **active** once ownership, the certificate and
the routing all check out.
{% endstep %}
{% endstepper %}

Once the domain is active, it becomes the site's canonical address: search engines, the sitemap,
llms.txt and social previews all use it. The `docsheaf.io` address keeps working.

## Troubleshooting

| Status | What to do |
| --- | --- |
| **Pending** for hours | Compare the records at your DNS provider with the ones shown, character by character. Remove any old records for the same name. |
| **Failed** | Verification gives up after about 12 hours. Fix the records, then remove the domain and add it again. |
| "Domain not allowed" | You entered a `docsheaf.io` address, Docsheaf's own domain, or a domain with "docsheaf" in it (such as `docsheaf.dev` or `docs-docsheaf.com`), which are reserved for Docsheaf. Use a domain you own. |

Custom domains are part of the Starter plan and above, and follow the site's tier. Changing or removing a domain
releases the old one at once.
