“The internet’s down.”
If you work a help desk, you’ll get that ticket constantly. And the internet is never down. Something is: an address, a gateway, a route, a port, a DNS server. The job is finding which one without guessing.
So I broke my own lab network ten different ways. Every failure is staged for real in trevtech.lab: WS01 plays the user’s PC, DC01 is the server handing out addresses and DNS. Then I found each one using nothing but commands that already ship with Windows.
Spoiler: two of the ten were DNS. The other eight weren’t.
The trick isn’t the commands. It’s the order.
Most lists of network commands are just that: lists. What actually saves you time is working inside-out:
- The box itself. Does this PC have a sane address? Can it reach its own network?
- The path. Where does traffic stop, or start leaking?
- Names and ports. Is it asking the right DNS server? Is the port open?
- The verdict. Only once all of that points at the PC’s own network stack do you reset it.
It’s the same logic as a car that won’t start: check there’s fuel before you rebuild the engine. Cheapest question first.
| # | Command | The question it answers | What I broke in the lab |
|---|---|---|---|
| 1 | ipconfig /all | Does this PC even have a real address? | Stopped the DHCP server |
| 2 | ping | Is it the network, or is it names? | Killed DC01’s DNS forwarder |
| 3 | arp -a | Is that box dead, or just ignoring pings? | Blocked ping on DC01 |
| 4 | tracert -d | Is it us or the ISP? | Pointed WS01 at a gateway that doesn’t exist |
| 5 | pathping -n | Where does the packet loss start? | 15% loss on WS01’s virtual NIC |
| 6 | route print -4 | Why does one site fail from one PC? | Left a persistent route to nowhere |
| 7 | nslookup | Which DNS server is actually answering? | Pointed WS01 at public DNS |
| 8 | curl -v | Ping works. Why doesn’t the website? | Blocked one port to one host |
| 9 | netstat -ano | Is the service dead, or is something blocking it? | Blocked inbound RDP |
| 10 | netsh resets | Is it finally time to reset the stack? | Stacked three bad “fixes” on one PC |
The box itself
ipconfig /all comes first because if the PC has no real address, nothing else matters yet. Always use /all: plain ipconfig hides the DNS servers, the DHCP server and the MAC address, and those are the lines that crack most tickets. With my DHCP server stopped, WS01 gave itself an address starting with 169.254. That’s APIPA. Windows asked for an address, nobody answered, so it made one up. It’s not this PC’s fault. It’s the DHCP server or the path to it.
ping, used as a ladder rather than a single shot:
ping 127.0.0.1
ping 192.168.10.1
ping 1.1.1.1
ping trevtech.blog
ping dc01
By address worked. Outside names failed. But dc01 still resolved, and DC01 is the DNS server. So DNS was up and couldn’t reach the outside world: its forwarders were broken. That’s DNS number one.
arp -a answers the question ping can’t. DC01 was ignoring pings, so ping said it was dead. Clear the ARP cache first so nothing stale fools you, then ping it and look:
arp -d *
ping 192.168.10.10
arp -a
If DC01 shows up in the table with a hardware address, it answered ARP, so it’s alive. The ping was just being dropped. A failed ping doesn’t prove anything’s down. Plenty of networks block it on purpose. ARP only works on your own network segment, though. Past the gateway, all you’ll see is the gateway’s address.
The path
tracert -d is a postcard that gets stamped at every post office. Where the stamps stop is where it got lost. Mine died at hop one, and hop one is ours: somebody had typed the wrong default gateway. -d skips the name lookup on every hop, which makes it much faster. And asterisks in the middle of a healthy trace are normal, because plenty of routers just don’t answer. Only worry when it stops and never recovers.
pathping -n is for “it works… mostly.” I added the packet loss myself on the Proxmox host. In real life it’s a bad cable, a flaky Wi-Fi link or a dodgy switch port. pathping sends 100 queries to each hop, 250 ms apart, so expect a few minutes. What you’re reading is whether the loss starts at the first link and carries through every hop after it (your side), or shows up on one router in the middle and doesn’t carry on (that router’s busy answering everyone else, not dropping your traffic).
route print -4 was the strange one: a single site failed from one PC and worked from the PC next to it. Under Persistent Routes was a route for that one address, pointing at a gateway that doesn’t exist. The sort of thing an old VPN client leaves behind. Persistent means it survives reboots, which is why “turn it off and on again” never touched it.
Names and ports
nslookup told me WS01 was asking public DNS about trevtech.lab, and public DNS has never heard of it. Asking DC01 directly answered straight away:
nslookup dc01.trevtech.lab
nslookup dc01.trevtech.lab 192.168.10.10
DNS number two. One catch worth knowing: nslookup talks straight to the DNS server and skips the PC’s hosts file and DNS cache. Windows apps don’t skip them. So nslookup can say “fine” while the PC resolves something else entirely.
curl settles “ping works, the website doesn’t.” Ping never touches the port a website uses. curl has been built into Windows since Windows 10 version 1803:
curl -v --connect-timeout 5 https://1.1.1.1
curl -v --connect-timeout 5 http://1.1.1.1
Same host, different port, different answer, so it was the port, not the network. Gotcha: in Windows PowerShell, curl is a nickname for a different command. Type curl.exe there.
netstat -ano split “is RDP dead?” from “is something blocking RDP?”:
netstat -ano | findstr :3389
tasklist /svc /fi "PID eq 1234"
(Swap in whichever PID netstat actually shows.) On WS01 the port was LISTENING and owned by the Remote Desktop service, so the service was fine. On DC01, while mstsc was trying to connect, the connection sat in SYN_SENT: knocking on a door nobody opens and nobody refuses. Silence means something in between is swallowing it. In my case, the firewall on WS01.
The verdict: the resets
The last PC had been “fixed” by three people: a static address, a dead gateway, public DNS and a stray route. When every rung of the ladder shows somebody’s leftovers, you stop untangling and reset the stack. You’ve earned it now. You’re not guessing.
Save the evidence first. On anything with a static address, the reset can take config you needed:
ipconfig /all > "%USERPROFILE%\Desktop\before.txt"
route print >> "%USERPROFILE%\Desktop\before.txt"
netsh winsock reset
netsh int ip reset
Both want a restart. Then check what actually survived. In the video I show exactly what came back and what I still had to fix by hand. The reset isn’t a magic wand.
The gotchas
- A failed ping proves nothing on its own. Check ARP or a port before you call a box dead.
- nslookup can disagree with the PC. It skips the hosts file and the local cache.
curlin PowerShell isn’t curl. Usecurl.exe.- Persistent routes survive reboots. Restarting never clears them.
- Run the resets last, and save before.txt. On a server they can take the static config you needed.
Verdict
Ten failures, ten commands, nothing installed. And the tally: two DNS, eight not. “It’s always DNS” is a good joke and a bad troubleshooting plan. Work the ladder (the box, the path, names and ports, then the reset) and you’ll have the answer in the first ten minutes of the ticket instead of the first hour.
What’s next
Watch the full video, where every one of these is shown against the real staged failure: It’s Not Always DNS. 10 Commands That Prove What It Is on the TrevTech-IT YouTube channel. Once you know what’s broken, my 9 CMD Commands to Repair Windows video covers the fixes. A PowerShell companion with Test-NetConnection and Resolve-DnsName is planned.
Which of these ten would have caught your last network ticket? Tell me in the comments on the video.
— Trev | I broke it. Fixed it.
Tags: networking, windows troubleshooting, command prompt, help desk, homelab, active directory, dns, enterprise IT

