中文
Home › Guides › DNS and Fake-IP: why bad settings make some sites fail

DNS and Fake-IP: why bad settings make some sites fail

A plain look at DNS problems in proxy setups, the difference between Fake-IP and Redir-Host, and where to look for common symptoms.

ContentsWhy DNS matters with a proxyTwo common modesCommon side effects of Fake-IPTroubleshooting approachA reminder

Why DNS matters with a proxy

Before visiting a site, the device must resolve the name to an IP. If the wrong DNS server is used, you may get results unsuited to the current network, or the lookup may bypass the proxy and cause a "DNS leak".

Two common modes

Redir-Host (real-IP mode): the client does a real DNS lookup first, then routes by IP. Compatibility is good, but the lookup itself may be slow or leak.

Fake-IP: the client immediately returns a virtual address (from a reserved range) for each name. The app connects to the fake IP, and the client maps it back to the domain and applies rules. Resolution is nearly instant and avoids local lookup leaks.

Common side effects of Fake-IP

The usual fix is to add specific domains to fake-ip-filter, or use real resolution for that program.

Troubleshooting approach

  1. You can ping an IP but not the domain: most likely DNS.
  2. Only a few programs misbehave: check Fake-IP compatibility.
  3. LAN access is broken: check that local domains are in the filter list.
  4. To check for DNS leaks: use a leak-test site and compare it with your proxy exit.

A reminder

Exact config fields vary with core versions. Read the official Mihomo or sing-box docs and do not copy examples from a different version.

Apps mentioned

Mihomo (Clash.Meta)

The most active core in the Clash ecosystem; many graphical clients are built on it.

WindowsMacLinuxOpenWrt
Core / serverOpen sourceFreeMihomo
★ 36,057 · v1.19.34Details

Clash Verge Rev

Tauri-based desktop client with the Mihomo core built in; supports subscription import, TUN and system proxy switching.

WindowsMacLinux
ClientOpen sourceFreeMihomoUnverified
★ 160,419 · v2.5.10Details

sing-box

Universal proxy platform: both a core and an official graphical client, configured mainly in JSON.

AndroidiPhone/iPadMacWindowsLinuxOpenWrtApple TV
ClientOpen sourceFreesing-boxUnverified
★ 40,260 · v1.14.4Details

Keep reading