Fake-IP vs. Redir-Host: Clash DNS Modes, How They Work, and What to Exclude

Learn how Clash Fake-IP speeds up DNS replies, how it compares with Redir-Host, and how to configure fake-ip-filter for LAN devices, games, and NTP.

How to choose: First determine whether one domain or the whole device is affected

If your connection is otherwise fine and only one device, game, or time-sync service is affected, keep Fake-IP and add an exception for the confirmed domain. Switch to Redir-Host for comparison if multiple apps need real IP addresses or your machine’s corporate VPN uses the same address range. Changing modes does not change your upstream DNS or fix proxy nodes, LAN routing, or firewall issues.

ComparisonFake-IPRedir-Host
IPv4 address returned to the appUsually a synthetic address assigned by the core; excluded domains use regular DNS resolutionUses regular DNS resolution and returns the resolved address
Domain information after a connection is interceptedThe core can map the synthetic address back to the original domainNo synthetic-address mapping; whether the domain is visible depends on the connection and interception method
Best suited forTUN intercepts DNS and connections, with routing primarily based on domainsApps that check real IP addresses, or when you need to avoid conflicts with the synthetic address range

The fields and examples below use mihomo (Clash Meta). Client settings have different toggle names and configuration-override behavior. To verify a setting, check the configuration actually loaded by the core—not just the original subscription file.

Why Fake-IP can reply sooner—and where Redir-Host adds latency

Fake-IP: Defer real DNS resolution until it’s needed

Suppose an app requests an A record for example.com. mihomo can assign an address from its configured synthetic IP pool, such as 198.18.0.12, map it to the domain, and return it to the app. The example uses the 198.18.0.0/15 benchmarking address range, not a public IP belonging to the website. When the app connects to the synthetic address, the core handling the connection can recover the domain and choose a direct or proxied route based on its rules. A direct connection will usually still need the destination address resolved; some proxy outbounds can pass the domain to the remote server for resolution.

Fake-IP skips one upstream lookup during the DNS reply stage; it does not guarantee that pages will load faster overall. Route selection and connection setup can still take time. If DNS returns a synthetic address but the connection does not pass through the same core, you may see the domain resolve successfully while the connection times out. Enabling the system proxy alone does not mean every app’s DNS requests and connections are intercepted.

Redir-Host: Resolve first, then return the real address

Redir-Host does not assign synthetic addresses to regular domains. On a cache miss, apps usually have to wait for the upstream lookup to finish before receiving a reply; with a cache hit, the difference in response time between the two modes may be negligible. Real IPs work better for apps that validate addresses or connect on their own. However, one real IP can serve multiple domains, so don’t assume every transparently intercepted connection can match rules by its original domain. After switching, check the matched rule in the client’s connection or log view instead of testing only whether a page opens.

How to configure fake-ip-filter: Add exact domains first, then consider suffixes

In mihomo’s dns section, enhanced-mode: fake-ip enables Fake-IP. When fake-ip-filter-mode is set to blacklist, domains matching fake-ip-filter use regular DNS resolution. The example below shows how to merge fields; it is not a complete, standalone configuration. If you already have dns, listen, or an exception list, edit or append to it in place, keep your existing upstream settings, and do not add another dns section at the same level.

dns:
  enable: true
  listen: 127.0.0.1:1053
  enhanced-mode: fake-ip
  fake-ip-range: 198.18.0.1/16
  fake-ip-filter-mode: blacklist
  fake-ip-filter:
    - 'printer.home.arpa'
    - 'time.windows.com'
  • LAN devices: printer.home.arpa is just an example; replace it with the device’s actual fully qualified name. Only consider using '+ .home.arpa'—remove the space after the plus sign to write '+.home.arpa'—if you’ve confirmed that the entire home.arpa domain is managed by the same LAN DNS. This matches the domain and its subdomains. An exception changes only how DNS replies are handled. If the upstream DNS server does not know the device’s address, route the domain to a local DNS server that can resolve it, for example by specifying an internal resolver for the domain in nameserver-policy. Devices using .local commonly rely on mDNS for discovery; a regular DNS exception does not replace multicast discovery.
  • Games: Reproduce the login, matchmaking, or update issue, then check the logs for the domains involved. Login domains and game server domains may differ, so add exceptions only for exact domains confirmed to need real DNS replies. If game traffic connects directly to an IP address or the issue is caused by UDP forwarding, adding a domain exception will not fix it.
  • NTP: Keep this exception only if the device actually uses time.windows.com. On Windows, run w32tm /query /peers to check the peers. Domain-joined machines may use an internal time source. If synchronization still fails after DNS returns a real address, check the time service and UDP port 123 connectivity instead of adding more exceptions.

Verification order: Check the core’s DNS reply, then the app’s connection path

  1. Confirm the configuration is loaded. Apply your changes through the client’s configuration override feature and reload it. If you run mihomo from the command line, run mihomo -t -f ./config.yaml in the configuration file’s directory to check whether the current core can load the file. Passing the syntax check does not prove that the client is using that file. Always recheck the active configuration, especially after a subscription update.
  2. Query the DNS listener directly. Run the command below only after confirming that mihomo is listening on 127.0.0.1:1053. Replace the address or port if your listener uses different values. Here, time.windows.com is only used to compare DNS replies, not to test time synchronization.
dig @127.0.0.1 -p 1053 example.com A
dig @127.0.0.1 -p 1053 time.windows.com A

If dig is not installed on Windows, use the built-in nslookup to query the same listener:

nslookup -type=A -port=1053 example.com 127.0.0.1
nslookup -type=A -port=1053 time.windows.com 127.0.0.1
  • With the example configuration, A records for regular domains should fall within 198.18.0.0/16. When an exception domain resolves successfully, its A record should fall outside that pool. If regular domains also return real addresses, check the active enhanced mode and any existing broad filter entries. If you get NXDOMAIN or SERVFAIL, check the domain spelling or upstream DNS first; a failed lookup does not mean the exception is working.
  • If a direct query works but the app behaves the same, close and restart the affected app. On Windows, you can also run ipconfig /flushdns to clear the system DNS cache, but this does not clear caches maintained by individual apps. The app may get a different result if the browser uses encrypted DNS, the app has its own resolver, or TUN’s dns-hijack does not capture the query. These commands verify only mihomo’s listener, not the DNS path used by the entire system.
  • If the app receives a synthetic address but still times out, check the client’s connection log. If there is no corresponding connection, check TUN interception and routing. If there is, check the matched policy, outbound, and error. If you suspect a conflict between a corporate VPN and the synthetic address range, inspect the active routes instead of adding exceptions for every site that fails.

How to tell whether Redir-Host is worth keeping

Save a copy of your current configuration, then change only dns.enhanced-mode to redir-host. Keep the upstream DNS, TUN, proxy nodes, and rules unchanged. Reload the configuration and restart the test app so it does not keep using a cached synthetic address. Use the same command to check the A record, then retest the same issue: Can you open the printer’s admin page? Can the game enter matchmaking? Can the system sync its clock? Record the DNS reply and whether the app recovered as separate results.

If the change fixes just one known domain, switch back to Fake-IP, add an exact exception, and check whether it works just as well. If multiple apps consistently need real addresses, Redir-Host may be a better default for that device, but spot-check that your existing domain rules still match as expected. If both modes fail, troubleshoot the layer where the issue occurs: no DNS reply means check the resolver; an address with no connection means check routing and outbounds; a working connection with a failed service means check the app itself.

Download Clash