1. Understand Fake-IP before editing the profile
This guide is for macOS users who already run Clash Verge Rev with a Mihomo-compatible subscription or local profile and need to configure Fake-IP DNS deliberately rather than copying an unexplained YAML block. Fake-IP is not a proxy protocol and it does not make a slow node faster. It is a DNS handling mode in which Mihomo returns an address from a synthetic pool, remembers the relationship between that address and the original hostname, and later uses the mapping when the application opens a connection.
The main benefit is that Clash can preserve the hostname while applying domain-based rules. A rule such as DOMAIN-SUFFIX,example.com,Proxy remains useful because Mihomo knows that a synthetic address belongs to example.com. This is especially valuable when several services share an IP address, when a CDN changes its answers frequently, or when you want routing decisions to follow the requested domain instead of a potentially misleading resolved address.
On macOS, however, three separate layers can be confused. The first is the profile DNS configuration stored in YAML. The second is how Clash Verge Rev exposes that profile through its interface. The third is the traffic capture method: system proxy mode, enhanced redirection, or Mihomo TUN mode. Changing DNS in a profile does not automatically mean that every command-line program or every application is using Clash. Conversely, enabling TUN does not guarantee that an old profile has the DNS settings you intended.
Before making changes, confirm that the client is actually using Mihomo and that the active profile is the one you plan to edit. Do not edit a downloaded subscription file if Verge Rev will overwrite it on the next update. A safer workflow is to use a profile override, a local copy, or the client’s built-in YAML editor when available. Keep a backup of the working configuration so that you can return to it if login pages, local services, or development tools behave unexpectedly.
2. Locate the active DNS section in Clash Verge Rev
Open Clash Verge Rev on macOS and select the profile that is marked as active. The exact labels can vary between releases, but the useful areas are normally named Profiles, Settings, Manage, or YAML. The important detail is not the label; it is whether you are looking at the profile currently running in the Mihomo core. A general application preference page may contain DNS switches that do not modify the profile’s dns object.
Search the active YAML for dns:. YAML indentation is significant, so make sure the DNS keys are at the root level and are not accidentally nested below proxy-groups, rules, or another object. A minimal Fake-IP configuration can look like this:
dns:
enable: true
ipv6: false
enhanced-mode: fake-ip
fake-ip-range: 198.18.0.1/16
nameserver:
- https://1.1.1.1/dns-query
- https://dns.google/dns-query
fallback:
- https://1.0.0.1/dns-query
- https://8.8.4.4/dns-query
fake-ip-filter:
- '*.lan'
- '*.local'
- localhost.ptlogin2.qq.com
This example enables the DNS module, selects Fake-IP mode, uses the conventional benchmarking range, and defines encrypted upstream resolvers. The resolver names are examples, not universal recommendations. Choose servers that are reachable and appropriate for your network. Some networks block public DNS-over-HTTPS endpoints, while some corporate environments require an internal resolver for private zones. A configuration that looks correct can still fail if every upstream server is unreachable from the current network.
If the profile already contains a dns: section, merge the required keys rather than creating a second one. Duplicate root-level YAML keys are ambiguous: some parsers keep the first value, others keep the last, and the result may change after a core update. Also check whether the subscription includes an nameserver-policy map, a proxy-server-nameserver list, or provider-specific overrides. These settings can direct different hostnames to different resolvers, so read the entire DNS block before replacing it.
Choose upstreams and filters carefully
The nameserver list is commonly used for ordinary lookups, while fallback provides alternative resolvers when the primary path fails or when the profile’s fallback policy selects them. Do not assume that adding more servers always improves reliability. A long list can create inconsistent answers, slower convergence, and confusing logs. Start with two or three reachable resolvers, test them, and expand only when there is a clear reason.
The fake-ip-filter list is just as important as enhanced-mode. Some hostnames should receive their real DNS answers because they represent local devices, captive portals, printers, smart-home services, or applications that compare the returned address with a local network expectation. Typical exclusions include localhost, *.local, *.lan, and selected vendor login or connectivity-check domains when a particular application requires them. Avoid adding broad exclusions such as + or an entire public suffix merely to silence one error; doing so can defeat domain-based routing for a large part of your traffic.
4. Apply, reload, and confirm the new mode
After editing, use the profile validation or save action provided by Clash Verge Rev before activating the file. A YAML parser error can prevent the core from loading, and a single tab character may be enough to cause a failure. If the client offers a configuration preview, inspect the rendered DNS section and confirm that enhanced-mode is exactly fake-ip, not redir-host or a misspelled value.
Apply the profile, then reload the configuration or restart the Mihomo core from the client interface. A browser that was already open may retain DNS results and persistent connections, so close the affected tab or restart the application after the reload. For a clean test, quit and reopen Clash Verge Rev, wait until the core reports that it is running, and then enable the intended traffic mode. If you use only macOS system proxy mode, applications that honor the system HTTP and HTTPS proxy should be captured, but arbitrary UDP traffic and programs with their own networking stack may not be.
If you need broader coverage, check whether the current Clash Verge Rev build provides Mihomo TUN support and understand what it changes before enabling it. TUN can capture applications that ignore the macOS proxy setting, but it also affects local routing, DNS interception, virtual interfaces, and sometimes Docker, virtual machines, VPN clients, or corporate security software. Enable it only when the trade-off is acceptable. Do not run multiple VPN or DNS interception tools at the same time while troubleshooting; otherwise you will not know which component answered a query or changed a route.
The client’s DNS cache may still contain mappings from the previous mode. Use the available DNS flush or cache clear action if Verge Rev exposes one, then restart the test application. On macOS, restarting the relevant application is often more reliable than assuming that every process will immediately discard its own resolver cache. You can also restart the system resolver process, but that is rarely the first step and may interrupt unrelated network activity.
Verify Fake-IP with logs and command-line tools
Start with Clash Verge Rev’s connection and DNS logs. Request a hostname that is not in your filter list, such as a site you control or a commonly used HTTPS domain. The DNS log should show a lookup handled by Mihomo, and the connection log should preserve the hostname when the rule engine makes its decision. Seeing an address from the configured synthetic range, such as 198.18.x.x, is a strong indication that Fake-IP is active, although the exact displayed value depends on the core and the application path.
A command-line test can provide additional evidence, but interpret it carefully:
scutil --dns
dig example.com
curl -I https://example.com
scutil --dns shows macOS resolver state, while dig may query a resolver directly and may not follow the same path as a browser using the system resolver. Therefore, a public-looking result from dig does not automatically prove that Clash Fake-IP is broken. Use the Clash logs and the connection panel as the primary source of truth, then compare the command-line behavior with and without system proxy or TUN enabled.
For an application-level check, run a request while watching the Clash connection list. The hostname should appear in the connection entry, and the selected rule should lead to the expected proxy group. If the application connects directly to an IP address, uses its own DoH resolver, or embeds a hard-coded endpoint, Fake-IP cannot restore a hostname that the application never supplied. In that case, investigate the application’s proxy and DNS settings separately.
You can also test whether a rule is receiving the hostname context you expected. Place a narrow temporary rule above broad catch-all rules, reload the profile, and inspect the resulting connection. Remove the temporary rule after testing. This method is more reliable than guessing from a single IP address because CDNs, dual-stack records, and shared hosting make IP-based conclusions fragile.
6. Troubleshoot common macOS Fake-IP problems
If websites fail immediately after enabling Fake-IP, first check the upstream resolvers. A synthetic pool cannot help when Mihomo cannot obtain an answer from any configured nameserver. Review DNS errors in the logs, test another reachable resolver, and verify that a local firewall or corporate network is not blocking DNS-over-HTTPS. If encrypted DNS is inappropriate for your environment, use a trusted resolver method permitted by your network policy rather than repeatedly adding random public endpoints.
If local devices stop resolving, add precise local exclusions and confirm that local traffic remains direct. For example, printer.lan may need a real answer, while a public hostname used by a cloud service should remain eligible for Fake-IP. When you add an exclusion, reload the core and clear the relevant application cache; otherwise you may continue seeing an old synthetic mapping and assume that the filter did not work.
IPv6 deserves a deliberate decision. Setting ipv6: false can reduce surprises on a network where IPv6 is only partially supported, but it is not automatically the best setting for every user. If your ISP, relay, and applications all support IPv6 correctly, disabling it may remove a valid path. If connections alternate between IPv4 and IPv6, however, compare both paths in the logs before changing rules. Do not confuse an IPv6 routing problem with a Fake-IP problem.
Some services fail because they use certificate pinning, UDP, local network discovery, or an IP literal. Some games and development tools bypass the macOS system proxy. Some browsers enable secure DNS independently of the operating system. Check the application’s own settings, browser secure-DNS preference, proxy environment variables, and TUN status before changing the global YAML. If only one application fails, a global DNS rewrite may be the wrong place to solve it.
A stale profile is another frequent cause. Verge Rev may display a modified local file while the active subscription is still using a generated configuration, or a provider update may remove your manual edits. After every subscription refresh, revisit the rendered profile and confirm that the DNS block still exists. For repeatable deployments, maintain overrides in a documented local file and record which keys the provider is allowed to replace.
Finally, remember that Fake-IP is a routing aid, not a privacy guarantee. The upstream resolver, proxy node, destination service, and local operating system can each expose different metadata. Use reputable nodes, avoid placing credentials in public configurations, and do not route sensitive company traffic through an unapproved relay merely because the DNS test succeeds.
7. Maintain a stable configuration
Once the setup works, save the final profile or override with a short explanation of why each non-default key exists. Record the selected Fake-IP range, upstream resolvers, local-domain exclusions, TUN or system-proxy mode, and the date of the last successful test. This turns a fragile one-time fix into a configuration that another person can audit after a macOS or Clash Verge Rev update.
Retest after changing subscription providers, proxy groups, DNS servers, macOS major versions, or security software. A good test covers more than one website: check a public HTTPS service, a local hostname, a command-line request, and an application that previously failed. Confirm both name resolution and rule selection. If the result is slow, compare resolver latency and proxy latency separately; changing Fake-IP settings will not repair a congested relay.
Compared with many single-switch VPN clients, which often hide DNS behavior and make local exceptions difficult to inspect, Clash Verge Rev exposes the profile, resolver mode, filters, rules, and connection evidence in a way that is easier to troubleshoot. That control does require more careful YAML editing, but on macOS it lets you keep local services direct while preserving hostname-aware routing for selected applications. If you want to apply the same method with a supported client and a clean starting configuration, download Clash clients and continue with the setup that matches your system.
Ready to get started?
Use a Mihomo-compatible client to manage Fake-IP DNS, profiles, rules, and macOS proxy modes from one place.