> For the complete documentation index, see [llms.txt](https://docs.prevps.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.prevps.com/documentation/documentation-zh/yu-ming/guan-li-dns-ji-lu.md).

# 管理 DNS 记录

## 管理 DNS 记录

DNS 记录将您的域名连接到服务器和服务。

### 常见记录类型

* **A**：将名称指向 IPv4 地址。
* **AAAA**：将名称指向 IPv6 地址。
* **CNAME**：将一个名称别名为另一个名称。
* **MX**：邮件路由。
* **TXT**：验证和邮件认证（SPF/DKIM/DMARC）。

### 典型设置

#### 在 VPS 上托管的网站

* `A` 的记录 `@` → 您的 VPS IPv4
* 可选 `A` 的记录 `www` → 您的 VPS IPv4，或 `CNAME www → @`

#### 邮件可达性

* SPF（TXT）
* DKIM（TXT）
* DMARC（TXT）

{% hint style="warning" %}
错误的 MX/TXT 记录可能会导致邮件中断。一次只做一项更改。
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.prevps.com/documentation/documentation-zh/yu-ming/guan-li-dns-ji-lu.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
