Skip to content

Encrypted DNS (DoH / DoT) — Setup Guide

Mainland China's firewall now reaches right down into the DNS layer to disrupt circumvention — hijacking, poisoning, blocking: you're connected to the proxy, yet sites still won't open or pages die halfway, and very often it's your DNS lookup being tampered with on the way.

Encrypted DNS (DoH / DoT) encrypts that step so no one can see it or change it — your first line of defense against this hijacking and poisoning.

Turn on encrypted DNS (two layers is enough)

Just two steps: set a public DNS in your system, then turn on encrypted DNS in your browser.

🇨🇳 Read this first if you're in mainland China

Foreign public resolvers (Cloudflare 1.1.1.1, Google 8.8.8.8, etc.) are blocked or DNS-poisoned in mainland China — they will not work. Use a domestic resolver — AliDNS or Tencent — and each step below gives the exact address.

① System layer: set a plain-IP public DNS (covers all apps)

Replace your ISP's default system DNS with a public resolver — this step isn't encrypted, but it drops the ISP default and blocks the most common local DNS hijacking:

  • Mainland China: 223.5.5.5 (AliDNS) or 119.29.29.29 (DNSPod)
  • Elsewhere: 1.1.1.1 (Cloudflare) or 8.8.8.8 (Google)

Windows: Settings → Network & internet → adapter properties → DNS server assignment → Manual → enter the IP (leave encryption Off). macOS: System Settings → Network → your network's "Details" → DNS → add the IP.

📷 Illustrated guide: Tencent Cloud Set up Public DNS on systems & devices (Windows / macOS / iOS / Android / Linux).

② Browser layer: turn on encrypted DNS (DoH) — where you actually browse

DoH is easiest in the browser (paste one URL), and that's where most of your web browsing happens:

BrowserWhere to set it
Chrome / EdgeSettings → Privacy and security → Security → Use secure DNS → choose "Custom" → paste a DoH URL
FirefoxSettings → Privacy & Security → DNS over HTTPS → Max Protection → Custom → paste a DoH URL

Which URL: in mainland China use AliDNS / DNSPod DoH (https://dns.alidns.com/dns-query, https://doh.pub/dns-query; foreign DoH doesn't work there); elsewhere use Cloudflare / Google (https://cloudflare-dns.com/dns-query, https://dns.google/dns-query).

📷 Illustrated guide: Tencent Cloud Set up Public DNS in your browser (Chrome / Edge / Firefox / Opera).

If you can't set up DoH/DoT — at least do this

If you can't set up DoH/DoT for now, at least set a plain public-resolver IP as your system DNS instead of your ISP's default: 223.5.5.5 (AliDNS) in mainland China, or 1.1.1.1 / 8.8.8.8 elsewhere. It isn't encrypted, but it dodges the most common ISP-level DNS hijacking.

Reference: more encrypted DNS server addresses

🇨🇳 Mainland China resolvers (with DoT and 360)

Every address below is kept verbatim — every character of the path and IP matters (people often drop the trailing part when copying, and then it doesn't work). Prefer AliDNS or Tencent; Baidu and carrier resolvers offer only plain DNS.

ProviderDoH URLDoT hostnamePlain IPNotes
AliDNS (Alibaba)https://dns.alidns.com/dns-querydns.alidns.com223.5.5.5 223.6.6.6Most widely used · no extra filtering
DNSPod (Tencent)https://doh.pub/dns-querydot.pub119.29.29.29 119.28.28.28Tencent · anti-hijacking
360 Secure DNShttps://doh.360.cn/dns-querydot.360.cn101.226.4.6 218.30.118.6Qihoo 360 · blocks malicious domains

🌍 Overseas resolvers (outside mainland China)

These public endpoints are configuration references. Reachability, filtering, logging, and retention policies can change; verify each provider's current official documentation. The table makes no speed, privacy, or availability guarantee.

Top global picks (use any one)

ProviderDoH URLDoT hostnamePlain IP
Cloudflarehttps://cloudflare-dns.com/dns-queryone.one.one.one1.1.1.1 1.0.0.1
Googlehttps://dns.google/dns-querydns.google8.8.8.8 8.8.4.4
Quad9https://dns.quad9.net/dns-querydns.quad9.net9.9.9.9 149.112.112.112
AdGuardhttps://dns.adguard-dns.com/dns-querydns.adguard-dns.com94.140.14.14 94.140.15.15
Mullvadhttps://dns.mullvad.net/dns-querydns.mullvad.net194.242.2.2

More global resolvers

ProviderDoH URLDoT hostnamePlain IPNotes
NextDNShttps://dns.nextdns.io45.90.28.0 45.90.30.0Configurable per-account filtering · DoT needs a profile ID
ControlD (free, unfiltered)https://freedns.controld.com/p0p0.freedns.controld.com76.76.2.0 76.76.10.0Canada · p1/p2/p3 variants add blocking
OpenDNS (Cisco)https://doh.opendns.com/dns-querydns.opendns.com208.67.222.222 208.67.220.220Blocks malware/phishing · US
CleanBrowsing (security)https://doh.cleanbrowsing.org/doh/security-filter/security-filter-dns.cleanbrowsing.org185.228.168.9 185.228.169.9Security-filtering endpoint

Region-specific resolvers (local jurisdiction / data sovereignty / non-profit privacy)

RegionProviderDoH URLDoT hostnamePlain IP
EuropeDNS4EUhttps://unfiltered.joindns4.eu/dns-queryunfiltered.joindns4.eu86.54.11.100 86.54.11.200
EuropeDNS.SBhttps://doh.sb/dns-querydot.sb185.222.222.222 45.11.45.11
EuropeDigitale Gesellschafthttps://dns.digitale-gesellschaft.ch/dns-querydns.digitale-gesellschaft.ch185.95.218.42 185.95.218.43
Russia / CISYandex (Basic)https://common.dot.dns.yandex.net/dns-querycommon.dot.dns.yandex.net77.88.8.8 77.88.8.1
JapanIIJhttps://public.dns.iij.jp/dns-querypublic.dns.iij.jp
Asia-PacificTiaraphttps://doh.tiar.app/dns-querydot.tiar.app174.138.21.128 188.166.206.224
CanadaCIRA Canadian Shieldhttps://private.canadianshield.cira.ca/dns-queryprivate.canadianshield.cira.ca149.112.121.10 149.112.122.10

How it works — DNS, DoH & DoT

What DNS is: DNS (the Domain Name System) translates a domain name you type (like google.com) into the IP address a server is reachable at (like 142.250.x.x). Every site you open starts with a DNS lookup.

Why plain DNS is risky: traditional plain DNS is not encrypted at all. The lookup travels in clear text through your ISP and every network hop, so it can be:

  • Seen — your ISP, public Wi-Fi, or any network in between can see exactly which sites you visit;
  • Tampered with — a party in the middle can forge the answer and send you to the wrong (or malicious) IP — this is DNS hijacking / DNS poisoning.

DoH and DoT: both are standard protocols that encrypt the DNS lookup; they differ only in which channel they use —

ProtocolFull nameIn plain terms
DoHDNS over HTTPSHides the DNS query inside HTTPS traffic so it looks like normal web traffic — hardest to detect or block
DoTDNS over TLSEncrypts DNS over its own dedicated port (853) — a cleaner implementation

Encrypted DNS is configured at the system, browser, or router level — not just inside the browser. Setting it on the system or router protects every app on that device (or the whole network) at once.


If the connection has not recovered, see the FAQ entries on overseas websites that do not open and on checking the extension with Diagnostics, or contact support.