How to Change Your DNS Server (Windows, Mac, Phone, Router)

Your DNS server turns names like testnook.com into the IP addresses your device connects to. By default it is your internet provider's, which can be slow, unreliable or filtered. Switching to a public resolver such as Cloudflare, Google or Quad9 takes two minutes and can make websites start loading faster and fix sites that will not open. Here is how to do it on each device, and how to check it worked.

The short answer

  • Popular choices: Cloudflare 1.1.1.1 and 1.0.0.1, Google 8.8.8.8 and 8.8.4.4, Quad9 9.9.9.9 and 149.112.112.112 (Quad9 also blocks known malicious domains).
  • Change it on the router to cover every device at home, or on one device: Windows network settings, Mac Wi-Fi details, Android Private DNS, iPhone Configure DNS.
  • Pick the fastest for you with the DNS server speed test in the DNS lookup tool.
  • DNS changes how fast sites start loading and which sites resolve. It does not change download speed or game ping.

Why change your DNS server?

Every time you open a site or an app connects somewhere, your device first asks a DNS resolver for the address. A slow resolver adds a delay before anything loads; a broken one makes sites fail with "server not found" even though the internet works. Common reasons to switch:

  • Speed: a resolver close to you with a large cache answers in a few milliseconds.
  • Reliability: provider DNS servers sometimes go down while the rest of the line works.
  • Privacy: some public resolvers keep fewer logs and support encrypted DNS.
  • Security: Quad9, Cloudflare for Families (1.1.1.2) and others block known malware and phishing domains.

It will not raise your Mbps or lower your ping in a match. If those are the problem, see what is a good internet speed and how to reduce ping.

Which DNS server to choose

ProviderIPv4IPv6Encrypted DNS name
Cloudflare1.1.1.1, 1.0.0.12606:4700:4700::1111, 2606:4700:4700::1001one.one.one.one
Google Public DNS8.8.8.8, 8.8.4.42001:4860:4860::8888, 2001:4860:4860::8844dns.google
Quad9 (blocks malicious domains)9.9.9.9, 149.112.112.1122620:fe::fe, 2620:fe::9dns.quad9.net

All three are fast worldwide. Which is fastest for you depends on where their nearest servers are. Open the DNS lookup and press Test DNS server speed: it times eight public resolvers from your connection and sorts them. Pick the fastest and use the second fastest as the backup address.

Change DNS on Windows 11 and 10

Windows 11: open Settings > Network & internet, click Wi-Fi (then your network's properties) or Ethernet. Next to DNS server assignment, click Edit, switch Automatic (DHCP) to Manual, turn on IPv4, and enter the preferred and alternate DNS. Set DNS over HTTPS to On (automatic template) for an encrypted connection. Repeat for IPv6 if your connection has it, then Save.

Windows 10: open Control Panel > Network and Internet > Network and Sharing Center > Change adapter settings. Right-click your connection > Properties, select Internet Protocol Version 4 (TCP/IPv4) > Properties, choose "Use the following DNS server addresses", enter the two addresses and click OK.

Afterwards, open Command Prompt and run ipconfig /flushdns to clear the old cached answers.

Change DNS on Mac, iPhone and iPad

Mac: open System Settings > Network, click Wi-Fi (or Ethernet), then Details next to your network. Choose DNS, click + under DNS Servers and add the two addresses, remove the old ones with -, and click OK.

iPhone and iPad: open Settings > Wi-Fi and tap the (i) next to your network. Tap Configure DNS, choose Manual, delete the existing servers, tap Add Server for each new address and tap Save. This applies to that Wi-Fi network only; repeat for other networks. Mobile data keeps the carrier's DNS unless you use a DNS app or profile, such as Cloudflare's 1.1.1.1 app.

Change DNS on Android

Android 9 and newer have Private DNS, which encrypts DNS and works on both Wi-Fi and mobile data. Open Settings > Network & internet (or Connections > More connection settings on Samsung) > Private DNS. Choose Private DNS provider hostname and type one of: one.one.one.one, dns.google or dns.quad9.net. Save. Note that Private DNS takes a hostname, not an IP address like 1.1.1.1.

If a network blocks encrypted DNS (some hotel and work Wi-Fi), the phone shows "Couldn't connect"; switch Private DNS back to Automatic on that network.

Change DNS on your router or in your browser

Router: changing it here covers every device at home, including TVs and consoles that have no DNS setting. Open the router's admin page (often 192.168.0.1 or 192.168.1.1; the address and login are usually on a label underneath), find the WAN, Internet or DHCP settings, and replace the DNS servers there. Some provider routers lock this setting; in that case set DNS on each device instead.

Browser only: Chrome: Settings > Privacy and security > Security > Use secure DNS, choose a provider. Edge: Settings > Privacy, search, and services > Security > Use secure DNS. Firefox: Settings > Privacy & Security > DNS over HTTPS, choose Increased or Max Protection. This changes DNS for that browser only.

Check that it worked

Reload a few sites; they should open normally. To confirm which resolver you now use, Cloudflare offers a check page at 1.1.1.1/help. Then run the speed test in the DNS lookup tool again to compare. If some sites stop working after the change, a router or network may be forcing its own DNS, or a site may rely on your provider's DNS (rare, mostly provider portals); switch back to Automatic to confirm.

If you use a VPN, it normally sets its own DNS while connected, so your manual setting applies only when the VPN is off. Check your IP address and run the WebRTC leak test to make sure the VPN covers everything.

Frequently asked questions

What is the fastest DNS server?
It depends on where you are. Cloudflare, Google and Quad9 are usually the fastest worldwide. The DNS server speed test in our DNS lookup tool measures them from your connection.
Is it safe to change my DNS server?
Yes, using a well-known provider such as Cloudflare, Google or Quad9. You can switch back to Automatic at any time. Avoid unknown DNS servers, which could send you to fake sites.
Will changing DNS make my internet faster?
It can make sites start loading slightly sooner and fix lookups that fail, but download speed and ping stay the same.
Is 1.1.1.1 better than 8.8.8.8?
Both are fast and reliable. Cloudflare says it deletes its resolver logs within 25 hours; Google keeps some logs for longer. Speed depends on your location: test both.
Does changing DNS hide my browsing?
Encrypted DNS (DNS over HTTPS or Private DNS) hides lookups from your network and provider, but sites still see your IP address. For that you need a VPN.
Do I need to restart after changing DNS?
Usually not. Flush the DNS cache (ipconfig /flushdns on Windows) or turn Wi-Fi off and on, and reload the browser.

Sources

  1. Cloudflare: Set up 1.1.1.1
  2. Google Public DNS: Get started
  3. Quad9: Service addresses and features
  4. Cloudflare: 1.1.1.1 public DNS resolver privacy commitments