How to fix slow DNS lookup and speed up your internet browsing

Share
A person sitting at a desk using a laptop with a terminal window open running the nslookup command to test DNS lookup speed.

Slow DNS lookups cause websites to load slowly because your device takes too long to translate domain names into IP addresses. This delay often comes from problems with your DNS servers or local settings. You can fix this by checking if DNS is the issue, clearing your DNS cache, switching to faster DNS servers, and adjusting your network setup.

How do I know if slow DNS lookup is causing my internet delay?

To confirm DNS lookup is slowing your browsing, use tools like nslookup, ping, or traceroute.

  • Open a command prompt or terminal.
  • Run nslookup example.com and note how long it takes to resolve the domain.

If this resolution takes noticeably longer than your usual page load, DNS lookup is likely the cause.

Next, ping an IP address directly, for example:

ping 8.8.8.8
Command Prompt

Then ping a domain name:

ping example.com
Command Prompt

If pinging the IP is fast but pinging the domain is slow, DNS lookup delays are the problem.

Traceroute can help identify delays along the network path. If the delay happens right at the domain resolution step, that confirms DNS issues.

Symptom: Websites load slowly, especially the initial connection, even though other internet functions seem normal.
A person typing commands in a command prompt window on a laptop to diagnose DNS issues.

What usually causes slow DNS lookup on my device?

Slow DNS lookups often come from problems with your ISP’s DNS servers if they are overloaded or slow to respond.

Your device’s local DNS cache can also cause delays if it’s corrupted or has outdated entries.

Routers sometimes cache DNS incorrectly or run outdated firmware, causing lookup delays.

Malware or unwanted software can interfere by redirecting or slowing DNS requests.

Network congestion affects overall speed but usually doesn’t target DNS resolution specifically.

How can I fix slow DNS lookup step by step?

  1. Flush your local DNS cache to remove corrupted or outdated entries.
  • On Windows, open Command Prompt as Administrator and run:
ipconfig /flushdns
Command Prompt
  • On macOS, open Terminal and run:
sudo killall -HUP mDNSResponder
macOS Terminal
  1. Change your DNS server to a faster, more reliable public DNS service like Google DNS or Cloudflare.
  • On Windows:
  • Go to Control Panel > Network and Internet > Network and Sharing Center > Change adapter settings.
  • Right-click your active network and select Properties.
  • Select Internet Protocol Version 4 (TCP/IPv4) and click Properties.
  • Enter these DNS server addresses:
8.8.8.8
8.8.4.4

for Google DNS, or

1.1.1.1
1.0.0.1

for Cloudflare.

  1. Restart your router and modem to clear temporary glitches affecting DNS caching.
  2. Scan your device for malware using your preferred security software to ensure no malicious software is interfering with DNS.
  3. If you notice DNS-related issues in your browser, check its settings. You can test with DNS prefetching turned off only to isolate whether the browser is part of the issue, but disabling prefetching is not a speed fix. Slow lookups are addressed by changing the resolver, flushing a bad cache, or fixing the router or ISP resolver.
  4. Ensure your device’s operating system and network drivers are up to date, as outdated software can cause network delays including DNS resolution.

How do I verify my DNS lookup speed is better?

After applying fixes, test DNS lookup times again using the same tools.

Run nslookup example.com multiple times and compare how quickly the domain resolves.

Ping the domain name and check if the latency has improved compared to your initial tests.

Visit websites to see if they load noticeably faster; faster DNS resolution usually means quicker initial page loads.

If you don’t see improvement, make sure your DNS server settings are correctly applied and restart your device and router again.

What can I do to keep DNS lookup fast in the future?

Set a reliable public DNS server permanently in your network settings instead of relying on your ISP’s defaults.

Restart your router regularly to clear temporary DNS cache issues.

Keep your device secure by running regular malware scans and updating your operating system and software to prevent DNS interference.

Avoid installing unnecessary network utilities that might change DNS settings without clear benefit.

If slow DNS lookups return, monitor your network for congestion or hardware faults that could indirectly affect DNS speed.

Conclusion

If websites load slowly due to DNS lookup delays, start by confirming DNS is the issue with simple tests. Then clear your DNS cache, switch to a faster DNS server, restart your network devices, and check for malware. After fixes, test again to confirm improvements. Keeping your DNS settings stable and your device secure helps maintain fast DNS lookups over time.

Frequently Asked Questions

Can changing my DNS server really make a big difference?

Yes. Switching to a fast, reliable DNS server like Google or Cloudflare can reduce lookup times, especially if your ISP’s DNS servers are slow or overloaded.

Is it safe to flush my DNS cache?

Yes. Flushing your DNS cache clears stored DNS data, removing corrupted or outdated entries. It’s a safe and common step to fix DNS issues.