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
- Some programs cache or validate IPs and misbehave on fake addresses.
- LAN devices and local domains must be added to the Fake-IP filter list to get real addresses.
- It can conflict with connectivity checks and trigger "limited network" warnings.
The usual fix is to add specific domains to fake-ip-filter, or use real resolution for that program.
Troubleshooting approach
- You can ping an IP but not the domain: most likely DNS.
- Only a few programs misbehave: check Fake-IP compatibility.
- LAN access is broken: check that local domains are in the filter list.
- 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.