---
title: "Connect a Custom Domain & Automatic HTTPS"
description: "Attach a custom domain or subdomain to any Hosted EZ site using Hosted EZ Domains, Hosted EZ DNS, or External DNS with automatic TLS 1.3 and HTTP/3 certificates."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.hostedez.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect a Custom Domain & Automatic HTTPS

Every Hosted EZ site launches with an instant preview URL (`https://<slug>.hostedez.site`). When you are ready to go live on your own domain (`example.com`, `www.example.com`, or `docs.example.com`), attach it in **Site → Domains**—Hosted EZ provisions and renews TLS 1.3 + HTTP/3 certificates automatically.

## Choose a DNS routing mode

Hosted EZ supports three DNS modes depending on where your domain is registered and where you want to manage DNS records:

| Mode | When to use it | What you configure |
| --- | --- | --- |
| **Hosted EZ Managed** | Domain registered directly through **Hosted EZ Domains** | Nothing—nameservers, web routing, email records (if enabled), and HTTPS are configured automatically |
| **Hosted EZ DNS** | Domain registered at another registrar (Namecheap, Porkbun, GoDaddy, etc.) and you want to manage DNS in Hosted EZ | Point your domain's nameservers at your registrar to the assigned Hosted EZ nameservers, then click **Check DNS** |
| **External DNS** | Keep your existing DNS provider (Cloudflare, Route 53, DNSimple, etc.) | Add the verification `TXT` record and web routing `CNAME` (or `ALIAS`/`ANAME` for apex) at your DNS provider, then click **Check DNS** |

## Connect your domain

1. **Open the site's Domains tab**

   In [app.hostedez.com](https://app.hostedez.com/dashboard), open your site and select the **Domains** tab, then click **Connect domain**.

2. **Enter your hostname and choose a routing mode**

   Enter the domain or subdomain you want to serve (for example, `docs.example.com` or `example.com`). Hosted EZ detects domains already registered in your account automatically.
3. **Configure DNS according to your mode**

### Hosted EZ Managed

No manual DNS edits are required. Hosted EZ creates the routing records inside your zone and requests your HTTPS certificate automatically.
### Hosted EZ DNS

1. Copy the assigned **Nameservers** displayed in the onboarding panel.
2. Sign in to your domain registrar and replace the existing nameservers with the Hosted EZ nameservers.
3. Return to **Site → Domains** and click **Check DNS**. Once delegation propagates, manage all records in the [DNS Zone Editor](/domains/dns-zone-editor).
### External DNS

1. Copy the **Required DNS records** shown in the onboarding panel:
- **Verification `TXT` record**: confirms domain ownership before routing and TLS issuance.
- **Web routing `CNAME` record**: points your subdomain (such as `www` or `docs`) to your site's routing target.
- **Apex domains (`@`)**: use **CNAME flattening**, **`ALIAS`**, or **`ANAME`** at your DNS provider (DNS specifications do not allow a bare `CNAME` at the zone apex).
2. Save the records at your DNS provider (disable any proxy orange-cloud initially if your provider intercepts `/.well-known/acme-challenge/`).
3. Click **Check DNS** in Hosted EZ.

4. **Confirm Active status & HTTPS**

   Status progresses from **Pending DNS** → **Verifying** → **Active**. Once **Active**, Hosted EZ serves your custom domain over HTTPS with automatic certificate renewal.

## Automatic HTTPS, TLS 1.3 & HTTP/3

Once DNS verification succeeds, Hosted EZ automatically:

- Issues and renews a TLS certificate via ACME HTTP-01 (`/.well-known/acme-challenge/` is reserved automatically and bypasses maintenance mode and password protection).
- Enables **TLS 1.3**, **HTTP/2**, and **HTTP/3 (QUIC over UDP/443)** with `Alt-Svc: h3=":443"; ma=86400`.
- Redirects all plain HTTP (`:80`) requests to HTTPS with a `301` redirect.
- Sends `Strict-Transport-Security: max-age=31536000; includeSubDomains` and `X-Content-Type-Options: nosniff` on HTTPS responses.

## Domain status reference

| Status | Meaning |
| --- | --- |
| **Pending DNS** | Required DNS records or nameserver delegation have not been detected yet. Verify records at your provider and click **Check DNS**. |
| **Verifying** | DNS matches; Hosted EZ is issuing and installing your TLS certificate. |
| **Active** | Routing and HTTPS are live. |
| **Failed** | Verification or certificate issuance failed—check for conflicting `CAA` records or DNS proxies blocking `/.well-known/acme-challenge/`. |

## Connecting both apex (`example.com`) and `www`

To serve both `example.com` and `www.example.com`:

1. Connect both `example.com` and `www.example.com` under **Site → Domains**.
2. Decide your canonical hostname (for example, `https://example.com`).
3. For WordPress, confirm **Site Address (URL)** in WP Admin (or via `wp option get home` in the Browser Terminal) matches your canonical domain.

## Troubleshooting DNS & TLS

- **DNS propagation delay**: Check what public resolvers currently see before clicking **Check DNS**:

  ```bash
  dig +short CNAME docs.example.com
  dig +short TXT _hostedez-verify.docs.example.com
  ```

- **Conflicting `CAA` records**: If your domain publishes DNS `CAA` records, make sure they allow Let's Encrypt (`0 issue "letsencrypt.org"`) so automatic TLS issuance succeeds.
- **Nextcloud `trusted_domains`**: On Nextcloud sites, verify your new custom domain is included in `trusted_domains` via `occ config:system:get trusted_domains`.

Source: https://docs.hostedez.com/domains/connect-custom-domain/index.mdx
