Why Your Windows DNS Settings Matter More Than You Think
You click a link, and instead of your favorite website, you see a frustrating “This site can’t be reached” error. Or maybe your internet feels sluggish, taking ages to load pages that should pop up instantly. Often, the culprit isn’t your internet provider or your Wi-Fi router—it’s the invisible address book your computer uses to navigate the web: the DNS server.
By default, Windows uses the DNS servers provided by your Internet Service Provider. These can be slow, unreliable, and sometimes even log your browsing activity. Changing your DNS to a faster, more private alternative is one of the simplest yet most effective tweaks you can make to improve your online experience.
This guide will walk you through every method to change DNS on Windows, from the quick graphical settings to powerful command-line tools. You’ll learn how to pick the best DNS for your needs and fix common issues along the way.
Understanding DNS: Your Internet’s Phonebook
Before we change it, let’s understand what we’re changing. DNS stands for Domain Name System. When you type “google.com” into your browser, your computer doesn’t inherently know where that is. It needs an IP address, a numerical label like 142.250.185.78.
A DNS server’s job is to translate the human-friendly domain name (google.com) into the machine-friendly IP address. If that translation server is slow or down, your browsing grinds to a halt, even if your actual internet connection is fine.
Choosing the Right DNS Server for Windows
You have several excellent, free alternatives to your ISP’s default DNS. Each offers different benefits.
Google Public DNS
Addresses: 8.8.8.8 and 8.8.4.4
Google’s DNS is renowned for its speed and reliability. It’s a great general-purpose choice that works virtually everywhere.
Cloudflare DNS
Addresses: 1.1.1.1 and 1.0.0.1
Cloudflare emphasizes privacy, promising not to log your IP address or sell your data. It’s also extremely fast and includes built-in security against malware and phishing sites with its 1.1.1.1 for Families option.
OpenDNS
Addresses: 208.67.222.222 and 208.67.220.220
Operated by Cisco, OpenDNS provides robust parental controls and security filtering. It’s a strong choice if you want to block specific categories of websites across your entire network.
For this guide, we’ll use Cloudflare’s 1.1.1.1 as our example, but the steps are identical for any DNS provider—just substitute the addresses.
How to Change DNS Using Windows Settings (The Easy Way)
This is the standard method for most users, accessible through the familiar Settings app or Control Panel.
Via the Windows 10 & 11 Settings App
Press the Windows key + I to open Settings. Navigate to Network & Internet.
If you’re on Wi-Fi, click “Wi-Fi” on the left. If you’re using Ethernet, click “Ethernet.” Then, click on the name of your active network connection.
Scroll down and find the “IP assignment” section. Click the “Edit” button next to it.
In the drop-down menu that appears, change it from “Automatic (DHCP)” to “Manual.” This will reveal more options.
Toggle the “IPv4” switch to the On position.
Now, enter your preferred DNS addresses. In the “Preferred DNS” field, type 1.1.1.1. In the “Alternate DNS” field, type 1.0.0.1.
Leave the “IP address” and “Subnet prefix length” fields set to automatic (unless you have a specific static IP from your network admin).
Click “Save.” Windows will apply the settings. You might see a brief network disconnect and reconnect.
Via the Classic Control Panel
Some users prefer the older interface, which works on all Windows versions.
Open the Start Menu and type “Control Panel,” then open it.
Go to “Network and Internet” > “Network and Sharing Center.”
On the left, click “Change adapter settings.” This shows all your network connections.
Right-click on your active connection (Wi-Fi or Ethernet) and select “Properties.”
In the list, find and select “Internet Protocol Version 4 (TCP/IPv4)” and click the “Properties” button.
In the new window, select “Use the following DNS server addresses.”
Enter 1.1.1.1 for the Preferred DNS server and 1.0.0.1 for the Alternate DNS server.
Click “OK,” and then “OK” again to close all windows. The change takes effect immediately.
How to Change DNS Using Command Prompt or PowerShell
For power users, IT administrators, or when you need to script the change, the command line is the most powerful tool.
Using Command Prompt (Admin)
First, you need to run Command Prompt as an administrator. Search for “cmd,” right-click “Command Prompt,” and select “Run as administrator.”
To see your current network interfaces, type the following command and press Enter:
netsh interface show interface
Identify the name of your active adapter. It might be “Wi-Fi,” “Ethernet,” or something like “Local Area Connection.” Note the exact name.
Now, use this command structure to set the DNS. Replace “Wi-Fi” with your adapter’s name.
netsh interface ip set dns name=”Wi-Fi” static 1.1.1.1
This sets the primary DNS. To set the secondary DNS, use:
netsh interface ip add dns name=”Wi-Fi” 1.0.0.1 index=2
To verify the change, type:
ipconfig /all
Look for your network adapter in the output. Under “DNS Servers,” you should now see 1.1.1.1 and 1.0.0.1 listed.
Using PowerShell (Admin)
PowerShell offers even more control. Run PowerShell as an administrator.
Get a list of your network interfaces with:
Get-NetAdapter
Note the “Name” or “InterfaceAlias” of your connected adapter.
To set the DNS servers, use this command, replacing “Wi-Fi” with your adapter name:
Set-DnsClientServerAddress -InterfaceAlias “Wi-Fi” -ServerAddresses 1.1.1.1, 1.0.0.1
You can verify the setting with:
Get-DnsClientServerAddress -InterfaceAlias “Wi-Fi”
Switching Back to Automatic DNS
Changed your mind or troubleshooting an issue? Reverting is straightforward.
In Settings: Go back to your network properties, change the IP assignment back to “Automatic (DHCP),” and save.
In Control Panel: In the IPv4 properties window, simply select “Obtain DNS server address automatically.”
In Command Prompt (Admin): Use this command:
netsh interface ip set dns name=”Wi-Fi” dhcp
In PowerShell (Admin): Use this command:
Set-DnsClientServerAddress -InterfaceAlias “Wi-Fi” -ResetServerAddresses
Troubleshooting Common DNS Change Problems
Even a simple change can sometimes hit a snag. Here’s how to fix the most common issues.
“The DNS server isn’t responding” Error
This usually means Windows can’t communicate with the new DNS addresses you entered.
First, double-check for typos. 1.1.1.1 is easy to mistype as 1.1.1.11.
Try pinging the DNS server to see if it’s reachable. Open Command Prompt and type:
ping 1.1.1.1
If you get replies, the server is up. If you get “Request timed out,” the problem might be a firewall blocking the connection. Temporarily disable your firewall to test, or ensure it allows outbound traffic on port 53 (DNS).
Try a different DNS provider. Switch to Google’s 8.8.8.8 to see if the problem is specific to one service.
Internet Works But Some Websites Don’t Load
This can happen if the DNS server is blocking certain content (like OpenDNS might by default) or if there’s a stale DNS cache on your PC.
Flush your local DNS cache. Open Command Prompt as admin and run:
ipconfig /flushdns
This clears Windows’s stored DNS translations, forcing it to fetch fresh ones from your new server.
Changes Don’t Seem to Apply or Stick
If you change the DNS but ipconfig /all still shows your old ISP’s servers, you might have multiple network profiles or a VPN interfering.
Ensure you’re modifying the correct network adapter. Disconnect any VPN software and try again.
Some advanced router settings or enterprise group policies can override local Windows DNS settings. If you’re on a work or school network, you may not have permission to change it.
Taking Your DNS Management to the Next Level
For users who want more granular control, consider these advanced options.
Setting DNS at the Router Level
Changing the DNS in your Wi-Fi router applies the new settings to every device on your network—phones, tablets, smart TVs, and all Windows PCs. This is the most efficient method for home networks.
Log into your router’s admin panel (usually by typing 192.168.1.1 or 192.168.0.1 into a browser).
Look for settings like “Internet,” “WAN,” or “DHCP Server.”
Find the DNS server fields and replace them with your chosen addresses (e.g., 1.1.1.1 and 1.0.0.1). Save and reboot the router.
Using DNS Benchmarking Tools
Curious which DNS is truly fastest for your location? Tools like “DNS Benchmark” from GRC can test multiple public DNS servers simultaneously and rank them by response time. This takes the guesswork out of choosing between Google, Cloudflare, and others.
Securing and Speeding Up Your Windows Experience
Changing your DNS is a foundational tweak. For a complete performance and security boost, pair it with a few other best practices.
Keep Windows Updated: Ensure you have the latest network drivers and security patches from Windows Update.
Use a Reputable Security Suite: A good security program can work in tandem with a secure DNS to block malicious sites at multiple levels.
Consider a VPN for Full Privacy: While a private DNS hides your lookup requests from your ISP, a VPN encrypts all your internet traffic. For maximum privacy, use both a no-logs VPN and a private DNS.
Regularly review your network settings, especially after major Windows updates, as they can sometimes reset configurations to defaults.
Your Faster, More Private Internet Awaits
Changing your DNS on Windows is a five-minute task with lasting benefits. You’ve now unlocked the knowledge to switch from slow, default servers to faster, more reliable options like Cloudflare or Google DNS. You can use the simple Settings app for a quick change or wield the command line for precise control.
Remember the troubleshooting steps if you hit a bump—flushing the DNS cache is often the quick fix. For the broadest impact, configure the new DNS directly on your home router.
Take a moment now to apply one of these methods. Open a browser and navigate to a few websites. You might just notice pages snapping into place a little quicker, a small but satisfying upgrade to your daily digital life, powered by a simple change in your Windows settings.