7 Best Tools for Troubleshooting DNS and Connectivity
Compare seven tools for troubleshooting DNS lookups and network connectivity, from built in commands to packet capture tools.
On this page
Key takeaways
- DNS turns website names into IP addresses, and a DNS fault blocks access even when the internet works.
- Built in commands such as ping and nslookup answer most basic questions without any install.
- Checking the local IP config first rules out the most common home network problems.
- Packet capture shows the raw traffic when other tools do not explain the failure.
Why DNS and connectivity checks matter
When a site will not load, the cause is usually one of two things: the connection itself, or the DNS lookup that finds the site. These tools separate those cases, so you can fix the real problem instead of guessing.
Most of the essentials are already built into your operating system, which means a diagnosis is often a few commands away. The list adds a couple of deeper tools for when a quick check is not enough.
Quick comparison
| Tool | Best for | Starting price | Free plan |
|---|---|---|---|
| nslookup | Querying DNS records | Not included | Not included |
| ipconfig | Viewing and renewing network config | Not included | Not included |
| ping | Testing reachability | Not included | Not included |
| tracert | Tracing the route | Not included | Not included |
| dig | Detailed DNS queries | Not included | Not included |
| mtr | Continuous route testing | Not included | Not included |
| Wireshark | Seeing the actual packets | Not included | Not included |
The best DNS and connectivity tools
1. nslookup
- Official site: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/nslookup
- Best for: Querying DNS records
- Starting price: Not included
- Free plan: Not included
- Pros: Built into Windows and most systems; quick record lookups
- Cons: Text output; older tool with a few quirks
nslookup is a command line tool that asks a DNS server for records about a domain. It can return the IP address behind a site, check mail servers, or query a specific DNS server to compare answers. The command is built into Windows and available on most systems.
It is the natural first check when a site seems down, because it shows whether the name still resolves to an address. If nslookup returns nothing while other sites work, the problem is often DNS. If it returns an address but the site still fails, the issue sits elsewhere.
2. ipconfig
- Official site: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/ipconfig
- Best for: Viewing and renewing network configuration
- Starting price: Not included
- Free plan: Not included
- Pros: Built into Windows; reveals IP and gateway details
- Cons: Windows only; read only unless you pass extra options
ipconfig is a Windows command that shows the network settings for every adapter on the machine. It lists the IP address, subnet mask, and default gateway, which tells you whether the computer has a valid address on the local network.
Adding options such as /release and /renew asks the router for a fresh address, which fixes many simple connectivity problems. The /flushdns option clears the local DNS cache when a changed record is being remembered too long. It is the basic health check for any Windows connection.
3. ping
- Official site: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/ping
- Best for: Testing reachability
- Starting price: Not included
- Free plan: Not included
- Pros: Everywhere by default; instant yes or no
- Cons: Some hosts block ping; does not show the path
ping sends packets to an address and reports whether they return. A successful ping to your router confirms the local link, and a successful ping to a public server confirms the wider connection. It is the fastest way to split a problem into local and remote halves.
Because it is built into every operating system, ping is the universal first move in troubleshooting. A failure does not always mean a host is down, since some servers ignore ping by design. Even so, the immediate result makes it the go to check.
4. tracert
- Official site: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/tracert
- Best for: Tracing the route
- Starting price: Not included
- Free plan: Not included
- Pros: Built into Windows; shows where the path stops
- Cons: Snapshot only; some hops stay silent
tracert follows the path packets take to a destination and lists every router along the way. When a connection fails partway, the output shows the last hop that answered, which points to the section of the network causing trouble.
A single run gives a snapshot, so it may miss problems that come and go. Still, for the classic question of where the connection breaks, tracert is the clearest built in answer on Windows. It pairs naturally with ping during a first look.
5. dig
- Official site: https://www.isc.org/bind/
- Best for: Detailed DNS queries
- Starting price: Not included
- Free plan: Not included
- Pros: Precise output; queries specific record types and servers
- Cons: Command line; not included by default on Windows
dig is the DNS lookup tool that comes with the BIND software suite, and it is standard on Linux and macOS. It queries DNS records in detail, showing answers, response times, and which server answered, which makes it easier to spot a slow or misbehaving resolver.
Where nslookup gives a quick answer, dig gives the full picture with flags and timing. It can ask a specific server directly, so you can bypass a local resolver that might be caching stale data. For serious DNS work, dig is the tool most administrators reach for.
6. mtr
- Official site: https://github.com/traviscross/mtr
- Best for: Continuous route testing
- Starting price: Not included
- Free plan: Not included
- Pros: Running ping and trace together; cross platform
- Cons: Command line; needs a little reading
mtr combines ping and traceroute into a single running test. It reports loss and latency for every hop and keeps refreshing, so an unstable connection shows itself as the numbers change. The tool is free and runs on Windows, macOS, and Linux.
That continuous view is the difference between catching a problem and missing it, because a one time trace may pass through during a good moment. mtr is a dependable way to watch a flaky connection until it misbehaves. It is a favorite among network engineers for exactly that reason.
7. Wireshark
- Official site: https://www.wireshark.org/
- Best for: Seeing the actual packets
- Starting price: Not included
- Free plan: Not included
- Pros: Free and open source; captures everything on the wire
- Cons: Steep learning curve; overkill for simple checks
Wireshark captures network traffic and lets you inspect every packet, from the DNS query to the final response. When a connection fails and basic tools do not explain why, Wireshark shows what was actually sent and received, including failed lookups and resets.
It is a deep diagnostic tool rather than a quick command, and reading the output takes practice. The value is the certainty it provides: instead of inferring a cause, you can watch the failure happen packet by packet. For stubborn problems, that level of detail is worth the effort.
How we chose
We started with the commands already built into Windows, macOS, and Linux, because they solve most problems without an install. The list then adds deeper tools for DNS detail and packet capture, which cover the cases a basic check cannot explain.
We favored tools that are free, widely documented, and quick to run. A good troubleshooting kit needs both instant answers and the ability to go deeper, and this mix provides both ends of that range.
FAQ
What is DNS?
DNS is the system that turns a domain name into the IP address of the server behind it. When DNS fails, your browser cannot find the site even though the internet connection is fine.
Why do I need to flush my DNS cache?
Your computer stores recent DNS answers to speed things up. If a site changes servers, a stale cache can keep sending you to the old address, and flushing it forces a fresh lookup.
What does a ping timeout mean?
It usually means the target did not answer, either because it is down, it blocks ping, or a link in between failed. Comparing a ping to your router with a ping to a public server helps narrow it down.
Can these tools fix my connection or just diagnose it?
Mostly they diagnose, which tells you what to fix. A few, such as ipconfig with /renew or /flushdns, can also repair common issues directly.
Do I need to install anything to start?
Usually not. nslookup, ipconfig, ping, and tracert are already on Windows, and macOS and Linux ship with their own equivalents. dig, mtr, and Wireshark may need an install on some systems.
Sources
- https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/nslookup
- https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/ipconfig
- https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/ping
- https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/tracert
- https://www.isc.org/bind/
- https://github.com/traviscross/mtr
- https://www.wireshark.org/