Best public DNS servers – and how to change DNS

Cloudflare, Google, Quad9 and AdGuard DNS compared – addresses, filtering, privacy – with step-by-step instructions for router, Windows, Mac, Android and iPhone.

DNS turns names like example.com into IP addresses. Unless you change it, your provider's DNS servers do this for you. Switching to a public DNS service can block malware or ads, make your lookups private, or simply fix a provider DNS that is slow or down.

The four most used public DNS services

ServiceIPv4IPv6Encrypted DNS nameFilters
Cloudflare1.1.1.1
1.0.0.1
2606:4700:4700::1111one.one.one.oneNothing (1.1.1.2 blocks malware)
Google Public DNS8.8.8.8
8.8.4.4
2001:4860:4860::8888dns.googleNothing
Quad99.9.9.9
149.112.112.112
2620:fe::fedns.quad9.netKnown malicious domains
AdGuard DNS94.140.14.14
94.140.15.15
2a10:50c0::ad1:ffdns.adguard-dns.comAds and trackers

Which to pick: Quad9 is a good default for a family network – it is run by a Swiss non-profit and quietly blocks known phishing and malware domains. AdGuard also removes many ads, but can break some websites. Cloudflare and Google filter nothing and are the fastest choices in most places.

Router – the whole household at once

Log in to your router and put the two addresses into the DNS fields of the Internet (WAN) or DHCP/LAN settings. Devices pick them up after they reconnect.

Windows 11

Settings → Network & internet → Ethernet, or Wi-Fi → Hardware properties → DNS server assignment → Edit → Manual. Turn on IPv4, enter both addresses and set “DNS over HTTPS” to On if offered.

macOS

System Settings → Wi-Fi (or Network) → Details next to your connection → DNS. Remove the old entries with – and add the new ones with +.

Android 9 and newer

Settings → Network & internet (Samsung: Connections → More connection settings) → Private DNS → enter a name from the table, for example one.one.one.one. This encrypts lookups on Wi-Fi and mobile data.

iPhone and iPad

Settings → Wi-Fi → (i) next to your network → Configure DNS → Manual. It applies only to that one Wi-Fi network; for all networks install the service's configuration profile from its website.

Check that it worked

The DNS leak test shows which DNS servers your device really uses. If you still see your provider, the device or browser is overriding the setting – Chrome and Firefox have their own “Secure DNS” option.

Sources

  1. Cloudflare – 1.1.1.1 setup
  2. Google Public DNS – Get started
  3. Quad9 – Service addresses and features
  4. AdGuard DNS – Public servers
How to change your IP addressFive ways to get a new IP address – router restart, another network, VPN, Tor or your provider – with how long each takes and what it costs. IPv4 vs IPv6: what is the difference?Why there are two kinds of IP addresses, how they differ in practice, and whether you need to do anything about IPv6. Does a VPN hide your IP address?What a VPN hides and what it does not, a five-minute test to see whether yours really works, and how to fix the usual leaks. How to find your router's IP addressFind your router's address (often 192.168.0.1 or 192.168.1.1) on Windows, Mac, Android and iPhone, with the defaults of common router brands. What can someone find out from your IP address?What your IP address reveals – provider, rough location, connection type – what it does not, and the real risks if someone knows it. Static vs dynamic IP addressThe difference between a static and a dynamic IP address, how to tell which one you have, and when paying for a static IP makes sense. How to find your printer's IP addressFind the IP address of a network printer on its display, a printed configuration page, Windows, Mac or the router – and stop it from changing. What is CGNAT – and how to tell if you are behind itCarrier-grade NAT lets many customers share one public IP address. How to recognise it in two minutes, what it breaks and how to get around it. Port forwarding not working? A checklistEight reasons why a forwarded port still shows as closed – CGNAT, double NAT, firewalls, a wrong local IP – checked in the order that finds the cause fastest. Why is my IP address blacklisted – and how to get it removedWhat IP blacklists (DNSBL) are, why an ordinary home address ends up on them, which listings you can ignore and how to request removal. How to find out who owns an IP addressFind the provider, organisation and abuse contact behind any IP address with WHOIS, ASN and reverse DNS – and where the trail stops. MonIP vs WhatIsMyIPAddress.com – comparisonHow MonIP and WhatIsMyIPAddress.com compare: languages, tools, data sources, API – and which one fits which job. MonIP vs IPLocation.net – comparisonHow MonIP and IPLocation.net compare: languages, location data from one or several providers, network tools and API. MonIP vs WhatIsMyIP.com – comparisonHow MonIP and WhatIsMyIP.com compare: languages, tools, e-mail diagnostics, API pricing and accounts.