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.
- Open Settings → Network & Internet.
- Select your connection type — Wi-Fi or Ethernet — then click the network you’re connected to.
- Find DNS server assignment and click Edit.
- Change the dropdown from Automatic (DHCP) to Manual.
- Turn on IPv4. Enter the Preferred DNS and Alternate DNS from the table above (for example,
8.8.8.8and8.8.4.4). - If you use IPv6, turn it on and enter the IPv6 addresses too.
- 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.
- Press Windows + R, type
ncpa.cpl, and press Enter to open Network Connections. - Right-click your active adapter and choose Properties.
- Select Internet Protocol Version 4 (TCP/IPv4) and click Properties.
- Choose Use the following DNS server addresses.
- Enter the Preferred and Alternate addresses, then click OK.
- 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.