Triage DNS and TCP Problems with Wireshark
Before you begin
- Applies to:Authorized DNS and TCP troubleshooting with Wireshark.
- Where to start:Capture on the approved client interface while reproducing one failed request.
- What you need:Have the query name, expected resolver, and target address and port. Record the failure time.
Guide tools
Packet captures can show where a connection attempt stops: before DNS returns an answer, during the TCP handshake, or after the application begins exchanging data. This guide uses Wireshark display filters to investigate one controlled test flow.
Capture Near the Affected Client or Service
Capture SetupStart with the smallest capture that can answer the question. Capture on the affected client or server, select its active interface, and reproduce one connection attempt with a recorded timestamp and destination. On a switched network, a capture from an unrelated workstation may not see another host’s unicast traffic.
Capture host: affected test clientInterface: active Ethernet or Wi-Fi adapterTest: resolve app.example.test, then open TCP/443❯ Illustrative Output (Results Vary)
Start the capture, perform one test, and stop the capture promptly.Filter DNS Packets and Match Query IDs
Name ResolutionEnter dns in the display filter bar. Find the query for the target name and compare it with the response that has the same transaction ID. Check the response code, answer section, and server address. A display filter hides packets from view; it does not remove them from the capture file.
dnsdns.qry.name == "app.example.test"dns.flags.rcode != 0❯ Illustrative Output (Results Vary)
Standard query A app.example.testStandard query response A 10.20.40.15
Figure 1: Match the DNS response to the query by transaction ID.
Follow SYN, SYN-ACK, and ACK Packets
TransportFilter for the destination and TCP port, then follow the stream or inspect sequence numbers. A client SYN without a reply can indicate filtering, routing, or a down host; repeated SYNs with no SYN-ACK are not proof of a firewall by themselves. A reset or successful three-way handshake narrows the next check to the listener or application.
ip.addr == 10.20.40.15 && tcp.port == 443tcp.flags.syn == 1 && tcp.flags.ack == 0tcp.flags.reset == 1❯ Illustrative Output (Results Vary)
Client -> Server SYNServer -> Client SYN, ACKClient -> Server ACK
Figure 2: Inspect the TCP three-way handshake for the test flow.
Use TCP Analysis Flags as Leads
Packet TimingCheck Wireshark’s TCP analysis annotations for retransmissions, duplicate acknowledgments, and out-of-order packets. These are clues to investigate packet loss, congestion, asymmetric paths, or capture limitations; a single annotation does not identify the root cause. Compare timestamps and sequence numbers around the affected flow.
tcp.analysis.retransmissiontcp.analysis.duplicate_acktcp.stream eq 0❯ Illustrative Output (Results Vary)
Use Follow > TCP Stream to isolate one conversation, then inspect its packet timing.
Figure 3: TCP analysis flags highlight retransmissions and duplicate acknowledgments.
Record the Filter and Capture Context
DocumentationSave the original capture only when permitted by policy. Record the capture point, interface, time zone, reproduction steps, display filter, and relevant endpoint addresses. If sharing a capture, remove or protect unrelated traffic and sensitive payloads under your evidence-handling policy.
Case note: issue time, client, destination, interface, filter, observationsCapture file: restricted location; access logged if required❯ Illustrative Output (Results Vary)
The resulting note lets another analyst reproduce the same packet review.Your feedback keeps these production procedures accurate and battle-tested.