Windows 11 uses your router’s default DNS server unless you set a custom one manually. That default is usually your ISP’s own resolver, which can be slow, unreliable, or logged for tracking. Switching to a provider like Cloudflare, Google, or Quad9 can shorten page load times, bypass ISP-level blocks, or fix intermittent “site can’t be reached” errors. This guide covers four ways to make the change, plus how to confirm it worked.

Method 1: Change DNS Through Settings
This is the standard method for both Wi-Fi and Ethernet connections.
- Open Settings and go to Network & internet.
- Click your active connection (Wi-Fi or Ethernet).
- Select Hardware properties, or click the specific adapter if multiple are listed. This opens the adapter’s properties page.
- On that page, find DNS server assignment and click Edit next to it.
- Change the dropdown from Automatic (DHCP) to Manual.
- Toggle IPv4 on, then enter a Preferred DNS and Alternate DNS address. Only toggle IPv6 as well if your network actually uses an IPv6 connection; most home setups don’t need this.
- If Preferred DNS encryption appears, you can set it to On (automatic template) to enable DNS over HTTPS (DoH) for encrypted DNS traffic. This option only shows up if Windows detects the server supports it.
- Click Save.
Popular DNS Server Addresses
Each provider below has different priorities, from raw speed to content filtering.
| Provider | Preferred DNS | Alternate DNS |
|---|---|---|
| Cloudflare | 1.1.1.1 | 1.0.0.1 |
8.8.8.8 | 8.8.4.4 | |
| Quad9 | 9.9.9.9 | 149.112.112.112 |
| OpenDNS | 208.67.222.222 | 208.67.220.220 |
Method 2: Change DNS Using Command Prompt
This is an alternative to the Settings method above, not an extra step to run afterward. Use it if you prefer scripting the change or applying it across multiple machines.
- Open Command Prompt as administrator.
- Run
netsh interface show interfaceto confirm your adapter’s exact name. - Set the preferred DNS with
netsh interface ip set dns name="Wi-Fi" static 1.1.1.1. - Add the alternate DNS with
netsh interface ip add dns name="Wi-Fi" 1.0.0.1 index=2. - Replace
"Wi-Fi"with"Ethernet"if you’re on a wired connection. - If a command returns an “Access is denied” or “Element not found” error, confirm Command Prompt is running as administrator and that the adapter name from step 2 was typed exactly, including capitalization.
- To revert to automatic DNS later, run
netsh interface ip set dns name="Wi-Fi" dhcp.
Method 3: Change DNS Using PowerShell
PowerShell’s NetTCPIP module offers the same control as Command Prompt with more script-friendly syntax.
- Open Start, search for PowerShell, and select Run as administrator.
- Run
Get-NetIPConfigurationto view your current setup. - In the output, find your active adapter’s block and note the number next to InterfaceIndex.
- Set the DNS servers with
Set-DnsClientServerAddress -InterfaceIndex 12 -ServerAddresses 1.1.1.1,1.0.0.1, replacing12with the InterfaceIndex number from step 3 and the addresses with your preferred provider. - To revert to automatic DNS later, run
Get-NetAdapter -InterfaceIndex 12 | Set-DnsClientServerAddress -ResetServerAddresses, using the same InterfaceIndex number.
Method 4: Change DNS Using Control Panel
Control Panel still works on Windows 11 and is familiar if you’ve configured DNS on older Windows versions. Note that it doesn’t support DNS over HTTPS; use the Settings method above if you need DoH.
- Open Control Panel and go to Network and Internet > Network and Sharing Center.
- Click Change adapter settings in the left pane.
- Right-click your active adapter and select Properties.
- Select Internet Protocol Version 4 (TCP/IPv4), then click Properties.
- Select Use the following DNS server addresses.
- Enter your Preferred DNS server and Alternate DNS server.
- Click OK, then Close.
- To revert later, repeat these steps and select Obtain DNS server address automatically in step 5, then click OK.
Flush DNS Cache After Switching
Windows caches old DNS lookups, which can delay the effect of your new settings.
- Open Command Prompt.
- Run
ipconfig /flushdns. - Restart your browser.
Verify the New DNS Is Working
Confirming the change took effect helps rule out typos or a setting that didn’t save.
- Open Command Prompt and run
ipconfig /all. - Under your active adapter, check that DNS Servers shows the addresses you entered.
- If the old addresses still appear, restart your computer; some adapters don’t apply DNS changes until a reboot.
Frequently Asked Questions
Does changing DNS affect internet speed?
DNS mainly affects how fast a domain name resolves to an IP address, not your overall bandwidth. A closer or better-optimized DNS server can shorten the initial connection delay.
Can I revert to my router’s default DNS?
Yes. In the same Edit DNS server assignment panel, switch the dropdown back to Automatic (DHCP).
Is it safe to use public DNS servers?
Providers like Cloudflare and Google publish clear privacy policies about query logging, and both are widely used without issues. Check the provider’s policy if privacy is a specific concern.
Should I change DNS on my computer or my router?
If you want the new DNS servers applied to every device on your network, set them at the router instead. Changing DNS on a single Windows 11 computer only affects that machine.