methods / change-dns-resolver

Change your DNS resolver: how to switch safely

Short answer

Set your device or router to a public resolver - Google 8.8.8.8, Cloudflare 1.1.1.1 or Quad9 9.9.9.9 - then flush the DNS cache and reload. That beats DNS-layer blocks in minutes; connection, IP and geo blocks need the stronger tools linked at the end.

Every device on a network asks a resolver - a phonebook service - for the IP address behind every domain name. On most networks that resolver belongs to your ISP, your school or your employer, and it is the single cheapest place for them to filter: one answer of "does not exist" and the site is gone for you, while the site itself is fine. Swapping the resolver for an independent public one removes that filter from the equation in minutes, without installing anything [1][3].

Plain DNS vs encrypted DNS under a filtering network plain DNS (open to the network) browser network filter reads and refuses names facebook.com? encrypted DNS (DoH) browser resolver sealed ask the filter still sees the connection to the site - encrypted DNS only hides the lookup DNS-level blocks fall to this. SNI or IP blocks need ECH or a tunnel. try this first: it is free, it takes two minutes, and most blocks stop here
Plain DNS leaks the lookup; encrypted DNS seals it

This is the classic first fix for a reason: it is free, fast and reversible. It is also over-hyped - it only fixes blocks that live at the DNS layer. This guide shows the exact steps for every platform, the cache flushes that people forget, and how to know when your block needs a stronger tool.

The 60-second test: will a resolver change help?

Do this before touching settings, so you know whether the change is worth making:

  1. Open dns.google in your browser and resolve the blocked domain [10]. If it returns an address, the site is up and reachable - your network is the difference.
  2. Temporarily set one device to a public resolver (Windows or macOS steps below use 8.8.8.8 or 9.9.9.9) [1][3].
  3. Flush the DNS cache (commands at the end of this guide) and reload the blocked site.
  4. If the site now opens: your block was DNS-layer, and making the change permanent on the router (below) finishes the job. If it still fails: the block is deeper - jump to [when a resolver change is not enough](#when-a-resolver-change-is-not-enough).

The public resolvers worth using

Pick two addresses (primary and alternate) from one provider. All of these are run as serious infrastructure with published policies [1][3][5][6]:

ProviderIPv4Notes
Cloudflare1.1.1.1, 1.0.0.1fastest in most regions, privacy-first policy [2]
Google8.8.8.8, 8.8.4.4extremely reliable, widely documented [1]
Quad99.9.9.9, 149.112.112.112Swiss foundation, filters malware domains [3][4]
AdGuard94.140.14.14, 94.140.15.15blocks ads and trackers at the DNS layer [5]
OpenDNS208.67.222.222, 208.67.220.220Cisco-run veteran, FamilyShield variant [6]

Each provider also offers encrypted variants - DoH and DoT endpoints for every one of these [5]. The encrypted setup is the one that survives hostile networks; the plain-IP change below is the quick test and the honest baseline.

Per platform: the exact clicks

Windows 10 and 11

  1. Settings, Network and internet, Wi-Fi (or Ethernet), your connection, DNS server assignment, Edit.
  2. Switch from Automatic (DHCP) to Manual, enable IPv4.
  3. Preferred DNS: 1.1.1.1, Alternate: 1.0.0.1 (or any pair from the table) [2].
  4. Save, then repeat for IPv6 if your network uses it (2606:4700:4700::1111 for Cloudflare) [2].
  5. Open Command Prompt and run ipconfig /flushdns.

macOS

  1. System Settings, Network, your connection, Details, DNS.
  2. Remove any listed servers, or add the public pair above with the + button [2].
  3. OK, Apply. macOS flushes its cache on apply; if not, sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder in Terminal.

iOS and iPadOS

  1. Settings, Wi-Fi, the (i) next to your network.
  2. Configure DNS, Manual.
  3. Remove the existing servers, add the public pair [2].
  4. Save. Back out and toggle Wi-Fi off/on to be safe.

Android

On Wi-Fi: Settings, Network and internet, your network, edit (pencil), Advanced, IP settings Static, then fill the DNS fields. For the whole phone, use Private DNS with a hostname such as one.one.one.one - that is the encrypted DoT variant, covered in our encrypted DNS guide.

Linux

With systemd-resolved (most modern distros): edit DNS servers per connection in your network manager (GNOME: Settings, Network, gear icon, IPv4, disable Automatic DNS, add servers), then resolvectl flush-caches. The classic nameserver lines in /etc/resolv.conf work too, but a local stub usually manages that file - change it through your network manager instead.

The router: one change, whole household

Set the resolver once in the router's WAN or DHCP/DNS settings and every device behind it - phones, TVs, consoles - inherits it. Cloudflare and Quad9 keep router-by-router instructions [2][3]. Two caveats: a router change is invisible to devices using their own override (Android Private DNS, a browser with DoH), and on a shared network it is a change other people will notice - make it openly.

Flush the caches (the forgotten half)

After a resolver change you are still asking cached answers on three levels. If the block page survives the change, clear in this order:

  1. Browser cache: chrome://net-internals/#dns has a "Clear host cache" button; in Firefox it is about:networking#dns. Or simply restart the browser.
  2. OS cache: ipconfig /flushdns on Windows, sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder on macOS, resolvectl flush-caches on Linux.
  3. The resolver's own cache: if the wrong answer is already cached at the public resolver, the provider cache-flush pages help (Google and Cloudflare both offer one) [1][2].
Quad9's support page lists the exact IPv4 and IPv6 addresses and links on.quad9.net - a one-click check of whether you are actually using Quad9
Quad9's support page lists the exact IPv4 and IPv6 addresses and links on.quad9.net - a one-click check of whether you are actually using Quad9

How to verify the change took

Three independent checks, thirty seconds:

  1. Quad9's on.quad9.net or the 1.1.1.1 help page tells you which resolver your connection is actually using [8].
  2. Reload the blocked site in a fresh private window (skips the browser cache).
  3. For proof rather than symptoms, run the site through OONI Probe - it compares your resolver's answer against a control server and flags DNS tampering specifically [9].

When a resolver change is not enough

Honest limits, in the order people hit them:

  • The network intercepts port 53 anyway. Some ISP and enterprise networks quietly redirect any plain-DNS traffic - to any resolver - back to their own servers, so your careful 8.8.8.8 setting is ignored without any error. This interception is a documented, measured behavior of real networks, not a rumor [7]. The fix is encrypted DNS: the same providers with their DoH/DoT endpoints, which interception cannot quietly rewrite [5]. Our DoH setup guide has the per-platform steps.
  • The block is not at the DNS layer. If the name resolves but the page hangs on https:// or the connection never establishes, the filter works on the connection or the IP address, and no resolver helps. Diagnose with the symptom table in our general unblock guide, then use ECH, WARP, Psiphon or the Tor Browser.
  • The block is on the site. Geo, age and account walls live on the operator's side. Resolver settings do not touch them.

FAQ

What does changing the DNS resolver actually change?

Only who answers your name lookups. Your network path to the site, the TLS handshake and the site's own rules stay the same. That is why it fixes name-filtering blocks and nothing else.

Which resolver is the fastest?

It depends on where you are, because all the big providers run servers in many countries. Cloudflare and Google are consistently fast nearly everywhere; test two of them and keep the winner. The speed difference is seconds per day, so pick for trust first.

I changed the resolver but the block page still appears. Why?

Almost always a cache: the old answer is stored in your browser or operating system. Flush the browser cache and the OS cache, then reload. If the block still appears, your network may be intercepting plain DNS - switch to the encrypted DoH setup instead.

Is changing DNS safe? Can I break something?

It is safe and reversible - you are only pointing name lookups at a public phonebook service. The one real failure mode is a typo in the address, which shows up as no internet at all; retype the pair carefully or undo the change.

Should I set DNS on the device or the router?

Both work. The router covers every device including consoles and TVs; the device setting wins over the router and travels with a laptop. A common setup is the router for the household plus encrypted DNS on devices that support it.

What is the difference between this and encrypted DNS (DoH)?

Changing the resolver swaps which server you ask; DoH additionally encrypts the question itself. On networks that intercept or filter plain DNS, only the encrypted variant helps. Start here, then move to DoH if the network fights back.

Does a public resolver filter anything?

The general-purpose endpoints from Cloudflare and Google do not block content by category. Quad9 filters malware domains, AdGuard's default servers block ads and trackers, and both brands have separate family-safe variants - check before choosing if filtering matters to you.

Sources

  1. Google - Public DNS documentation - accessed 2026-10-21
  2. Cloudflare - 1.1.1.1 setup instructions for every device - accessed 2026-10-21
  3. Quad9 - set up guides and support - accessed 2026-10-21
  4. Quad9 - FAQ - accessed 2026-10-21
  5. AdGuard - DNS provider server list (plain, DoH, DoT, DoQ) - accessed 2026-10-21
  6. Cisco OpenDNS - accessed 2026-10-21
  7. RFC 7626 - DNS Privacy Considerations (documents on-path DNS interference) - accessed 2026-10-21
  8. Cloudflare - 1.1.1.1 help page (checks whether your DNS is encrypted) - accessed 2026-10-21
  9. OONI - Web Connectivity test (DNS tampering explained) - accessed 2026-10-21
  10. Google - dns.google web resolver - accessed 2026-10-21

Further reading

Related