Slow internet isn't always about your bandwidth. Often, the culprit sits silently in your network settings: your DNS server. Every time you click a link, your computer asks a DNS server "where is this site?" before loading anything. A slow resolver adds delay before every page. The fix? Changing your DNS. This guide covers how to do that across Windows 7, 8, 10, 11, Server 2012, Server 2016, and even classic XP — using Settings, Control Panel, Command Prompt, and PowerShell. Plus IPv6, DNS over HTTPS, verification, cache flushing, and how to undo everything safely.

Before touching anything, write down your current settings. If you're on a work machine or domain-joined PC, replacing internal DNS can cut you off from local resources. More on that later.

🌐 What's DNS?

Imagine DNS (Domain Name System) as the internet's phonebook, translating user-friendly domain names into machine-friendly IP addresses. When you type a website's name into your browser, DNS works behind the scenes, directing your request to the correct IP — much like a GPS guiding you to your destination. To deep dive into this core infrastructure, explore what is a DNS server and how it maintains internet records. Understanding how to change DNS in Windows can significantly impact your browsing experience.

Changing DNS in Windows is a simple but powerful process. In Windows 10 and Windows 11, altering DNS addresses involves accessing your network settings — navigate to Network & Internet, select your connection, and edit properties to input your preferred DNS servers manually. If deploying projects on a remote desktop setup, a Windows 10 VPS lets you safely configure custom parameters on a dedicated remote environment.

For command-line operations, changing DNS using CMD is straightforward. Commands like netsh interface ipv4 set dns modify settings efficiently. For complex infrastructure, administrators evaluate PowerShell vs CMD to execute network overrides at scale.

Additionally, knowing how to locate your IP address helps prevent mistakes. In Windows 10, find your IP by accessing Network & Internet settings or typing ipconfig in Command Prompt. Understanding your addressing parameters prevents common modification errors.

🚀 Why You May Want to Change DNS in Windows

Changing your DNS server settings can transform your online experience. DNS servers act as road signs — they direct traffic to its destination. Here's why tweaking these settings matters:

  • Speed: Faster DNS servers reduce lookup latency. Milliseconds saved per request compound across dozens of queries per page load. If you run critical resources on a dedicated Windows server, name resolution latency impacts every inbound visitor.
  • Security: Providers like Quad9 filter known malicious domains before your browser touches them. Security-conscious users switch DNS to block phishing and malware at the network level.
  • Access: Some DNS services bypass regional content blocks, giving you broader access.
  • Privacy: Privacy-focused resolvers like Cloudflare don't log browsing history. However, standard DNS queries remain unencrypted unless you enable DNS over HTTPS (DoH).
  • Reliability: ISP DNS servers can be overloaded. A public resolver offers better uptime.

For those facing "can't change DNS" issues, Command Prompt often bypasses GUI hurdles. If a bad cache breaks resolution, learning how to handle dns_probe_finished_bad_config restores connectivity fast.

📊 Public DNS Server Addresses

Pick a provider before starting. Below are three solid options with both IPv4 and IPv6. You can mix providers, but matched pairs give predictable behavior. Validate against official docs in production.

Provider Preferred IPv4 Alternate IPv4 Preferred IPv6 Alternate IPv6
Cloudflare 1.1.1.1 1.0.0.1 2606:4700:4700::1111 2606:4700:4700::1001
Google 8.8.8.8 8.8.4.4 2001:4860:4860::8888 2001:4860:4860::8844
Quad9 9.9.9.9 149.112.112.112 2620:fe::fe 2620:fe::9

Cloudflare prioritizes speed and privacy. Google offers global reliability. Quad9 blocks malicious domains via threat intelligence. For a full comparison, see best public DNS servers.

🛠️ How to Change DNS Settings on Windows 11 (Settings App)

This is the native path and the one most users should take. Changing DNS through Settings in Windows 11 is straightforward:

  1. Open Settings → Network & internet.
  2. Click your active connection — Wi-Fi or Ethernet.
  3. Choose Hardware properties.
  4. Next to DNS server assignment, click Edit.
  5. Switch the dropdown from Automatic to Manual.
  6. Toggle IPv4 on, then enter your preferred and alternate addresses.
  7. Optionally set DNS over HTTPS to "On (automatic template)" for encrypted lookups.
  8. Click Save.
Conceptual Windows 11 DNS panel with Manual IPv4 and Cloudflare 1.1.1.1 and 1.0.0.1.
Windows 11 DNS panel: Manual IPv4 with Cloudflare 1.1.1.1 and 1.0.0.1.

UI labels shift slightly between Windows builds — if a step looks slightly off, that's expected.

⚙️ How to Change DNS Settings on Windows 10 (Settings App)

Changing DNS through the Settings app in Windows 10 is a breeze:

  1. Click Start and select Settings (the gear icon).
  2. Choose Network & Internet.
  3. Depending on your connection, select Wi-Fi or Ethernet from the left menu.

Selecting Wi-Fi or Ethernet

  1. Under "Advanced network settings," click Change adapter options.
  2. Right-click your active connection (Wi-Fi or Ethernet) and select Properties.
  3. Scroll down, locate Internet Protocol Version 4 (TCP/IPv4) or Internet Protocol Version 6 (TCP/IPv6). Highlight the version and click Properties.
  4. Choose Use the following DNS server addresses and input your preferred DNS servers.

Entering DNS Information

  1. Click OK to apply changes.
  2. To verify, open Command Prompt and type ipconfig /all to view current DNS settings.

This method provides a user-friendly approach to customize network settings. For Linux users, see how to change DNS in Linux.

💻 How to Change DNS Using Command Prompt (Windows 10 & 11)

Command Prompt gives direct, scriptable control. Open it as administrator — commands fail silently without elevated privileges.

🛡️ 1. Open Command Prompt as Administrator

Right-click the Start button and select Windows Terminal (Admin) or Command Prompt (Admin).

👁️ 2. View Current DNS Settings

Type ipconfig /all and press Enter. This displays current network configurations including DNS.

🏷️ 3. Identify Your Network Adapter

Look for your active adapter — "Ethernet adapter" or "Wireless LAN adapter" — and note the exact name.

✏️ 4. Change DNS Server Address

Use the following command:

netsh interface ipv4 set dns name="YOUR_ADAPTER_NAME" static DNS_ADDRESS

Replace YOUR_ADAPTER_NAME with your adapter's name and DNS_ADDRESS with the desired server:

netsh interface ipv4 set dnsservers name="Ethernet" static 1.1.1.1 primary
netsh interface ipv4 add dnsservers name="Ethernet" 1.0.0.1 index=2

Change DNS Server Address

✅ 5. Verify and Revert

Confirm changes with ipconfig /all. To revert to DHCP:

netsh interface ipv4 set dnsservers name="Ethernet" source=dhcp

Interface errors almost always mean a wrong alias. Re-run netsh interface ipv4 show interfaces and copy the name exactly.

⚡ How to Set DNS Settings with PowerShell

PowerShell is cleaner for scripting and managing multiple machines. Run it as administrator.

🛡️ 1. Open PowerShell as Administrator

Right-click Start and select Windows PowerShell (Admin).

👁️ 2. View Current Configuration

Get-DnsClientServerAddress

📝 3. Set DNS Servers

Set-DnsClientServerAddress -InterfaceAlias "Ethernet" -ServerAddresses ("1.1.1.1", "1.0.0.1")

Replace "Ethernet" with your interface name. For IPv6, use IPv6 addresses with the same alias.

✅ 4. Verify and Revert

Verify with Get-DnsClientServerAddress. To reset to DHCP:

Set-DnsClientServerAddress -InterfaceAlias "Ethernet" -ResetServerAddresses

The interface alias must match exactly.

💎 How to Change DNS in Windows 8

Windows 8 users can customize DNS through the Control Panel:

🔌 1. Access Network Settings

Navigate to Control Panel — right-click the Start button or search for it.

🤝 2. Network and Sharing Center

Click Network and Sharing Center.

🔄 3. Change Adapter Settings

On the left, select Change adapter settings.

🏷️ 4. Identify Your Connection

Right-click your active connection (Ethernet or Wi-Fi) and choose Properties.

🛠️ 5. Adjust Network Properties

Select Internet Protocol Version 4 (TCP/IPv4) or Version 6 (TCP/IPv6) and click Properties.

📝 6. Enter DNS Addresses

Choose Use the following DNS server addresses and input your preferred servers — Google DNS (8.8.8.8 and 8.8.4.4) or others of your choice.

💾 7. Save Changes

Click OK to apply.

This interface gives you control over internet connectivity and browsing experience across Windows 8 systems.

🏛️ How to Change DNS in Windows 7

In Windows 7, DNS customization follows a similar path:

🔌 1. Access Network Connections

Click Start and navigate to Control Panel.

🤝 2. Network and Sharing Center

Select Network and Sharing Center.

🔄 3. Change Adapter Settings

Click Change adapter settings on the left.

🏷️ 4. Identify Your Connection

Right-click your active connection (Ethernet or Wi-Fi) and select Properties.

🛠️ 5. Adjust Network Properties

Locate Internet Protocol Version 4 (TCP/IPv4) or Version 6 (TCP/IPv6) and click Properties.

📝 6. Enter DNS Addresses

Choose Use the following DNS server addresses and input your preferred DNS.

💾 7. Save Changes

Click OK to save.

⏳ Note on Windows 7 and Windows 8: These operating systems are no longer supported by Microsoft and don't receive security patches. Running them online is a security liability. The instructions above work, but upgrading to a supported version is strongly recommended.

🖥️ How to Change DNS in Windows Server 2016

Managing DNS settings in Windows Server 2016 is pivotal for network optimization. Here's how:

🚀 1. Access Server Manager

Launch Server Manager by clicking Start and selecting Server Manager.

🛠️ 2. Open DNS Manager

Within Server Manager, click Tools and select DNS.

🧭 3. Navigate DNS Zones

In DNS Manager, expand the server name and then Forward Lookup Zones or Reverse Lookup Zones, depending on what you need to modify.

📝 4. Modify DNS Records

Right-click the specific zone (e.g., your domain name) and select Properties. Configure various DNS settings here, including modifying DNS server addresses.

📥 5. Enter DNS Information

Input your preferred DNS server addresses or make necessary changes. Administrative teams operating enterprise platforms can significantly improve system administration by maintaining standardized Windows Server DNS configurations throughout their infrastructure layers.

💾 6. Save and Apply

After adjustments, click OK to save.

⚠️ Critical Warning for Active Directory: Do not point a domain controller directly at public DNS like 8.8.8.8. Domain controllers and domain-joined machines need internal DNS that resolves the AD namespace. Breaking this causes authentication failures, replication errors, and broken Group Policy. For managing zones, records, and forwarders, see the dedicated guide on configuring Windows Server DNS zones and forwarders. If provisioning infrastructure, explore Windows VPS hosting and dedicated Windows server hosting.

🎛️ How to Change DNS in Windows Server 2012

Managing DNS in Windows Server 2012 is crucial for maintaining robust network infrastructure:

🚀 1. Access Server Manager

Launch Server Manager from the Start button.

🛠️ 2. Open DNS Manager

Navigate to Tools and select DNS.

🧭 3. Navigate DNS Zones

Within DNS Manager, expand the server name then Forward Lookup Zones or Reverse Lookup Zones.

📝 4. Modify DNS Records

Right-click the specific zone and select Properties. Here you can configure DNS settings, including modifying DNS server addresses.

📥 5. Enter DNS Information

Input your preferred DNS server addresses. Verify accuracy for optimal network performance.

💾 6. Save and Apply

Click OK to save changes.

Mastery over DNS management in server environments empowers administrators to fine-tune connectivity and ensure optimal performance for all connected devices and users.

⏳ How to Change DNS in Windows XP (Legacy)

Windows XP is long out of support and poses serious security risks on any network. If you must use it, here's how to change DNS settings:

🔌 1. Access Network Connections

Click Start and navigate to Control Panel.

🤝 2. Network Connections

Select Network Connections.

🏷️ 3. Identify Network Adapter

Right-click your active connection (Local Area Connection or Wireless Network Connection) and choose Properties.

🛠️ 4. Modify Network Properties

Look for Internet Protocol (TCP/IP) and click Properties.

📝 5. Adjust DNS Settings

Choose Use the following DNS server addresses and input your preferred DNS — well-known options like Google DNS (8.8.8.8 and 8.8.4.4) or others.

💾 6. Save Changes

Click OK to apply.

⏳ Windows XP Warning: This OS hasn't received security updates in over a decade. Running XP on any network — especially with internet access — is extremely dangerous. Upgrade immediately if possible. On a different OS entirely? Here's how to change DNS settings in Linux.

🔎 How to Check Which DNS Server Windows Is Actually Using

Setting an address isn't the same as proving your queries use it. Verify with two commands:

ipconfig /all

Look at the DNS Servers line under your adapter. Then run a live lookup:

nslookup example.com

The Server field shows which resolver actually answered. In PowerShell, Resolve-DnsName example.com does the same. One catch: VPNs and browsers with built-in secure DNS can bypass Windows settings entirely. If results look wrong, check those first.

🧹 How to Flush the DNS Cache

Stale entries hang around after a DNS change. Clear them:

ipconfig /flushdns

This helps when old results keep loading after switching providers. But flushing your local cache does not speed up global DNS propagation — that only matters when a domain's authoritative records change, a completely separate process. Your browser also keeps its own cache, so restart it if problems persist.

🔄 How to Restore Automatic (DHCP) DNS Settings

Something broke? Reverting is quick. In Settings, open DNS server assignment and switch back to Automatic (DHCP). In Control Panel, select "Obtain DNS server address automatically." From the command line, use CMD source=dhcp or PowerShell -ResetServerAddresses commands shown earlier. Automatic DNS comes from your router or network admin — a known-good fallback state.

⚠️ Troubleshooting Common DNS Configuration Issues

Most problems fall into predictable patterns. Match your symptom below:

Symptom Likely Cause Fix
DNS fields greyed out No admin rights or managed device Run as administrator; check Group Policy
Internet stops working Typo in DNS address or unreachable resolver Restore automatic DNS or use a verified address
Change doesn't appear Wrong adapter edited Identify the active interface, reapply
Settings revert on their own VPN, endpoint security, or Group Policy Review those apps and policies
Some sites fail, others load IPv4/IPv6 mismatch or stale cache Test both protocols; flush DNS cache
CMD "interface not found" Wrong alias or missing admin rights List interfaces, copy exact name

Network reset is a last resort — it wipes all adapter and VPN configurations. For specific errors: learn to fix DNS_PROBE_FINISHED_NXDOMAIN

✅ Final Checklist

  • Record your original configuration before changing anything.
  • Enter both a preferred and alternate resolver.
  • Apply changes to the active adapter — not a disconnected one.
  • Verify with ipconfig /all, then nslookup example.com.
  • Flush the DNS cache if stale results persist after switching.
  • Restore automatic DNS immediately if connectivity drops.

🎯 Conclusion

Understanding how to change DNS settings in Windows is a gateway to a more personalized and optimized internet experience. Whether tweaking settings on Windows 10, Windows 11, or managing servers with Windows Server 2012 or 2016, mastering this skill empowers you to tailor network connectivity to your preferences.

From user-friendly interfaces of Settings and Control Panel to the command-line finesse of PowerShell and CMD, Windows provides versatile methods to modify DNS settings. By altering DNS addresses, you unlock the potential for faster speeds, enhanced security, and access to region-specific content — all while safeguarding your privacy.

The ability to manage DNS in Windows isn't just about changing numbers — it's about gaining control over your digital navigation, ensuring smoother browsing across devices. Whether troubleshooting issues or seamlessly setting preferred DNS servers, your journey into DNS customization enhances your understanding of network configurations.

Remember, as you navigate the realms of changing DNS in Windows, you're embarking on a journey toward a more tailored, efficient, and secure online world. Whether configuring a home network or managing a dedicated Windows server, customizing DNS settings empowers you to enhance performance, bolster security, and ensure your network runs smoothly. So explore, experiment, and fine-tune your DNS settings — it's your passport to a more personalized and optimized internet landscape.