Skip to content
CMFA Guide

DNS and fake-ip problems

fake-ip is not a bug — it is what makes domain routing possible: the core stores a fake address as a reminder of which domain a connection wants. Understand it and you can tell whether resolution broke or an app bypassed it.

What 198.18.x.x means

That is the fake-ip range (198.18.0.0/15). When an app resolves a domain, the core returns a free address in that range instead of the real IP, and records the mapping. When the app connects there, the core knows the domain and routes by name rather than waiting for an IP.

So 198.18.x.x in the log is a good sign. A real IP is not automatically bad — the rule may be IP-based, or the app may have resolved the domain itself.

Four anomalies, four causes

SymptomCauseFix
Domains resolve to wrong IPsUpstream DNS returned poisoned answersEnable DNS hijacking so the core resolves
One domain never loads, others fineThe FakeIP filter exempted it to real resolutionRemove it from the filter, or flip the mode
Certificate errors inside an appDomain and certificate disagree — interceptionRemove capture certificates, quit related VPNs
Intranet addresses unreachableIntranet domains resolved to fake-ipAdd them to the FakeIP filter

Scroll the table sideways

The first two are the common ones. Each is one switch — do not change several at once.

Resolution checks in order

  1. 01

    Enable "DNS hijacking"

    Override → DNS hijacking. It takes every DNS packet and is what makes fake-ip work.

  2. 02

    Confirm the FakeIP filter mode

    Blacklist means listed domains skip fake-ip; whitelist means only listed domains use it. Inverted, a whole set of domains misresolves. Test immediately after changing.

  3. 03

    Add intranet and special domains

    Router admin pages, NAS, corporate intranet and .local names should never use fake-ip. Add them, with the mode from the previous step.

  4. 04

    Turn off system Private DNS

    See connected, no internet. Private DNS forces DoT and bypasses the core.

  5. 05

    Check hosts and "resolve pure IP connections"

    With "Use hosts" on, local hosts wins. Separately, "resolve pure IP connections" makes the core reverse-look-up IPs, which rescues some apps that only connect by address.

Why some apps never obey fake-ip

Any app that resolves DNS itself and connects straight to an IP defeats fake-ip: browsers with built-in DoH, some games, apps using HTTPDNS, and clients with hard-coded addresses.

For that traffic only the IP remains, so IP-CIDR and GEOIP rules are all you have. That is missing information, not a misconfiguration. You can only change the app or accept IP-based routing.

Do not override the core DNS with a public resolver

Setting Wi-Fi DNS to 8.8.8.8 sends some lookups around the core and kills fake-ip. Either leave DNS on DHCP, or set Name Servers in Override — not both.

Resolution questions

The log target is 198.18.0.1 — is that normal?
Yes, a typical fake-ip address. If it routes correctly, the path is fine.
Ping to a domain fails with fake-ip on
Expected. fake-ip serves TCP and UDP connections; ICMP does not use the mapping, so ping proves nothing in this mode.
How many FakeIP filter entries do I need?
Only the necessary ones: intranet domains, services needing real IPs such as some games and LAN devices, and domains with known problems. Large lists belong in rule-providers.
Will another Name Server fix poisoning?
Sometimes. Override accepts DoH/DoT Name Servers, but only if the query itself is not hijacked. More reliable is proxying DNS by combining DNS hijacking with proxy rules.