DNS and TUN
TUN mode
Virtual network interface capture
TUN mode captures traffic through a virtual network interface and system routes, including traffic from some apps that ignore system proxy settings. It may require administrator privileges or network permissions, and coverage depends on the client and system routes. Enabling TUN does not force all traffic through a proxy; routing rules, DNS, local network exceptions, and conflicts with other network software still need attention.
DNS and TUN
FakeDNS
Synthetic IP and domain mapping
FakeDNS returns synthetic IP addresses to apps and maps them to the original domains, allowing later connections to recover the domain for routing. It is not a public resolver, and the domain has not actually resolved to that address. DNS handling and traffic capture must work together. After leaving a mode that uses FakeDNS, an app may still have a synthetic address cached and need to resolve again or restart.
DNS and TUN
DNS leak
DNS requests taking an unexpected path
A DNS leak occurs when name-resolution requests do not follow the intended path and are sent through another resolver or interface. First clarify the expected policy, then check the operating system, browser-specific resolution, core DNS settings, and app cache. A test page showing a resolver's location is not enough to prove a leak; what matters is the path the requests actually took.
DNS and TUN
Domain strategy
routing.domainStrategy
In routing, domainStrategy controls when domains are resolved during rule matching so IP rules can be evaluated. For example, IPIfNonMatch attempts resolution when a domain does not match a rule, then continues matching. This is not the address-selection strategy for outbound connections; fields with similar names must be understood in the context of their configuration layer. Changing this setting does not configure DNS by itself.
DNS and TUN
Traffic sniffing
Sniffing · Extract target information
Traffic sniffing extracts information such as the target domain from protocol characteristics in some connections, helping connections that only provide a target IP match domain-based routes. It does not decrypt app content, and detection is limited by the protocol and encryption. Whether it is used only for routing or also rewrites the destination depends on the settings; check its scope when troubleshooting compatibility.