Fake-IP is the setting that makes TUN mode fast and makes everything that inspects DNS answers wrong. It is not a DNS feature in the usual sense, and the failure it causes does not look like a DNS failure.

What it actually does

In fake-ip mode the client answers every A/AAAA query with an address from a reserved range it owns — typically 198.18.0.0/16. That address is not reachable and was never meant to be. It is a tag: when a packet is sent to it, the client looks up which domain that tag was issued for, applies the routing rules to that domain, and connects to the real address itself.

The consequences follow from one sentence: the address your application sees is not the address it is talking to.

1. Pings and connectivity checks lie

ping 198.18.0.5 may succeed while nothing works, or fail while everything works. The ICMP packet goes to a synthetic address the client handles specially. Latency measured this way is the latency of the fake path, not the node.

2. Anything that resolves and then connects separately breaks

This is the common one. An application that calls getaddrinfo(), caches the result, and connects later — or passes the IP to a subprocess — is now connecting to 198.18.x.x from a process the client may not capture. If that subprocess is outside the TUN interface, the connection goes nowhere.

Symptoms: the browser works, a CLI tool does not; or a tool works on first call and fails on retry; or a health check reports the service down while it is up.

3. Rules that match on IP behave differently

A rule like GEOIP,CN,DIRECT evaluates the real destination, which the client only knows because it remembers the domain. So GEOIP rules keep working. But a rule that matches on a literal IP in a config file, or a DNS-based blocklist that returns 0.0.0.0, does not — the client sees a fake address and the domain behind it.

The reverse case is the interesting one: a rule-set that contains a domain which the client cannot resolve to a real address in time may silently fall through to the default proxy, which is why "one site ignores my rules" is a fake-ip symptom.

4. The filter list is a real config surface

Because the fake range is allocated per domain, there is a filter list that controls which domains are exempt (returned with real addresses). It has its own syntax and its own error messages. A wildcard inside a label — *.example.com nested in the middle of a pattern — is rejected, and the rejection message names a character offset rather than the domain, which makes it look like a corruption rather than a syntax error.

If you have hit that specific message, the index-based error is explained here: fake-ip filter invalid domain.

When to turn it off

Turn fake-ip off if you need any of: real addresses visible to applications, IP-based rules that match literal values, local network discovery that depends on mDNS answers, or debugging with tools that print the resolved IP. Turn it back on when you want fast startup and per-domain routing without a DNS round trip per connection.

The middle ground is redir-host, which resolves for real and loses the per-connection domain mapping. That trades one class of failure for another, and the trade is worth understanding before flipping the switch — the layer-by-layer view is in TUN mode: what changes.