Skip to content

Encrypted DNS (DoH / DoT) — Complete Guide

A surprising number of "the site won't open / the page dies halfway / I'm on the proxy but it still fails" problems start at the DNS step. This guide explains, in plain language, what DNS is, why plain DNS is risky, how encrypted DNS (DoH / DoT) helps, and how to turn it on across your devices.

1. What is DNS, and why is plain DNS risky?

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.

The catch: traditional plain DNS is not encrypted at all. That lookup travels in clear text through your ISP and every network hop along the way, 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.

Encrypted DNS exists to fix both the "seen" and the "tampered with" problems.

2. What are 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

Key point

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

3. How this relates to Jego

Jego is a browser proxy — it only carries traffic inside the browser and does not carry your system DNS. So encrypted DNS and Jego complement each other:

  • It blocks DNS hijacking / poisoning on your local link and improves privacy;
  • In mainland China, a foreign encrypted resolver (like 1.1.1.1) won't work as your DNS — see the mainland China section below for why.

4. 🇨🇳 Mainland China

If you're in mainland China, read this section first — the overseas resolvers below won't work as your DNS here.

Foreign resolvers don't work here

Foreign public resolvers (e.g. Cloudflare 1.1.1.1, Google 8.8.8.8, Quad9, AdGuard, Mullvad) are blocked or DNS-poisoned in mainland China — the GFW forges plain-DNS answers and SNI-blocks foreign DoH/DoT — so they will not work as your DNS here.

What to do instead: use a domestic resolver — these actually work in mainland China. Prefer Alibaba AliDNS or Tencent DNSPod over DoH/DoT; at minimum, set their plain IP (223.5.5.5 or 119.29.29.29) as your system DNS instead of your ISP's default. They stop local on-path tampering, but still follow domestic filtering.

Every resolver 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).

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

Baidu and the carrier resolvers offer only plain DNS, so prefer AliDNS or Tencent. Also note: Jego proxies your browser, not your system DNS, so a foreign resolver like 1.1.1.1 won't start working here just because Jego is on.

5. 🌍 Encrypted DNS resolvers worldwide (outside mainland China)

Top global picks (use any one)

These are global anycast resolvers that auto-route to the nearest point of presence. They work well on every continent except mainland China, and are the default recommendation:

ProviderDoH URLDoT hostnamePlain IPNotes
Cloudflarehttps://cloudflare-dns.com/dns-queryone.one.one.one1.1.1.1 1.0.0.1Fastest · no filtering · query logs purged within ~25h
Googlehttps://dns.google/dns-querydns.google8.8.8.8 8.8.4.4Most reliable · no content filtering
Quad9https://dns.quad9.net/dns-querydns.quad9.net9.9.9.9 149.112.112.112Blocks malicious domains · Switzerland · no PII logging
AdGuardhttps://dns.adguard-dns.com/dns-querydns.adguard-dns.com94.140.14.14 94.140.15.15Blocks ads & trackers · Cyprus · no IP logging
Mullvadhttps://dns.mullvad.net/dns-querydns.mullvad.net194.242.2.2Open-source · Sweden · no logs · encrypted-only (no plain DNS)
More global resolvers (click to expand)
ProviderDoH URLDoT hostnamePlain IPNotes
NextDNShttps://dns.nextdns.io45.90.28.0 45.90.30.0Configurable per-account profiles · US/EU/UK/CH data residency · DoT needs a profile ID
ControlD (free, unfiltered)https://freedns.controld.com/p0p0.freedns.controld.com76.76.2.0 76.76.10.0Canada · variants p1/p2/p3 add malware/ad/social 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.9Blocks malware/phishing · US · free tier keeps no query logs
Region-specific resolvers (click to expand)

In addition to the global anycast set above, these add local jurisdiction / data-sovereignty / non-profit privacy options.

Europe · data sovereignty

ProviderDoH URLDoT hostnamePlain IPNotes
DNS4EUhttps://unfiltered.joindns4.eu/dns-queryunfiltered.joindns4.eu86.54.11.100 86.54.11.200EU-official · GDPR · 24h log deletion · protective.* variant blocks malware (86.54.11.1)
DNS.SBhttps://doh.sb/dns-querydot.sb185.222.222.222 45.11.45.11Germany (xTom) · no logs · 30+ PoPs incl. strong Asia coverage
Digitale Gesellschafthttps://dns.digitale-gesellschaft.ch/dns-querydns.digitale-gesellschaft.ch185.95.218.42 185.95.218.43Switzerland non-profit · no logs · encrypted-only

Russia / CIS

ProviderDoH URLDoT hostnamePlain IPNotes
Yandex (Basic)https://common.dot.dns.yandex.net/dns-querycommon.dot.dns.yandex.net77.88.8.8 77.88.8.1Safe/Family variants add filtering

Asia-Pacific

ProviderDoH URLDoT hostnamePlain IPNotes
IIJ (Japan)https://public.dns.iij.jp/dns-querypublic.dns.iij.jpJapan · encrypted-only · query data deleted within 24h
Tiaraphttps://doh.tiar.app/dns-querydot.tiar.app174.138.21.128 188.166.206.224Singapore · no logs · blocks ads & malware

Americas / Oceania

ProviderDoH URLDoT hostnamePlain IPNotes
CIRA Canadian Shieldhttps://private.canadianshield.cira.ca/dns-queryprivate.canadianshield.cira.ca149.112.121.10 149.112.122.10Canada · PII deleted within 24h · Protected/Family variants add filtering

System-wide encrypted DNS is fiddly on Windows / macOS (Windows needs a netsh template registration; Apple needs a .mobileconfig profile). For most people, two layers are enough:

① 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.

② 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 → "With" 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, etc.; foreign DoH doesn't work there); elsewhere use Cloudflare/Google (see Section 5).

Phones

  • Android 9+: natively supported — Settings → Network & internet → Private DNS → enter the DoT hostname (the DoT column). Easiest option.
  • iOS: no built-in field for DoH; install a .mobileconfig profile (see "Advanced" below).

What this combo does and doesn't cover

Browser DoH only encrypts the browser's DNS. With a plain-IP system DNS, other apps' lookups stay in plaintext — and in mainland China they can still be spoofed by the GFW (a plain IP only blocks ordinary ISP hijacking). To encrypt every app, use the "Advanced" section below to set DoH at the system or router level.

Advanced: encrypt DNS for the whole system / all apps (click to expand)
PlatformWhere to set it
Windows 11Settings → Network & internet → Wi-Fi/Ethernet → Hardware properties → DNS server assignment → Edit → Manual → turn on IPv4 → enter the plain IP (not a DoH URL) → set "Preferred DNS encryption" to "Encrypted only (DoH)"
macOS / iOSInstall a .mobileconfig profile (from the provider or a generator): on iOS via Settings → General → VPN, DNS & Device Management; on macOS double-click it, then confirm under System Settings → General → VPN & Device Management
RouterIf your router supports DoT/DoH, set it there so every device on the network is covered

Windows 11 note: the built-in DoH only recognizes a few known providers (Cloudflare 1.1.1.1, Google 8.8.8.8, Quad9 9.9.9.9, etc.) — entering those plain IPs auto-encrypts. For any other resolver you must first register its DoH template with netsh dns add encryption, or the "Encrypted" toggle won't take effect.

7. If you can't set up DoH/DoT (fallback)

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.


Still can't open a site? Go back to the FAQ and work through the "Network environment + Browser environment" checklist, or contact support.