> For the complete documentation index, see [llms.txt](https://docs.ipcheck.ing/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ipcheck.ing/knowledge-base/zh/lookup-privacy/dns-resolver.md).

# DNS 解析器

## 它的作用

每次你打开网站时，你的设备都会请求 DNS 解析器将域名转换为 IP 地址。不同的解析器可能会给出不同的答案。

这个 **DNS 解析** 该工具会同时向一组知名的公共解析器提出同一个问题，然后并排显示每个答案。你无需在设备上更改任何设置。查询是在 IPCheck.ing 服务器上进行的，而不是从你的电脑发起的。

这是最快的方式，可以查看你的网络给出的答案是否与世界其他地方看到的一致。

## 如何运行

{% stepper %}
{% step %}

### 打开工具

前往 **高级工具** 并点击 **DNS 解析** 卡片。它会在面板中打开。你也可以在以下地址将其作为独立页面打开： `/tools/dnsresolver`.
{% endstep %}

{% step %}

### 选择记录类型

在 **记录**，请选择以下之一 `一个`, `AAAA`, `CNAME`, `MX`, `NS`, `TXT`. `一个` 默认已选中，是回答“这个网站使用哪个 IP？”的正确选择。
{% endstep %}

{% step %}

### 输入域名

在框中输入域名或粘贴完整 URL 即可。URL 也完全没问题，因为工具会从中提取主机名。按 Enter，或点击播放按钮。
{% endstep %}
{% endstepper %}

## 读取结果

结果会显示在一个两列表格中： **DNS 提供商** 和 **解析结果**.

每个提供商名称都带有一个标签：

| 标签         | 含义                               |
| ---------- | -------------------------------- |
| `(DNS)`    | 通过普通 DNS 查询，即传统的未加密协议。           |
| `(DoH 🔒)` | 通过 DNS-over-HTTPS 查询，即同一请求的加密版本。 |

通过普通 DNS 查询的提供商包括 Google、Cloudflare、OpenDNS、Quad9、ControlD、AdGuard、AliDNS、DNSPod、114DNS 和 DNS4EU。Google、Cloudflare、AdGuard 和 AliDNS 也会通过 DoH 查询，因此你可能会看到同一个名称出现两次，但标签不同。

`不适用` 表示该提供商未返回任何内容。要么不存在该类型的记录，要么服务器无法访问该提供商，要么请求超时。单个 `不适用` 本身并不成问题。

### 为什么答案会不同，以及为什么这通常是正常的

出现不同答案很常见，通常也无害：

* **CDN。** 大型网站由多个数据中心提供服务。欧洲的解析器和亚洲的解析器会被指向不同的边缘服务器。
* **地理 DNS。** 某些服务会根据查询来自哪里而返回不同的 IP。
* **负载均衡。** 一个域名可以有多个 IP，并轮流返回，因此相隔一秒的两次查询可能会不同。
* **缓存。** 在缓存过期之前，解析器可能仍在返回较旧的答案。

参见 [DNS 如何工作](/knowledge-base/zh/concepts/how-dns-works.md) 以了解背景。

### 当差异可疑时

{% hint style="warning" %}
某些网络会对特定域名返回故意错误的答案。工具在自己的说明中也提到：内置的多个提供商位于中国，它们对某些域名的答案可能会被污染。阅读结果时请记住这一点。
{% endhint %}

值得再看一眼的模式：

* 大多数提供商都给出同一组 IP，而一两个却返回完全不同的结果。
* 提供商返回了私有地址或保留地址（以以下内容开头： `10.`, `192.168.`，或 `127.`）
* 提供商返回了属于无关网络或国家的地址。

如果你看到这些模式之一，请检查你自己的设备在做什么。它可能也在获取同样错误的答案。

<details>

<summary>我应该选择哪种记录类型？</summary>

* **一个** — 网站的 IPv4 地址。从这里开始。
* **AAAA** — 网站的 IPv6 地址。
* **CNAME** — 指向另一个名称的别名。常见于位于 CDN 后的网站。
* **MX** — 接收该域名邮件的邮件服务器。
* **NS** — 该域名的权威名称服务器。
* **TXT** — 自由格式的文本记录，用于域名验证和电子邮件规则（如 SPF）。

</details>

## 下一步做什么

* 怀疑是你自己的解析器出了问题？请查看 [我的 DNS 被劫持或污染了吗？](/knowledge-base/zh/diagnose/is-my-dns-hijacked.md).
* 想知道你的设备实际上使用哪些解析器？运行 [DNS 泄漏测试](/knowledge-base/zh/connection-tools/dns-leak-test.md).
* 网站完全打不开？请先查看 [无法打开网站？](/knowledge-base/zh/diagnose/cant-open-a-website.md).
* 想知道返回的 IP 属于谁？用以下工具查询： [Whois 搜索](/knowledge-base/zh/lookup-privacy/whois-search.md).


---

# 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.ipcheck.ing/knowledge-base/zh/lookup-privacy/dns-resolver.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.
