Are you an LLM? You can read better optimized documentation at /en\tutorial\dns.md for this page in Markdown format
Clash DNS
Clash can answer DNS queries through its own resolver. This helps route connections by hostname and can reduce problems caused by polluted DNS answers.
Fake-IP
In fake-IP mode, Clash gives an application a temporary address from a reserved pool (typically 198.18.0.1/16). Clash keeps the mapping from that address back to the requested hostname. When the application connects, Clash looks up the hostname, evaluates rules and sends the connection through the selected outbound.
yaml
dns:
enable: true
enhanced-mode: fake-ip
fake-ip-range: 198.18.0.1/16Some applications require real IP answers. Add their domains to a fake-IP filter or adjust the resolver configuration. Consult the Mihomo DNS reference for current options.
