Changing your DNS provider in Windows can improve browsing speed, reliability, and privacy by replacing your ISP’s default servers with faster or more secure ones like Cloudflare, Google, or OpenDNS. This guide walks you through the process on Windows 10 and Windows 11, covering both IPv4 and IPv6 settings, and includes troubleshooting for common issues.
What You’ll Need
- A Windows 10 or Windows 11 PC with administrator access
- The DNS server addresses you want to use (for example, Cloudflare: 1.1.1.1 and 1.0.0.1; Google: 8.8.8.8 and 8.8.4.4; OpenDNS: 208.67.222.222 and 208.67.220.220)
- Your current network connection details (Wi-Fi or Ethernet) – you don’t need to write these down, but it helps to know which adapter you’re using
Step-by-Step
- Open Network Settings
Right-click the network icon in the system tray (bottom-right corner of your screen) and select Network & Internet settings. Alternatively, press Win + I to open Settings, then go to Network & Internet. - Access Adapter Options
In the Settings window, click Advanced network settings (Windows 11) or Change adapter options (Windows 10). This opens the Network Connections window showing all your network adapters. - Open Your Active Adapter’s Properties
Find the adapter you’re currently using – it will typically be labeled Ethernet or Wi-Fi and show a green bar or “Connected” status. Right-click it and select Properties. If prompted by User Account Control, click Yes. - Select Internet Protocol Version 4 (TCP/IPv4)
In the list of items, scroll down and find Internet Protocol Version 4 (TCP/IPv4). Click it once to highlight it, then click the Properties button below the list. - Enter Your Preferred DNS Servers
In the Properties window, select the radio button next to Use the following DNS server addresses. Then enter your preferred DNS in the Preferred DNS server field and an alternate in the Alternate DNS server field. For example, for Cloudflare: Preferred = 1.1.1.1, Alternate = 1.0.0.1. - Optional: Configure IPv6
If you want to set DNS for IPv6 as well, go back to the adapter properties, select Internet Protocol Version 6 (TCP/IPv6), click Properties, and enter IPv6 DNS addresses (e.g., Cloudflare IPv6: 2606:4700:4700::1111 and 2606:4700:4700::1001). This step is optional but recommended for full coverage. - Apply the Changes
Click OK on both open Properties windows, then close the adapter properties. Your new DNS settings take effect immediately for new connections. - Flush the DNS Cache (Optional but Recommended)
Open Command Prompt as administrator (search for “cmd”, right-click, and select Run as administrator), then typeipconfig /flushdnsand press Enter. This clears any cached DNS entries from your old provider. - Verify the Change
To confirm your new DNS is active, visit a site like whatsmydnsserver.com or runnslookup example.comin Command Prompt. The output should show your new DNS server addresses.
Common Mistakes
- Changing the wrong adapter – If you have both Ethernet and Wi-Fi enabled, you might change the DNS on an adapter you’re not using. Check which one has “Connected” status first.
- Typing the DNS addresses incorrectly – A single wrong digit (e.g., 1.1.1.0 instead of 1.1.1.1) will break name resolution. Double-check each number.
- Forgetting to select “Use the following DNS server addresses” – If you type addresses but leave “Obtain automatically” selected, your changes won’t apply.
- Only setting IPv4 – If your network uses IPv6 and you only change IPv4, some traffic may still use the old DNS. Set both if your provider offers IPv6 addresses.
- Not flushing the DNS cache – Old cached entries can make it appear your change didn’t work, even though the new settings are active.
Tips
- Use a reputable DNS provider – Cloudflare (1.1.1.1), Google (8.8.8.8), and OpenDNS (208.67.222.222) are well-known, reliable options. Each publishes its privacy policy, so choose one that aligns with your preferences.
- Write down your old settings – Before changing, note whether “Obtain DNS server address automatically” was selected. This makes it easy to revert if needed.
- Test multiple providers – DNS performance varies by location and ISP. Use a tool like DNS Benchmark to compare response times, though this is optional.
- Consider router-level changes – If you want every device on your network to use the new DNS, change it in your router’s admin panel instead of per-PC. This guide covers the per-PC method, which is useful for testing or when you can’t access the router.
- Restart your browser – After changing DNS, close and reopen your browser to ensure it picks up the new settings.
Troubleshooting
- No internet after the change – Double-check the DNS addresses you entered. Try switching back to “Obtain automatically” to confirm the issue is with your custom DNS, then re-enter the addresses carefully.
- DNS server not responding error – This usually means the address is unreachable. Verify you typed it correctly and that the provider’s servers are up (check their status page). Try a different provider’s addresses.
- Changes don’t stick after reboot – Some third-party security software or VPN clients override DNS settings. Temporarily disable them, apply your DNS change, then re-enable. Also check if your router is forcing its own DNS via DHCP.
- Can’t find the adapter properties – If the Network Connections window is empty, your network adapter driver may be missing or disabled. Check Device Manager under “Network adapters” and enable or reinstall the driver.
- IPv6 DNS doesn’t work – Not all providers offer IPv6 DNS, and some networks don’t route IPv6 properly. If you have issues, leave IPv6 set to “Obtain automatically” and only change IPv4.
- Command Prompt says “Access denied” when flushing – You must run Command Prompt as administrator. Right-click the Command Prompt icon and select “Run as administrator”.
Frequently Asked Questions
Q: Will changing DNS slow down my internet?
A: It can slightly speed up browsing if your new DNS is faster than your ISP’s, but it won’t increase your raw bandwidth. Download speeds are unaffected.
Q: Do I need to change DNS on every device?
A: No – changing it on your router applies to all devices on your network. Changing it on a single PC only affects that PC.
Q: What’s the difference between IPv4 and IPv6 DNS?
A: IPv4 uses 32-bit addresses (like 1.1.1.1), IPv6 uses 128-bit addresses (like 2606:4700:4700::1111). Most networks still rely on IPv4, but setting both ensures full coverage.
Q: Can I use more than two DNS servers?
A: Windows only allows one preferred and one alternate per adapter. If you want more, you’d need to set them at the router level or use third-party DNS management software.
Q: Is it safe to use public DNS like Google or Cloudflare?
A: Yes, these are widely used and generally considered safe. They do log some query data, but typically with privacy policies that anonymize it. Review each provider’s policy to decide what’s right for you.
Q: How do I revert to my original DNS settings?
A: Go back to the adapter properties, select “Obtain DNS server address automatically” for both IPv4 and IPv6, then click OK. Flush the DNS cache afterward.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Chromebook Tips and Tricks: 25+ Real Fixes
- FaceTime on Samsung: How to Join a Call
- iPhone Favorite Contacts Not Working? Fixes
- BitLocker USB Decryption: Step-by-Step Guide
- Windows Could Not Start the Service on Local Computer Error: Fixes
- How to Unblock Someone on Snapchat: Step-by-Step