hiddify.st
EN

Where in the appSettings → DNS

DNS: who looks up the names

The five options on Hiddify 5.9's DNS page: what remote DNS and the outbound server resolver each resolve, the address formats they accept, how to choose among the five domain strategies, and the benefits and side effects of fake DNS.

Every site visit starts with turning a domain into an IP, and that step is DNS. Hiddify has two resolvers, each with its own job; mixing them up is one of the usual reasons for “connected but pages do not open”.

Two resolvers

OptionWhat it resolvesWhich way
Remote DNSThe sites you visit (the proxied part)Sent through the proxy
Outbound server resolver (direct)The proxy servers' own domains, and sites that go directNot through the proxy

For example: if a server in your subscription is node1.example.net, Hiddify first resolves it to an IP with the outbound resolver so it can connect; once connected, the sites you visit are resolved by remote DNS through the proxy.

A thick telephone directory: DNS is “look up the number by name”
A thick telephone directory: DNS is “look up the number by name” Bingar1234, CC BY-SA 4.0

Address formats

Both resolvers accept these forms:

FormKindExample
udp:// or a bare IPPlain DNSudp://1.1.1.1
tcp://Plain DNS over TCPtcp://8.8.8.8
tls://DNS over TLStls://dns.google
https://DNS over HTTPShttps://1.1.1.1/dns-query
localThe system's own DNSlocal

The outbound resolver is set automatically from your region; with China it is a public resolver inside China and usually needs no change. For remote DNS, DoH or DoT is harder to interfere with.

Domain strategy

Each resolver has a domain strategy: Auto, Prefer IPv6, Prefer IPv4, IPv4 only and IPv6 only. Most proxy servers have no IPv6 exit, so Prefer IPv4 or IPv4 only is the safest. The IPv6 switch on the routing page is off by default too; keep the two consistent.

Fake DNS

With Turn on fake DNS, Hiddify does not really look the name up. It immediately returns a fake private address to the program, and when the program connects to it, Hiddify passes the domain to the proxy. The upside is speed, one lookup fewer and not revealing what you visit; the downside is that a few programs cache the fake address and cannot open sites for a while after Hiddify is closed. The details are in this article.

The browser wants a site Remote DNS Looked up through the proxy Outbound resolver Looked up directly The site's IP The server's IP
Remote DNS and the outbound resolver
Do I need to reconnect after changing DNS?

Yes. DNS settings take effect on the next connection.

An app stopped working after I turned on fake DNS?

Turn fake DNS off and reconnect once. If that fixes it, keep it off, or add a direct rule just for that app.

Read nextInbound: where traffic comes in