Search GimmeJob

Type at least 2 characters. Enter also searches by meaning.
QA interview question
InfrastructureMiddleOccasionalTroubleshooting

Which command-line tools help separate a DNS problem from a general connectivity problem?

Answer

Use `nslookup` or `dig` to query DNS and compare the resolved address with expectations. Use `ping` only as a limited ICMP reachability signal because hosts may block ICMP. Use `traceroute` or `tracert` for path clues and a TCP-aware check such as `curl` or Windows `Test-NetConnection -Port` to verify the protocol and port that actually matter.

Strong answer includes

  • DNS resolution and network reachability are separate checks
  • ping failure does not prove the host is unavailable
  • tests the real TCP port or application protocol

Practical example

If `api.internal` fails in a test, first resolve it with `nslookup api.internal`. If the address is correct, test TCP 443 with `Test-NetConnection api.internal -Port 443` or request the URL with `curl`.

#dns#networking#windows#linux#troubleshooting

Sources

Windows commands referenceMicrosoft · Command Prompt utilities including ipconfig, netstat, tasklist, taskkill, sc, findstr, ping, tracert and nslookupPowerShell documentationMicrosoft · PowerShell cmdlets, object pipeline, processes, services, networking, event logs and environment handlingcurl documentationcurl project · HTTP and network diagnostics with curl, including request, response and verbose connection inspectionLinux man-pages projectman7.org / Linux man-pages project · Linux processes, signals, networking and system-call-facing command behavior