My DNS name resolution when visiting websites is very slow (average 11 s).
What troubleshooting steps can I perform to separate the possible causes?
- Windows
- nslookup - times out
- Manual ethernet settings with specific DNS server IPs (google, and my ISP)
- DHCP auto-generated settings
- My hardware
- test DNS/network with other machines
- Apple iPhone on my home wireless, OK
- Debian (buster) sandbox, some 1-2s latency, but nothing approaching 11s
- My Router
- Cycle the modem (why? internet is not _slow_, only name resolution)
- My ISP
- Speed test from IPS, and other third-parties
Description of Problem
Typically this happens with web searching and links to unvisited sites.
But I also suffer when I access a webapp like microsoft's outlook.office.com.
The interface is quick and responsive, but the data loads slowly.
If I visit a webapp with advertising, ads generally appear late, so clicking on the wrong things.
That said, I can log into my Windows computer at work (RDP) and I have no problems.
I can stream music and work without noticeable latency.
***=> This leads me to the conclusion my internet speed is good, but name resolution is bad.***
My configuration
Here are my DHCP generated settings:
> ipconfig
Windows IP Configuration
Ethernet adapter Ethernet:
IPv4 Address. . . . . . . . . . . : 192.168.1.198
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
> netsh interface ipv4 show dnsservers
Configuration for interface "Ethernet"
DNS servers configured through DHCP: 192.168.1.1
Register with which suffix: Primary only
Configuration for interface "Loopback Pseudo-Interface 1"
Statically Configured DNS Servers: None
Register with which suffix: Primary only
System
Processor: Intel(R) Core(TM) i7-7700T CPU @ 2.90GHz 2.90 GHz
Installed RAM: 32.0 GB (31.9 GB usable)
System type: 64-bit operating system, x64-based processor
Storage: 77G/238G
Edition: Windows 10 Pro
Version: 21H1
Installed on: 2021-05-07
OS build: 19043.1052
Experience: Windows Feature Experience Pack 120.2212.2020.0
What I tried
1.) Speed test ISP. Tried several third-party "speed-test" websites, including my own service provider's test. With the except of one very low, one skewed 600/200 Mb/s, all the rest were ~900/900 Mb/s.
2.) Try DHCP and Manual Ethernet settings. I've been using Manual while developing a project (easier with set IP). When I first changed back to DHCP from Manual, everything started going quickly. But within 2 minutes I noticed the slow down again. I've used a few sites (ebay.com for it's generally quick UI, google search with links to never visited URLs) it's slow again.
3.) NSLOOKUP. I intended to add arguments to test various DNS addresses, but it only times out. I thought I might be using the command incorrectly but the command was fast immediately after the change, and now is broken again (and no argument timeout or retry will help):
> nslookup -timeout=5 superbad.com
DNS request timed out.
timeout was 5 seconds.
Server: UnKnown
Address: 8.8.8.8
DNS request timed out.
timeout was 5 seconds.
DNS request timed out.
timeout was 5 seconds.
DNS request timed out.
timeout was 5 seconds.
DNS request timed out.
timeout was 5 seconds.
*** Request to UnKnown timed-out