Change DNS through Settings in three steps

To change your DNS in Windows 11, open Settings, go to Network & Internet, select your connection type, then find DNS settings and enter new server addresses. The process takes about two minutes and doesn't require a restart. Windows 11 lets you set DNS at the connection level — meaning you can use different DNS servers for Wi-Fi versus Ethernet if you need to.

Here's the exact path: Press the Windows key, type "Settings," and open it. Click Network & Internet on the left sidebar. If you're on Wi-Fi, click Wi-Fi, then select your network name and click Manage. If you're on Ethernet, click Ethernet instead. Scroll down to DNS server assignment and click Edit.

A window will open showing your current DNS setup. Change the dropdown from Automatic (DHCP) to Manual. Toggle on IPv4 (or IPv6 if you're using that protocol). Enter your new DNS server addresses in the fields provided — most people use two: a primary and a secondary. Click Save when you're done.

Key Takeaways

  • Windows 11 lets you change DNS through Settings without touching the command line or advanced networking panels.
  • You must switch from Automatic (DHCP) to Manual mode before you can enter custom DNS addresses.
  • Common public DNS servers include Google (8.8.8.8 and 8.8.4.4) and Cloudflare (1.1.1.1 and 1.0.0.1).
  • Changes take effect immediately on that connection; you do not need to restart your computer.
  • If something goes wrong, you can always switch back to Automatic (DHCP) to restore your original DNS.

What DNS servers do and why you might change them

A DNS server translates web addresses (like google.com) into the IP addresses your computer actually uses to connect. Your internet provider normally assigns you a DNS server automatically, but you can replace it with a different one. Some people switch to a public DNS provider for speed, privacy, or to block certain websites at the DNS level.

Common reasons to change DNS include faster web browsing (some public DNS servers are quicker than your ISP's), better privacy (some providers don't log your browsing), or parental controls (some DNS services block adult content). You might also change DNS if your ISP's DNS server is down or behaving poorly. The change only affects how your computer looks up addresses — it doesn't change your internet speed or your IP address itself.

Using the command line if Settings doesn't work

If you prefer the command line or Settings isn't responding, you can change DNS through PowerShell. Right-click the Windows Start button and select Terminal (Admin) or Windows PowerShell (Admin). You'll need administrator permission to proceed.

Type this command, replacing the addresses with your chosen DNS servers: Set-DnsClientServerAddress -InterfaceAlias "Wi-Fi" -ServerAddresses ("8.8.8.8","8.8.4.4"). If you're on Ethernet, replace "Wi-Fi" with "Ethernet". Press Enter and wait for the command to complete. To verify the change worked, type Get-DnsClientServerAddress and press Enter — you should see your new addresses listed.

The command line method works the same way as Settings but can be faster if you're changing DNS on multiple computers or scripting the change. If you make a mistake, you can always run the command again with different addresses or switch back to automatic DNS through Settings.

Popular public DNS servers and what they offer

Google Public DNS (8.8.8.8 and 8.8.4.4) is one of the oldest and most widely used. It's fast, reliable, and free. Google does log some data about your queries, though they say they don't tie it to your personal account. Cloudflare DNS (1.1.1.1 and 1.0.0.1) emphasizes privacy — they say they don't log your queries at all and delete logs after 24 hours. Both are fast and work well for most people.

Quad9 (9.9.9.9 and 149.112.112.112) blocks malware and phishing sites automatically, which can protect you from dangerous websites. OpenDNS (208.67.222.222 and 208.67.220.220) offers parental controls and content filtering. If you want to block ads at the DNS level, AdGuard DNS (94.140.14.14 and 94.140.15.15) removes ad domains before they load. Choose based on what matters to you — speed, privacy, security, or content filtering.

Troubleshooting when DNS changes don't work

If you change DNS but websites still don't load, first check that you entered the addresses correctly. Go back to Settings, find your DNS settings, and verify each number matches what you intended. A single digit wrong will cause problems. If the addresses are correct, try flushing your DNS cache — open PowerShell as admin and type ipconfig /flushdns, then press Enter. This clears old DNS information your computer was holding.

If websites still don't load, switch back to Automatic (DHCP) DNS to confirm your internet works with your ISP's servers. If it does, the problem is with the DNS server you chose — try a different one. If your internet doesn't work even with automatic DNS, the problem isn't DNS; it's your connection itself. Restart your router and modem, wait 30 seconds, and try again. If you're still stuck, contact your internet provider to check whether your connection is working on their end.

Sometimes your router also has DNS settings that override what you set on your computer. If you want to change DNS for your whole network, log into your router's admin panel (usually 192.168.1.1 or 192.168.0.1 in your browser) and look for DNS settings there. Changes at the router level affect all devices on your Wi-Fi, which can be useful if you want the same DNS across phones, tablets, and computers.

Reverting to automatic DNS if you change your mind

To go back to your ISP's automatic DNS, open Settings, go to Network & Internet, select your connection, and click Manage. Find DNS server assignment, click Edit, and change the dropdown back to Automatic (DHCP). Click Save. Windows will ask your ISP's DHCP server for DNS addresses the next time you connect, usually within seconds.

If you used PowerShell to change DNS, you can revert the same way: open PowerShell as admin and type Set-DnsClientServerAddress -InterfaceAlias "Wi-Fi" -ResetServerAddresses. This tells Windows to stop using manual DNS and go back to automatic. The change takes effect immediately.

Frequently Asked Questions

Will changing DNS make my internet faster?

It might, depending on your ISP's DNS server and which one you switch to. Public DNS servers like Cloudflare and Google are often faster than ISP DNS, but the difference is usually small — a few milliseconds. If your ISP's DNS is slow or unreliable, switching can help noticeably. The only way to know is to try it and see if websites load faster.

Can I use different DNS servers for different websites?

No, you set one pair of DNS servers per connection, and they handle all lookups. However, some router admin panels and advanced networking tools let you set rules that send certain domains to different DNS servers. This is beyond the standard Windows 11 settings and requires technical knowledge.

What's the difference between IPv4 and IPv6 DNS?

IPv4 and IPv6 are two versions of the internet protocol. Most people use IPv4 addresses (like 8.8.8.8), but IPv6 is newer and becoming more common. If you're not sure which one you need, set IPv4 only — it works for nearly all websites and devices. Your internet provider will tell you if you need IPv6.

Do I need to restart my computer after changing DNS?

No, DNS changes take effect immediately. You don't need to restart your computer or even disconnect and reconnect to your network. If a website doesn't load right away, wait a few seconds or refresh the page — your computer may still have the old address cached.

Is it safe to change DNS?

Yes, changing DNS is safe. You're just telling your computer to use a different service to look up web addresses. The worst that can happen is websites don't load, in which case you switch back to automatic DNS. You can't damage your computer or network by entering a wrong DNS address.