Fix Slow DNS and Browsing: Set DNS, Flush Cache, and Test with nslookup (Win10/11)

  • Thread Author

Fix Slow DNS and Browsing: Set DNS, Flush Cache, and Test with nslookup (Win10/11)​

Difficulty: Intermediate | Time Required: 15 minutes
Slow website loading, “DNS server not responding” messages, or delays before a page starts to load are often DNS-related. DNS (Domain Name System) is what turns a site name like windowsforum.com into an IP address your PC can connect to. If your current DNS server is slow, misconfigured, or caching bad results, browsing can feel sluggish even when your internet speed looks fine.
This tutorial walks you through three practical fixes on Windows 10 and Windows 11:
  1. Set reliable DNS servers (IPv4/IPv6)
  2. Flush your DNS cache (and optionally reset network stack)
  3. Test and compare results using nslookup

Prerequisites​

  • Windows 10 or Windows 11
  • An account with Administrator access (required for some commands)
  • 10–15 minutes of uninterrupted time
  • Optional but recommended: know whether you’re connected via Wi‑Fi or Ethernet
Note: Changing DNS does not increase your internet “speed” directly. It improves the time to first connection by making name lookups faster/more reliable, which often makes browsing feel snappier.

Step-by-Step: Check Your Current DNS Settings​

Before changing anything, it helps to see what you’re using now.
  1. Press Windows + X → select Terminal (Admin) (Windows 11) or Windows PowerShell (Admin) (Windows 10).
  2. Run:
    ipconfig /all
  3. Look for your active adapter (Wi‑Fi or Ethernet) and find DNS Servers.
Tip: If you see your router’s IP (often 192.168.1.1) as DNS, your router is forwarding DNS to your ISP. That can work fine, but it’s also a common cause of inconsistent performance.

Step-by-Step: Set Faster DNS Servers (Windows 10/11)​

You can set DNS on your PC so it uses a known-fast provider. Two common choices:
  • Cloudflare: 1.1.1.1 and 1.0.0.1
  • Google DNS: 8.8.8.8 and 8.8.4.4

Option A (Recommended): Set DNS in Settings (Windows 11 and Newer Windows 10 Builds)​

Windows 11:
  1. Open SettingsNetwork & internet.
  2. Click your connection:
    • Wi‑Fi → choose your connected network
    • Ethernet → click Ethernet
  3. Next to DNS server assignment, click Edit.
  4. Set to Manual.
  5. Turn on IPv4 and enter:
    • Preferred DNS: 1.1.1.1
    • Alternate DNS: 1.0.0.1
  6. (Optional) Turn on IPv6 and enter:
    • Preferred DNS: 2606:4700:4700::1111
    • Alternate DNS: 2606:4700:4700::1001
  7. Click Save.
Windows 10 (Settings app may vary by version):
  • If you don’t see DNS editing in Settings, use Option B below (Control Panel).
Warning: If you’re on a managed work/school device, DNS may be controlled by policy (Group Policy/MDM). Changing it might break access to internal resources or VPN requirements.

Option B: Set DNS via Control Panel (Works on Windows 10/11)​

  1. Press Windows + R, type:
    ncpa.cpl
    Press Enter.
  2. Right-click your active adapter (Wi‑Fi or Ethernet) → Properties.
  3. Select Internet Protocol Version 4 (TCP/IPv4)Properties.
  4. Choose Use the following DNS server addresses.
  5. Enter (example Cloudflare):
    • Preferred DNS server: 1.1.1.1
    • Alternate DNS server: 1.0.0.1
  6. Click OK.
  7. (Optional but recommended) Repeat for Internet Protocol Version 6 (TCP/IPv6):
    • Preferred: 2606:4700:4700::1111
    • Alternate: 2606:4700:4700::1001
  8. Click Close.
Note: If your network or ISP has poor IPv6 routing, enabling custom IPv6 DNS won’t fix that. If you suspect IPv6 is causing delays, you can temporarily test by setting only IPv4 DNS, or by disabling IPv6 on the adapter (not usually necessary).

Step-by-Step: Flush DNS Cache (and Refresh Your IP)​

After changing DNS, flush cached lookups so Windows stops using old/bad records.
  1. Open Terminal (Admin) again.
  2. Run:
    ipconfig /flushdns
    You should see: Successfully flushed the DNS Resolver Cache.
  3. Optional (often helpful after network changes), run:
    Code:
    ipconfig /release
    ipconfig /renew
Tip: If you’re on Wi‑Fi and release/renew interrupts your connection, don’t worry—Windows will reconnect. If you’re on a VPN, disconnect/reconnect the VPN after renewing.

Step-by-Step: Test DNS Performance with nslookup​

Now verify that DNS is answering quickly and from the server you expect.

1) Check which DNS server is being used​

  1. In Terminal (not necessarily admin), run:
    nslookup windowsforum.com
  2. At the top, you’ll see something like:
    • Server: one.one.one.one
    • Address: 1.1.1.1
If it still shows your router/ISP DNS, your change may not have applied to the correct adapter, or another tool (VPN/security suite) may be overriding DNS.

2) Compare response times between providers​

Run these commands to query specific DNS servers directly:
Code:
nslookup windowsforum.com 1.1.1.1
nslookup windowsforum.com 8.8.8.8
Do this a few times. You’re looking for:
  • Faster “feel” (results appear quickly)
  • No timeouts
  • Consistent results
Note: nslookup doesn’t print a clean millisecond timer by default, but timeouts and delays are obvious. For deeper measurement, Windows also includes Resolve-DnsName in PowerShell (advanced), but nslookup is perfect for quick checks.

Optional: Reset the Network Stack (If Problems Persist)​

If DNS flushing doesn’t help and browsing is still laggy (especially after malware removal, VPN uninstall, or driver issues), a network reset can clear stale settings.
  1. Open Terminal (Admin).
  2. Run:
    Code:
    netsh winsock reset
    netsh int ip reset
  3. Restart your PC.
Warning: This can reset some networking customizations. If you rely on specialized VPNs, proxies, or virtual adapters, you may need to reconfigure them afterward.

Tips and Troubleshooting Notes​

If browsing is still slow…​

  • Try another DNS provider: Sometimes a DNS server is fast generally but slow for your region/ISP route. Swap Cloudflare ↔ Google and test again.
  • Check for VPN/Proxy: VPN clients often push their own DNS. Disable VPN briefly and retest with nslookup.
  • Clear browser DNS cache: Browsers like Chrome keep their own DNS cache.
    • In Chrome, you can visit: chrome://net-internals/#dns (varies by version) or simply restart the browser.
  • Reboot your router/modem: If your router is the bottleneck (or doing DNS forwarding poorly), a reboot can help.
  • Check hosts file overrides: Rare, but entries in C:\Windows\System32\drivers\etc\hosts can force slow/bad destinations.

If certain sites fail after changing DNS…​

  • Switch back to automatic DNS temporarily to confirm.
  • If you use parental controls, work filtering, or ISP-specific services, custom DNS may bypass or conflict with them.

Confirm settings applied to the correct adapter​

If you changed DNS on Ethernet but you’re actually on Wi‑Fi (or vice versa), Windows will still use the active adapter’s DNS.

Conclusion​

By setting a reliable DNS provider, flushing cached records, and validating results with nslookup, you can eliminate one of the most common causes of “slow browsing” on Windows 10/11. These steps improve responsiveness, reduce random DNS timeouts, and give you a quick way to prove whether DNS is the culprit before chasing more complex network issues.
Key Takeaways:
  • Switching to a fast DNS provider (Cloudflare/Google) can reduce delays before websites begin loading.
  • Flushing DNS cache removes stale or incorrect name resolution results.
  • nslookup helps confirm which DNS server is in use and whether queries are resolving reliably.

This tutorial was generated to help WindowsForum.com users get the most out of their Windows experience.
 

Back
Top