What Is a DNS Leak? How Randomized Subdomain Probes Catch It
什么是 DNS 泄漏?随机子域探针是如何抓出真实解析器的
A DNS leak happens when your web traffic goes through a VPN or proxy, but your device still asks your local ISP DNS server to translate domain names into IP addresses. Because ordinary "What Is My IP" sites only check HTTP headers, you need a randomized subdomain probe to see which upstream DNS resolver actually answers your query.
DNS 泄漏指的是:网页正文流量虽然走了代理,但你的电脑或浏览器在把网址翻译成 IP 时,却偷偷问了本地宽带运营商的 DNS 服务器。普通“查我的 IP”网站只能看到 HTTP 出口,必须靠每次现生成的随机子域探针,才能抓出真正替你查域名的上游解析器是谁。
You checked your IP on a regular IP site and saw a US address, assuming everything was private — yet your ISP or local network still saw every domain name you typed.
在普通查 IP 网站上看到自己已经是美国地址,以为万无一失,实际上本地宽带或公司内网的 DNS 服务器依然完整记录了你访问过的每一个域名。
Diagnostic Breakdown (Scene → Risk → Fix)
核心排查对照表(场景 → 风险 → 解法)
| Step in Lookup | Clean Proxied Path | Leaking Path |
|---|---|---|
| Browser asks for random subdomain | Sent into VPN/proxy tunnel | Sent directly to local router / ISP DNS |
| Authoritative probe server sees | Exit-country resolver (e.g. US Google/CF) | Your home ISP resolver IP & city |
| Privacy outcome | Local ISP sees only encrypted tunnel | Local ISP logs every domain you visit |
| 解析环节 | 干净的代理链路 | 发生 DNS 泄漏的链路 |
|---|---|---|
| 浏览器查询随机子域 | 进入代理隧道,由远端节点代查 | 直接发给本地路由器或宽带运营商 DNS |
| 权威探针服务器看到的来访者 | 出口国解析器(如美国 Google/CF) | 你家宽带所属城市的运营商 DNS IP |
| 实际隐私后果 | 本地运营商只能看到加密隧道流量 | 本地运营商能看到你访问的所有域名清单 |
Actionable Commands & Setup
分系统实操命令与设置
Open https://nulltrace.tokenbeez.com/leak-test/ -> Card 2 shows every live upstream resolver
1. Why Random Subdomains Are Necessary
一、为什么一定要用“一次性随机子域”才能测准
If a test used a fixed domain name, your browser cache or an intermediate CDN could answer it without ever hitting the probe server. Generating a fresh 18-character random token on every run guarantees a cache miss, forcing the real recursive resolver to contact our authoritative responder.
如果测漏网站用固定域名,浏览器缓存或中间节点会直接吐出旧结果,根本测不出当前真实链路。每次检测现生成随机子域,能强制穿透所有缓存,逼出此时此刻真正替你发请求的递归 DNS 服务器。
2. Zero-Log Volatile RAM Design
二、90 秒纯内存零日志如何兼顾准确与隐私
Our responder stores only the mapping from the random token to the incoming resolver IP strictly in RAM for 90 seconds, then purges it automatically. No IP addresses or domain queries are ever written to disk.
探针的权威 DNS 节点只在内存里短暂记录“随机口令 → 来访解析器 IP”的映射,90 秒后自动销毁,全程不写磁盘文件、不挂广告追踪。
Frequently Asked Questions
常见疑问
Why do 8–12 Google or Cloudflare IPs show up in one test?
Large anycast resolvers like Google Public DNS and Cloudflare fan out queries across multiple egress IPs in the same metro region. As long as their country matches your exit IP, multiple resolver IPs are completely normal.
为什么一次测试会捕获到七八个 Google 或 Cloudflare IP?
Google 和 Cloudflare 这类大型公共 DNS 采用多出口集群并发解析,同一次查询会从同一地区的不同出口发出。只要归属国家与你代理出口一致,就完全正常。