> ## 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.

# 在 LanderLab 中添加域名

> 在 LanderLab 中添加自定义域名：输入域名并选择可发布的工作区，系统会检查 DNS 并推荐 Cloudflare 或手动 DNS 连接方式。

发布到你自己的域名上，可以强化品牌形象，并提升与广告网络和搜索引擎的兼容性。

添加域名是一个引导式流程：你输入域名，LanderLab 检查其 DNS 由哪里管理，然后推荐连接方式。

## 开始之前

* 你是**管理员**。只有管理员才能添加域名。
* 你拥有该域名，并且可以修改其 DNS 设置。

## 打开 Domains

进入 **Settings > Domains**。所有域名都在这里，并显示其状态以及可以发布到该域名的工作区。

<Frame>
  <img src="https://mintcdn.com/landerlab-babdc23f/uFlGyN3HYm5JP0-g/images/domain-list.jpg?fit=max&auto=format&n=uFlGyN3HYm5JP0-g&q=85&s=3eba8b08806f58b0cc84a2fdc7c5a13b" alt="LanderLab 设置中的 Domains 页面，列出了已连接的域名及其状态" width="1568" height="737" data-path="images/domain-list.jpg" />
</Frame>

## 添加你的域名

<Steps>
  <Step title="输入域名">
    点击 **Add Domain**，并填写第一步：

    | 字段 | 填写内容 |
    | :- | :- |
    | **Subdomain** | 可选。域名前面的部分，例如 `lp`。留空则使用根域名。 |
    | **Domain** | 必填。你的域名，例如 `yourdomain.com`。 |
    | **Workspaces** | 哪些工作区可以发布到这里。**All Workspaces** 也包括你以后创建的工作区。 |

    <Frame>
      <img src="https://mintcdn.com/landerlab-babdc23f/uFlGyN3HYm5JP0-g/images/domain-add-step1.jpg?fit=max&auto=format&n=uFlGyN3HYm5JP0-g&q=85&s=e870f6866a65e900002585d97afd1206" alt="Add New Domain 对话框的第一步，包含子域名、域名和工作区字段" width="1568" height="737" data-path="images/domain-add-step1.jpg" />
    </Frame>

    点击 **Continue**。
  </Step>

  <Step title="选择连接方式">
    LanderLab 会检查你的 DNS 由哪里管理，并预先选择一种方式。你可以在两种方式之间切换：

    * **Cloudflare** — 通过你的 Cloudflare 账号自动管理 DNS。
    * **Manual DNS** — 你在自己的 DNS 服务商处添加一条 DNS 记录。适用于任何域名注册商。
  </Step>

  <Step title="完成连接">
    按照你选择的方式操作：

    <CardGroup cols={2}>
      <Card title="通过 Cloudflare 连接" icon="cloudflare" href="/zh/features/domain/connect-domain-cloudflare">
        只需登录一次 Cloudflare，就能让 LanderLab 自动创建记录。
      </Card>

      <Card title="通过手动 DNS 连接" icon="server" href="/zh/features/domain/manual-connection">
        添加 LanderLab 显示的那一条记录，然后进行验证。
      </Card>
    </CardGroup>
  </Step>

  <Step title="等待变为 Active">
    域名会以 **Pending** 状态出现在列表中，DNS 更改生效后会切换为 **Active**。这通常只需几分钟，但最长可能需要 48 小时。
  </Step>
</Steps>

## 之后管理域名

点击任意域名旁边的**三点菜单（...）**。

<Frame>
  <img src="https://mintcdn.com/landerlab-babdc23f/uFlGyN3HYm5JP0-g/images/domain-row-menu.jpg?fit=max&auto=format&n=uFlGyN3HYm5JP0-g&q=85&s=18a5adce03cd11f5d0d75863494076ae" alt="域名行上的三点菜单，显示 Edit、DNS Records、Settings 和 Delete" width="1568" height="737" data-path="images/domain-row-menu.jpg" />
</Frame>

| 选项 | 作用 |
| :- | :- |
| **Edit** | 更改哪些工作区可以发布到该域名。 |
| **DNS Records** | 重新打开包含待添加记录的验证窗口。在域名处于 **Pending** 状态时很有用。 |
| **Settings** | 索引、备用页面和自定义代码。域名变为 **Active** 后可用。 |
| **Delete** | 从 LanderLab 中移除该域名。 |

## 常见问题

<AccordionGroup>
  <Accordion title="我应该使用哪种方式？">
    如果想要最快、免手动的设置，请使用 **Cloudflare**。如果你的域名在其他地方管理并且你希望继续保留在那里，请使用 **Manual DNS**。
  </Accordion>

  <Accordion title="我可以使用根域名吗？">
    Cloudflare 同时支持根域名和子域名。Manual DNS 通常需要使用子域名，例如 `lp.yourdomain.com`，因为有些 DNS 服务商不允许在根域名上添加所需的记录。
  </Accordion>

  <Accordion title="我看不到 Add Domain 按钮">
    你很可能不是该组织的管理员。
  </Accordion>
</AccordionGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.