Skip to content

How to Change DNS to Google or Cloudflare on Windows

Switch your Windows PC to Google (8.8.8.8) or Cloudflare (1.1.1.1) DNS. Step-by-step via Settings, Control Panel, and PowerShell, plus how to revert and verify.

MGMCSA Guru Team November 20, 2026 7 min read
Photographic illustration for How to Change DNS to Google or Cloudflare on Windows: Windows PC on a desk with settings and console panels

By default, your PC uses whatever DNS server your ISP hands out through the router. That’s fine until it isn’t — a slow or flaky ISP resolver makes pages feel sluggish to load and occasionally throws “DNS server not responding.” Switching to a public resolver like Google’s 8.8.8.8 or Cloudflare’s 1.1.1.1 is a small change that often makes name lookups quicker and more dependable.

This guide shows three ways to do it on Windows 10 and 11 — the Settings app, the classic Control Panel adapter properties, and PowerShell — plus how to verify the change actually took and how to revert cleanly. Pick whichever method fits how you like to work; they all end up at the same place.

The addresses you’ll use

Here are the resolver addresses for both providers, including IPv6. Keep this handy — you’ll type them in whichever method you choose.

Public DNS server addresses

Google — Preferred (IPv4) 8.8.8.8
Google — Alternate (IPv4) 8.8.4.4
Cloudflare — Preferred (IPv4) 1.1.1.1
Cloudflare — Alternate (IPv4) 1.0.0.1
Google — IPv6 2001:4860:4860::8888 / ::8844
Cloudflare — IPv6 2606:4700:4700::1111 / ::1001

You can mix providers if you like — for example, Cloudflare as preferred and Google as alternate — but keeping a single provider’s pair together is cleaner and easier to reason about. If your network uses IPv6, set the IPv6 DNS entries too, or the system may still fall back to the ISP’s IPv6 resolver.

Method 1: The Settings app (Windows 11)

This is the modern path and the easiest on Windows 11.

  1. Open Settings → Network & Internet.
  2. Select your connection type — Wi-Fi or Ethernet — then click the network you’re connected to.
  3. Find DNS server assignment and click Edit.
  4. Change the dropdown from Automatic (DHCP) to Manual.
  5. Turn on IPv4. Enter the Preferred DNS and Alternate DNS from the table above (for example, 8.8.8.8 and 8.8.4.4).
  6. If you use IPv6, turn it on and enter the IPv6 addresses too.
  7. Click Save.

Done. Windows starts using the new resolvers right away for that adapter.

Method 2: Control Panel adapter properties

This route works the same on Windows 10 and 11 and is the one to use if you prefer the classic dialogs.

  1. Press Windows + R, type ncpa.cpl, and press Enter to open Network Connections.
  2. Right-click your active adapter and choose Properties.
  3. Select Internet Protocol Version 4 (TCP/IPv4) and click Properties.
  4. Choose Use the following DNS server addresses.
  5. Enter the Preferred and Alternate addresses, then click OK.
  6. For IPv6, repeat with Internet Protocol Version 6 (TCP/IPv6).

Microsoft’s reference on changing TCP/IP settings documents these same fields if you want the official walkthrough. This method is also handy when you’re already in the adapter settings troubleshooting something else.

Method 3: PowerShell

If you’d rather not click through dialogs — or you want a command you can reuse — PowerShell sets DNS in one line. Run it as administrator.

First, find your interface name:

Get-NetAdapter

Note the Name of your active adapter (commonly Wi-Fi or Ethernet). Then set the DNS servers:

Set-DnsClientServerAddress -InterfaceAlias "Wi-Fi" -ServerAddresses ("8.8.8.8","8.8.4.4")

For Cloudflare, swap the addresses:

Set-DnsClientServerAddress -InterfaceAlias "Wi-Fi" -ServerAddresses ("1.1.1.1","1.0.0.1")

Confirm what’s set:

Get-DnsClientServerAddress -InterfaceAlias "Wi-Fi"

The Set-DnsClientServerAddress cmdlet replaces the DNS servers for that interface with the ones you list. To go back to automatic, you reset it (covered below).

Verify the change worked

Don’t assume it took — confirm it. Open a terminal and flush the old cache first so you’re testing the new server:

ipconfig /flushdns

Then check which server is answering and that resolution works:

nslookup microsoft.com

The Server line in the nslookup output should show the resolver you set (8.8.8.8, 1.1.1.1, etc.), and you should get back addresses. If pages were failing before and now load, and nslookup returns answers from your chosen server, the switch is good. If lookups still fail, the underlying issue may be connectivity rather than DNS — our guide on fixing “DNS server not responding” covers that side, and Wi-Fi connected but no internet covers when the connection itself is the problem.

Set it on the router for the whole network

Changing DNS on the PC affects only that machine. If you want every device — phones, laptops, smart TVs — on Google or Cloudflare, set the DNS servers on your router instead. The exact location varies by model, but it’s usually under the router’s WAN, internet, or DHCP settings, where you replace the ISP-assigned DNS with 8.8.8.8 / 8.8.4.4 or 1.1.1.1 / 1.0.0.1. Every device that gets its settings from the router then inherits the new resolvers.

The trade-off: router-level changes affect everyone on the network, so coordinate it if others rely on the connection. It’s also worth noting that some devices ignore the router’s DNS and hard-code their own — certain smart TVs and streaming sticks do this — so a router change covers most but not always every device.

Why your DNS server matters

DNS is the lookup step before almost every connection your PC makes. Type an address, click a link, or open an app that phones home, and the first thing that happens is a name-to-IP lookup. If the resolver answering those lookups is slow or unreliable, every one of those actions starts with a delay you feel as “the internet is sluggish today,” even when your actual connection speed is fine.

That’s the gap public resolvers close. A fast, well-run resolver answers lookups quickly and stays up, so the first byte of every page arrives sooner. It won’t raise your download speed or fix a weak Wi-Fi signal — those are separate problems — but it removes a common, invisible source of lag. If your ISP’s DNS has been the bottleneck, the change is noticeable from the first page you load.

How to revert to automatic

Switching back is just as easy, and worth knowing before you change anything.

  • Settings app: set DNS server assignment back to Automatic (DHCP).
  • Control Panel: in IPv4 (and IPv6) properties, choose Obtain DNS server address automatically.
  • PowerShell:
Set-DnsClientServerAddress -InterfaceAlias "Wi-Fi" -ResetServerAddresses

Then flush the cache again with ipconfig /flushdns. The adapter goes back to using whatever DNS the router hands out.

Change-DNS checklist

  • Picked a provider and noted both addresses (IPv4 and IPv6 if used)
  • Set DNS via Settings, Control Panel, or PowerShell
  • Set IPv6 DNS too if your network uses IPv6
  • Flushed the cache with ipconfig /flushdns
  • Verified with nslookup that the new server is answering
  • Know how to revert to Automatic (DHCP)

Wrapping up

Pointing Windows at Google or Cloudflare DNS is a quick, low-risk change with a clear payoff when your ISP’s resolver is the weak link: faster, more reliable name lookups and fewer “DNS not responding” moments. Use whichever method suits you — Settings for the modern click-through, Control Panel for the classic dialogs, or PowerShell for a one-liner you can reuse.

Whatever you choose, verify it with nslookup and keep the revert steps in mind. Set it on the router if you want the whole network covered, and be cautious on a work PC where internal DNS may be doing real work behind the scenes.

Frequently asked questions

What are the Google and Cloudflare DNS addresses?

Google's resolvers are 8.8.8.8 (preferred) and 8.8.4.4 (alternate). Cloudflare's are 1.1.1.1 (preferred) and 1.0.0.1 (alternate). For IPv6, Google uses 2001:4860:4860::8888 and ::8844, and Cloudflare uses 2606:4700:4700::1111 and ::1001.

Should I pick Google or Cloudflare?

Both are fast and reliable. Cloudflare markets a privacy focus and is often very quick; Google's resolver is well established and widely used. For most people the difference is small — pick one, test it, and switch to the other if you prefer. You can even set one as preferred and the other as alternate.

Will changing DNS make my internet faster?

It can make name lookups faster and more reliable if your current DNS server is slow or overloaded, which makes pages feel snappier to start loading. It does not increase your actual bandwidth — downloads and streaming speeds depend on your connection, not your DNS server.

Do I set DNS on the PC or the router?

Setting it on the PC changes that one device. Setting it on the router changes DNS for every device on the network at once. If you want the whole household or office on Google or Cloudflare, the router is the efficient place; for a single machine, set it on the PC.

How do I change it back to automatic?

In the adapter's IPv4 properties, select 'Obtain DNS server address automatically', or in Settings set the DNS assignment back to Automatic (DHCP). In PowerShell, run Set-DnsClientServerAddress -InterfaceAlias '' -ResetServerAddresses. Then flush the cache with ipconfig /flushdns.

Is custom DNS safe on a work or domain-joined PC?

Be careful. Domain-joined and managed PCs often rely on internal DNS to reach company resources, file shares, and sign-in services. Overriding it with public DNS can break those. On a work machine, check with IT before changing DNS servers.

Sources & further reading

Official vendor documentation referenced while writing this guide.

MG

MCSA Guru Team

IT & Systems Administration

We are working IT pros and system administrators who spend our days in Windows Server, Microsoft 365, and the wider Microsoft stack. MCSA Guru is where we write down the fixes and walkthroughs we wish we had found the first time.

MCSA Guru provides independent, educational IT guidance. Microsoft, Windows, Windows Server, Microsoft 365, Exchange, and Microsoft Teams are trademarks of Microsoft Corporation; Docker is a trademark of Docker, Inc. MCSA Guru is not affiliated with or endorsed by Microsoft or Docker. Always test changes in a safe environment before applying them in production.

Related guides

Fixing something right now?

Jump straight into the guide library or search for the exact error or task you are dealing with.