Latest

Changing DNS on your PC, phone and router: when it really helps and how to do it

Changing DNS can fix some outages in a minute, but it won't make your connection faster. Which public DNS to choose, how to set it on Windows, Mac, Android, iPhone and the router, and when you're better off keeping your provider's.

By 4 min read
Changing DNS on your PC, phone and router

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 ping to a numeric address like 8.8.8.8 works. 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
Google 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

  1. open Settings > Network & internet and choose Wi-Fi or Ethernet;
  2. click the connection you’re using, then Hardware properties;
  3. next to DNS server assignment, click Edit and choose Manual;
  4. turn on IPv4 and enter the preferred and alternate DNS;
  5. in the DNS over HTTPS menu choose On (automatic template) to encrypt queries;
  6. save, then open Command Prompt and type ipconfig /flushdns to 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.

  1. open Settings > Network & internet > Private DNS (on Samsung, Connections > More connection settings > Private DNS);
  2. choose Private DNS provider hostname;
  3. enter the name, for example dns.quad9.net or one.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.