# DNS Spoofing（DNS 欺骗）

> 使用 Proxyman DNS Spoofing（DNS 欺骗）将域名指向其他 IP 地址或服务器，同时保持原始 URL 和 Host Header 不变。

## 1. 这是什么？ {#1-whats-it}

DNS Spoofing 可以让开发者：

* 为特定域名提供自定义 DNS
* 将域名映射到其他 IP 地址或域名

![Proxyman DNS Spoofing 窗口，已勾选 Enable DNS Spoofing，且规则将 api.example.com 映射到 127.0.0.1](https://proxyman.com/docs/assets/proxyman-dns-spoofing-window.jpg)

_DNS Spoofing 窗口_

## 2. 与 Map Remote 有何不同？ {#2-what-is-different-with-map-remote}

DNS Spoofing 与 [Map Remote](https://proxyman.com/docs/zh-cn/advanced-features/map-remote) 的不同之处在于：

* 请求 Header 中的 `Host` 不会改变
* URL 不会改变

而 Map Remote 会将 Host Header 和 URL 修改为映射后的值。

## 3. 如何使用？ {#3-how-to-use-it}

1. 打开 **Tools** 菜单 -> **DNS Spoofing…**
2. 使用 **Host Name** 和 **New Remote Address** 创建新规则
3. 完成 ✅
