Every time you type a website address, your device asks a DNS server to translate that name into a numeric address. It usually uses your provider’s DNS, set automatically by the router. It almost always works fine. The problem is that “almost”: when your provider’s DNS fails, the Internet seems to have vanished even though the line is perfectly fine.
There are plenty of claims about changing DNS, some true and some not. Here’s when it makes sense, which servers to choose and how to set them on each device.
When it’s worth it (and when it isn’t)
It makes sense if:
- sites won’t open but
pingto a numeric address like8.8.8.8works. That’s the classic sign of a DNS problem, as explained in our guide to ping, tracert and nslookup; - you want a free filter against known malicious sites, which some public DNS services offer;
- you want DNS queries to travel encrypted, so whoever runs the network (a public Wi-Fi, for example) can’t see which sites you visit.
It doesn’t help with download speed or buffering streams: DNS only comes into play at the start, to find the server, not during the transfer. At most you gain a few milliseconds when pages open.
The most widely used public DNS
| Service | IPv4 addresses | Name for encrypted DNS | Features |
|---|---|---|---|
| Cloudflare | 1.1.1.1 and 1.0.0.1 |
one.one.one.one |
very fast, query logs deleted within 24 hours |
| Cloudflare for Families | 1.1.1.3 and 1.0.0.3 |
family.cloudflare-dns.com |
blocks malware and adult content |
8.8.8.8 and 8.8.4.4 |
dns.google |
reliable, no filtering | |
| Quad9 | 9.9.9.9 and 149.112.112.112 |
dns.quad9.net |
blocks known malicious domains, Swiss-based foundation |
For most homes I’d suggest Quad9 or Cloudflare: Quad9’s blocking of malicious domains is free extra protection against phishing.
On Windows 11
- open Settings > Network & internet and choose Wi-Fi or Ethernet;
- click the connection you’re using, then Hardware properties;
- next to DNS server assignment, click Edit and choose Manual;
- turn on IPv4 and enter the preferred and alternate DNS;
- in the DNS over HTTPS menu choose On (automatic template) to encrypt queries;
- save, then open Command Prompt and type
ipconfig /flushdnsto clear the cache.
On a Mac
Go to System Settings > Network, select the connection, click Details and then DNS. Use + to add the new servers and – to remove the existing ones. Confirm with OK.
On Android
Android has a very handy feature that applies to every network, Wi-Fi and mobile data: Private DNS, always encrypted.
- open Settings > Network & internet > Private DNS (on Samsung, Connections > More connection settings > Private DNS);
- choose Private DNS provider hostname;
- enter the name, for example
dns.quad9.netorone.one.one.one, and save.
Note: this field takes the name, not the numeric address.
On iPhone and iPad
iOS lets you change DNS for each Wi-Fi network: Settings > Wi-Fi, tap the i next to the network, then Configure DNS > Manual, delete the existing servers and add the new ones. To apply them everywhere, mobile data included, you need the service’s app (Cloudflare and others offer a free one) or a configuration profile.
On the router: once for every device
Changing DNS on the router applies it automatically to everything that connects at home, smart TVs and smart devices included. Open the admin panel and look in the DHCP, LAN or Internet/WAN settings for the primary and secondary DNS fields. Some routers supplied by providers don’t allow this: in that case you’re left with setting it on each device.
When it’s better not to touch them
- If you use a DNS filter at home such as Pi-hole or AdGuard Home: setting a public DNS on the device bypasses it, and you lose ad and tracker blocking. The filter can forward queries to Quad9 or Cloudflare itself: configure it there;
- on work computers: internal DNS is often needed to reach office servers and services;
- if you use your provider’s parental controls, which usually work through its DNS;
- in hotels and airports with a login page: strict encrypted DNS can stop the login page from appearing. Turn it off temporarily, log in, then turn it back on.
Finally, if a service still doesn’t work after changing DNS, DNS probably wasn’t the problem: check whether the service itself is down on its status page.
