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

# Connect Domain via Cloudflare Integration

> Connect domains via Cloudflare to automatically configure DNS, speed up setup, and publish landing pages on your own domain.

Connecting your own domain to LanderLab is one of the most important steps in setting up your account. It allows you to publish and serve landing pages through your own domain, which strengthens your branding and improves compatibility with major ad networks and search engines.

Connecting through **Cloudflare** is the fastest and recommended method. When connected, LanderLab automatically manages the required DNS records for your landing pages, so there is no manual configuration needed.

## Before You Begin

Make sure you have:

* An **active Cloudflare account**
* Your **domain already added to Cloudflare** (or ready to be transferred)
* Your **Cloudflare Global API Key** (see [how to find your API key](https://developers.cloudflare.com/fundamentals/api/get-started/keys/))
* Admin permissions in LanderLab

<Note>
  LanderLab uses Cloudflare to handle DNS queries and configure settings for landing pages. We strongly recommend transferring your domain to a free Cloudflare account and then linking it to LanderLab for the best performance.
</Note>

If you have not connected your Cloudflare account yet, follow the [Add Cloudflare Account](/features/domains/add-cloudflare-account) guide first.

<Frame>
  <img src="https://mintcdn.com/landerlab-babdc23f/nMEio-qI-knewBAG/images/Group42-1.png?fit=max&auto=format&n=nMEio-qI-knewBAG&q=85&s=21a11f06c72b2bf572bb6ef680a78b9f" alt="Group42 1" width="1920" height="992" data-path="images/Group42-1.png" />
</Frame>

## Step 1: Open the Domains Settings

1. Log in to your **LanderLab dashboard**.
2. Go to **Settings**.
3. Click **Domains**.

You will see the list of your connected domains.

## Step 2: Click Add Domain

1. Click **Add Domain** in the top-right corner.
2. The **Add New Domain** window will open.

Make sure **Cloudflare (Recommended)** is selected. You will see that it says "DNS is managed automatically. The fastest and easiest way."

## Step 3: Enter Domain Information

Fill in the required fields:

| Field                  | Description                                                                                    |
| :--------------------- | :--------------------------------------------------------------------------------------------- |
| **Subdomain**          | Enter the subdomain you want to use for landing pages (example: `lp`). This field is optional. |
| **Domain**             | Enter your main domain (example: `yourdomain.com`)                                             |
| **Workspace**          | Choose which workspace can publish pages to this domain                                        |
| **Cloudflare Account** | Select the Cloudflare account connected to LanderLab                                           |

Example configuration:

```text theme={null}
Subdomain: lp
Domain: yourdomain.com
```

This will create the domain:

```text theme={null}
lp.yourdomain.com
```

<Tip>
  If you want to serve landing pages directly from your root domain, you can leave the subdomain field blank. However, using a dedicated subdomain is recommended to keep landing page traffic separate from your main website.
</Tip>

## Step 4: Choose Workspace Access

You can choose how the domain is used across your workspaces.

**Options**

* **All Workspaces** - any workspace can publish landing pages to this domain, including new workspaces created in the future
* **Specific Workspace** - restrict publishing to a specific workspace only

## Step 5: Add the Domain

Click **Add Domain**.

LanderLab will automatically configure the necessary DNS records through your connected Cloudflare account.

## Step 6: Update Your Domain Nameservers

After clicking **Add Domain**, LanderLab will display a **Domain Nameservers** window. This window shows the two Cloudflare nameservers that your domain needs to point to.

You need to update your nameservers at the **domain registrar** where you purchased your domain (for example: Namecheap, GoDaddy, or any other registrar).

To update your nameservers:

1. Copy the two nameservers shown in the window (use the **Copy** button next to each one).
2. Log in to your **domain registrar**.
3. Go to the **DNS or Nameserver settings** for your domain.
4. Replace the existing nameservers with the two Cloudflare nameservers you copied from LanderLab.
5. Save the changes.

<Note>
  The nameservers shown are unique to your Cloudflare account. Always use the exact values displayed in the LanderLab window rather than copying them from other sources.
</Note>

<Note>
  Nameserver changes can take anywhere from a few minutes to 48 hours to propagate globally, depending on your registrar. Most updates complete within a few hours.
</Note>

### How to Find Nameservers Again

If you closed the nameserver window or need to view the nameservers later, you can retrieve them at any time:

1. Go to **Settings** then **Domains** in your LanderLab dashboard.
2. Find the domain in your list. It will show a **Pending** status.
3. Click on the **Pending** status label.
4. The **Domain Nameservers** window will open again with the nameservers you need.

## Step 7: Wait for Activation

After updating your nameservers:

* The domain will appear in the **Domains list** with a **Pending** status.
* Once the nameserver changes propagate, the status will change to **Active**.

No further action is needed from your side while the domain is pending.

Your domain will then be available when **publishing landing pages**.
