How to Set Up Fake-IP DNS in Clash Verge Rev on Windows
Understand what Fake-IP DNS changes
Fake-IP is a DNS mode provided by the Mihomo core used by many Clash Verge Rev installations. When an application asks for the address of a domain, Mihomo can return an address from a reserved range, commonly 198.18.0.0/16, instead of immediately returning the website’s real public IP address. The core keeps a mapping between that synthetic address and the original domain. When it later handles a connection to the synthetic address, it can use the saved domain information for rule matching and proxy selection.
This behavior can help domain-based rules work when an application connects using an IP address returned by DNS. It does not mean that every Windows application automatically sends DNS requests to Mihomo, and it does not by itself enable a proxy, encrypt DNS, or route all traffic through a proxy. The result depends on how the request enters the core: system proxy settings, TUN mode, application-specific proxy settings, and DNS handling all matter.
Clash Verge Rev is the graphical client; Mihomo is the core that reads the active configuration and implements DNS behavior. Menu labels change between releases, and a subscription may also supply DNS settings. If the interface does not show a control called “Fake-IP,” inspect the active configuration and core version rather than assuming that a similarly named client switch exists.
Check the core version and configuration source
Before changing DNS, confirm that Clash Verge Rev is running and identify the configuration currently selected in the Profiles area. Make a backup or duplicate the profile first. A subscription profile can be regenerated at its next update, so direct edits to a downloaded file may disappear. Prefer the client’s supported merge, override, or profile-editing feature when available. The exact control name depends on the installed Clash Verge Rev release.
Check the core information in the client’s settings, About panel, or runtime log. Fake-IP fields are Mihomo configuration options; an older or different core may reject them or behave differently. Also verify that the selected profile is the one currently running. Editing a downloaded profile while another profile is active will not change the live DNS settings.
After selecting the profile, locate its configuration editor or the client’s supported DNS controls. Some builds expose DNS options in a settings page; others expect DNS fields to be supplied through profile configuration or an override. If you use an override, make sure it is applied to the selected profile and is not disabled. Avoid maintaining two competing copies of the same DNS section: duplicate YAML keys can produce confusing results, and a later section may replace an earlier one.
Record the existing DNS values before editing, especially any custom nameservers, filters, or domain-specific settings. This makes it easier to restore the previous behavior if a network, application, or subscription depends on those values.
Enable Fake-IP mode safely
In the supported DNS controls, look for an enhanced DNS mode and select fake-ip. If editing YAML, add the following as an example of the DNS structure. Do not paste a second dns: key into a file that already has one; merge the relevant fields into the existing section and preserve any nameservers or filters that you still need.
dns:
enable: true
enhanced-mode: fake-ip
fake-ip-range: 198.18.0.1/16
listen: 127.0.0.1:1053
default-nameserver:
- 223.5.5.5
- 1.1.1.1
nameserver:
- https://dns.google/dns-query
- https://cloudflare-dns.com/dns-query
This is a structural example, not a universal drop-in configuration. Choose upstream DNS servers that are reachable on your network and permitted by your provider. The numeric entries under default-nameserver are bootstrap resolvers used for resolving DNS server hostnames; they are not a promise that every query will use those addresses. Some setups also need a proxy-server-nameserver entry to resolve hostnames used by proxy nodes before the proxy connection is available. Use the fields supported by your installed Mihomo version and retain any required settings from your profile.
The example listens only on the local loopback address. That limits access to the computer itself and avoids exposing a DNS service to the local network. If Clash Verge Rev already manages the DNS listener, do not add a second listener with a conflicting address or port. A port conflict can prevent the core from starting or cause the DNS service to fail. The commonly seen port values are examples only; check the active configuration and runtime log for the actual listener.
Save the supported override or configuration, then reload the profile or restart the core using the client’s controls. Confirm that the configuration loads without errors. A successful profile reload is essential: changing a file on disk does not prove that the running core has applied it.
Apply the settings and test the result
Once the core is running with the intended profile, check the client’s system proxy control. When enabled, Windows applications that respect the system proxy can send supported web requests through Clash Verge Rev. In Windows, the corresponding controls are under Settings > Network & internet > Proxy. The displayed address and port should agree with the active HTTP or mixed proxy listener shown by the client; do not assume the default is always 7890.
Open a new browser window and visit a domain that you have not recently tested. Look at the Clash Verge Rev connection list or logs for the new request. Confirm the domain, destination, matched rule, and selected proxy group where those details are available. If there is no new connection, the browser may be using its own proxy or secure DNS, reusing an existing connection, or bypassing the system proxy. Close and reopen the browser after changing proxy or DNS settings.
Do not use a plain Windows nslookup result as the sole proof that Fake-IP is active. By default, nslookup sends its query to the DNS server configured for the Windows network adapter. That server may not be Mihomo’s listener, even while browser traffic is using the Windows system proxy. Likewise, a browser’s secure DNS feature may contact its own resolver and bypass the DNS path you are trying to test.
For a meaningful test, use the DNS controls or DNS query view provided by the client, if available, and check whether the core records and reuses the domain-to-Fake-IP mapping. If your setup deliberately exposes a local DNS listener, test that exact listener using a DNS client that supports its configured address and port. Then open the same domain in an application whose DNS path you understand and verify the resulting connection in the client’s log. With TUN enabled, also check that DNS requests are actually intercepted according to the active TUN and DNS settings.
Test more than one domain, including a domain that should use a proxy rule and one that should be direct. A DNS answer alone does not prove that the intended routing rule was selected. The connection log is the better place to confirm whether the request was handled by the expected rule and proxy group.
Handle filters and subscription overrides
Some applications and local services work poorly with synthetic addresses, especially when they expect DNS to return a real address or pass a hostname to another system component. Mihomo configurations can use fake-ip-filter to exclude selected domains from Fake-IP handling. Keep any existing filter entries when adjusting a subscription-generated profile. Add only domains you have a reason to exclude; broad patterns can make DNS behavior harder to predict and can undermine domain-based routing.
dns:
fake-ip-filter:
- "*.lan"
- "localhost"
- "+.example.local"
The entries above illustrate the form of a filter list, not a list that must be copied into every configuration. A filter changes how matching names are resolved, so check the Mihomo version’s supported pattern syntax and your own network requirements. Local device names, router hostnames, captive portals, or software with unusual DNS behavior may need different treatment. Add one narrow exception at a time, reload the profile, and repeat the same test so you can identify which change made a difference.
If Fake-IP stops working after a subscription update, compare the active configuration before and after the update. The subscription may have replaced the DNS section, changed the selected profile, or disabled an override. Reapply the setting through the client’s supported merge mechanism rather than repeatedly editing a generated file that will be overwritten. Also check the runtime log for YAML parsing errors, unsupported fields, listener conflicts, or failed upstream queries.
When a subscription offers remote configuration controls, the provider may control some DNS fields or deliver a complete profile. In that case, a local setting may have lower priority than the subscription, or the client may combine the two in a particular order. Confirm which configuration is active and which override wins before changing unrelated DNS fields.
Troubleshoot common Fake-IP problems
When a website stops resolving, first determine whether the core is running and whether the active profile loaded successfully. Check the runtime log for DNS errors, failed upstream connections, invalid YAML, or a port already in use. Temporarily restore the backed-up DNS settings if you need to recover connectivity, then change one field at a time. Switching proxy nodes before confirming DNS operation can obscure the actual cause.
If browsing works but no Fake-IP mapping is visible, verify the path in stages: the correct profile is active, the core supports the configured fields, the DNS service is enabled, and the application is using that service rather than its own resolver. Disable browser secure DNS temporarily for a controlled test, and close existing browser sessions so cached answers or reused connections do not affect the result. Restore the browser setting afterward if you normally rely on it.
If domains resolve but route incorrectly, inspect the connection log and rule order. DNS mode does not replace routing rules. A domain rule, an IP rule, a rule provider, and the final catch-all rule can produce different outcomes. Check the rule actually matched and the proxy group it selected; do not infer the routing decision from the DNS answer alone.
If some local devices or applications fail while ordinary websites work, test whether they need real DNS answers or use a DNS path that bypasses Mihomo. Review the relevant filter entries, Windows adapter DNS configuration, TUN state, and application-specific network settings. If you enabled TUN only for this test, confirm that its required permissions and service state are healthy, then disable it again if it is not part of your intended setup.
Frequently asked questions
Does Fake-IP proxy every Windows application?
No. Fake-IP is a DNS behavior, not a system-wide proxy switch. An application must use a DNS path handled by Mihomo, and its traffic must enter the core through a supported path such as a system proxy or TUN. Some programs ignore Windows proxy settings or use their own DNS resolver.
Why does nslookup show a public address?
It may be querying the DNS server assigned to the Windows network adapter instead of Mihomo. Check which server the command used and whether your client exposes a local DNS listener. Browser secure DNS and cached responses can also make a test appear inconsistent.
Can I edit the subscription YAML directly?
You can edit a local copy, but a subscription refresh may overwrite the change, and the edited file may not be the active profile. Back up the configuration and use Clash Verge Rev’s supported override or merge feature where possible.
Should I change the Fake-IP range?
Usually not. Keep the core’s documented default unless it conflicts with a network route or another local service. If you change it, confirm that the range is suitable for your environment and supported by the installed Mihomo version, then test DNS, routing, and local applications again.