Changing DNS in Windows 10/11 - All Methods

Last updated: January 11, 2025
Table of Contents

Changing DNS servers in Windows 10 and 11 can significantly improve your internet experience by enhancing privacy, speed, and security. This comprehensive guide covers all methods, from the traditional Control Panel approach to the modern Settings app with DNS over HTTPS (DoH) support, ensuring you can configure DNS regardless of your Windows version or preference.

🎯 Why Change DNS?

  • Privacy: ISP DNS servers log all your browsing
  • Speed: Public DNS often faster than ISP
  • Security: Block malware and phishing domains
  • Reliability: Avoid ISP DNS outages
  • Content Access: Bypass DNS-based blocking

Recommended DNS Providers

Provider Primary DNS Secondary DNS DoH Support Features Privacy
TorGuard DNS 10.8.0.1 10.8.0.2 No logs, VPN users ⭐⭐⭐⭐⭐
Cloudflare 1.1.1.1 1.0.0.1 Fastest, malware option ⭐⭐⭐⭐
Quad9 9.9.9.9 149.112.112.112 Malware blocking ⭐⭐⭐⭐⭐
NextDNS 45.90.28.0 45.90.30.0 Custom filtering ⭐⭐⭐⭐
AdGuard 94.140.14.14 94.140.15.15 Ad blocking ⭐⭐⭐⭐
Google 8.8.8.8 8.8.4.4 Fast, reliable ⭐⭐

Method 1: Windows 11 Settings App (Newest)

Recommended: This method supports DNS over HTTPS for encrypted queries!

For Wi-Fi Connections:

  1. Press Win + I to open Settings
  2. Navigate to Network & InternetWi-Fi
  3. Click Hardware properties
  4. Click Edit next to DNS server assignment
  5. Change from Automatic to Manual
  6. Toggle IPv4 on
  7. Enter DNS servers:
    • Preferred DNS: 1.1.1.1
    • Alternate DNS: 1.0.0.1
    • DNS over HTTPS: On (automatic template)
  8. Click Save

For Ethernet Connections:

  1. Settings → Network & InternetEthernet
  2. Click your Ethernet connection
  3. Follow same steps as Wi-Fi above

Method 2: Windows 10 Settings App

Windows 10 version 2004 and later:

  1. Open Settings (Win + I)
  2. Go to Network & Internet
  3. Select StatusProperties
  4. Under IP settings, click Edit
  5. Change to Manual
  6. Enable IPv4 and enter DNS servers
  7. Save changes

Method 3: Control Panel (Traditional)

Step 1: Open Network and Sharing Center

Right-click network icon in system tray → Open Network and Sharing Center:

Windows 10 Network and Sharing Center
Access Network and Sharing Center

Step 2: Select Your Connection

Click on your active connection (Wi-Fi or Ethernet):

Windows 10 connection properties
Click Properties to modify settings

Step 3: Configure IPv4 DNS

  1. Select Internet Protocol Version 4 (TCP/IPv4)
  2. Click Properties
  3. Select Use the following DNS server addresses
  4. Enter your chosen DNS servers
  5. Click OK to save
Windows 10 DNS configuration
Enter DNS server addresses

Method 4: Command Line (PowerShell/CMD)

PowerShell (Administrator):

# View current DNS servers
Get-DnsClientServerAddress

# Set DNS for Wi-Fi
Set-DnsClientServerAddress -InterfaceAlias "Wi-Fi" -ServerAddresses 1.1.1.1, 1.0.0.1

# Set DNS for Ethernet
Set-DnsClientServerAddress -InterfaceAlias "Ethernet" -ServerAddresses 9.9.9.9, 149.112.112.112

# Reset to automatic
Set-DnsClientServerAddress -InterfaceAlias "Wi-Fi" -ResetServerAddresses

Command Prompt (Administrator):

# Set primary DNS
netsh interface ip set dns "Wi-Fi" static 1.1.1.1

# Add secondary DNS
netsh interface ip add dns "Wi-Fi" 1.0.0.1 index=2

# Reset to DHCP
netsh interface ip set dns "Wi-Fi" dhcp

Configure DNS over HTTPS (DoH)

🔒 Encrypt Your DNS Queries

DNS over HTTPS prevents ISPs and attackers from seeing your DNS queries.

Windows 11 DoH Setup:

  1. Use Method 1 above
  2. When entering DNS servers, select:
    • DNS over HTTPS: On (automatic template)
    • Or: On (manual template) and enter DoH URL

DoH URLs for Popular Providers:

Provider DoH URL
Cloudflare https://cloudflare-dns.com/dns-query
Quad9 https://dns.quad9.net/dns-query
NextDNS https://dns.nextdns.io/YOUR_ID
AdGuard https://dns.adguard.com/dns-query

IPv6 DNS Configuration

For networks with IPv6 support:

Provider Primary IPv6 Secondary IPv6
Cloudflare 2606:4700:4700::1111 2606:4700:4700::1001
Quad9 2620:fe::fe 2620:fe::9
Google 2001:4860:4860::8888 2001:4860:4860::8844

Verify DNS Configuration

Method 1: Windows Commands

# Check current DNS servers
nslookup
> server

# Test DNS resolution
nslookup google.com

# View all DNS settings
ipconfig /all

Method 2: Online Tests

Clear DNS Cache

After changing DNS, clear the cache:

# Flush DNS cache
ipconfig /flushdns

# Verify cache is cleared
ipconfig /displaydns

# Additional reset commands
netsh winsock reset
nbtstat -R
nbtstat -RR

Per-Application DNS (Advanced)

Configure specific DNS for certain apps:

  1. Use browser with built-in DoH (Firefox, Chrome, Edge)
  2. Configure proxy with custom DNS
  3. Use VPN with specific DNS servers

Firefox DoH Configuration:

  1. Settings → General → Network Settings
  2. Enable "DNS over HTTPS"
  3. Choose provider or custom

Troubleshooting DNS Issues

DNS Not Changing:

  • Run commands as Administrator
  • Disable IPv6 if not needed
  • Check for VPN DNS override
  • Verify no Group Policy restrictions

Slow DNS Resolution:

  • Test different DNS servers
  • Use DNS benchmark tool
  • Check for ISP interference
  • Try DNS over HTTPS

DNS Leaks with VPN:

  • Enable DNS leak protection in VPN
  • Use VPN provider's DNS
  • Configure firewall rules
  • Test at dnsleaktest.com

Router DNS vs Device DNS

Configuration Pros Cons
Router DNS • All devices protected
• Single configuration
• Guest networks covered
• Less flexibility
• Router limitations
• No DoH on most routers
Device DNS • Per-device control
• DoH support
• Easy testing
• Must configure each device
• Can be overridden
• Mobile devices roam

DNS Security Best Practices

  1. Use DoH when possible: Encrypts DNS queries
  2. Avoid ISP DNS: Often logged and censored
  3. Test regularly: DNS settings can revert
  4. Multiple DNS servers: Add redundancy
  5. VPN DNS: Use VPN provider's DNS when connected
  6. DNSSEC: Verify DNS responses aren't tampered

💡 Pro Tip: DNS Benchmark

Use Steve Gibson's DNS Benchmark tool to find the fastest DNS servers for your location:

  1. Download from GRC.com
  2. Run benchmark test
  3. Choose fastest servers
  4. Configure as shown above

Need DNS Configuration Help?

Our support team can help you choose the best DNS servers for your needs and troubleshoot any configuration issues.

Get DNS Support

Was this article helpful?

Share:

Ready to Get Help?

Our support team is available 24/7 to assist you with any questions.