Study guide
DNS and Socket Diagnostics
CCST Networking Study Guide Exam
Track your progress as you read
Finished sections get a check mark.
1 Orientation, Official Sources, and Exam Strategy
Official Exam Profile and Source Hierarchy Registration, Delivery, Attempts, and Results Using the Six Official Topic Areas Building a Practical Study Plan Exam Strategy Without Unsupported Shortcuts Ethical Preparation and Path Forward
2 Network Standards, Models, and Common Protocols
Network Building Blocks OSI and TCP/IP Models Frames, Packets, Segments, and Data Flow Network Types and Scope Cloud, On-Premises, Protocols, and Ports Bandwidth, Throughput, Latency, and Jitter
3 Chapter 3: IPv4, IPv6 Addressing, and Subnet Formats
3.1 Public, Private, and Local Addressing 3.2 IPv4 Dotted Decimal and Binary Basics 3.3 Subnet Masks, CIDR, and Prefix Lengths 3.4 Subnet Logic, Host Ranges, and Gateways 3.5 IPv6 Address and Prefix Formats 3.6 MAC vs IP in Addressing Troubleshooting
4 Endpoints, Media, Cabling, and Client Connectivity
Endpoint Devices and Network Roles Network Interface Cards and Link Status Copper, Fiber, Coax, and Connector Basics Wired, Wi-Fi, and Cellular Access Methods Interference, Signal Quality, and Physical Reliability Client Connectivity Checks by Operating System
5 Infrastructure Devices, Ports, and Physical Installation
Infrastructure Device Roles Ports, Connectors, and Device Identification Cisco Device LEDs and Status Checks Network Diagrams and Cabling Instructions Power over Ethernet and Powered Devices Racks, Patch Panels, and Installation Basics
6 Switching, Routing, and Network Services
Basic Switching and MAC Learning VLANs and Local Boundaries Routing, Default Gateway, and ARP DNS, DHCP, and NAT Services Transport-Layer Services Small Network Traffic Flow
7 Troubleshooting Methodology, Ticketing, and Documentation
Help Desk Intake and Information Gathering Scope, Impact, and Prioritization Reproduce, Isolate, and Escalate Ticket Quality and Operational Documentation User Communication and Change History Physical, Data Link, and Network Layer Triage
8 Diagnostic Commands, Packet Capture, and Device Data
Command-Line Triage and Ping Path and Client Configuration Commands DNS and Socket Diagnostics Wireshark Capture and Save Device Access and Data Collection Basic Cisco Show Commands
9 Security, Firewalls, Wireless, and Safe Defaults
Firewall Filtering and Traffic Policy Least Privilege, AAA, Passwords, and MFA Wireless Security, WPA2, WPA3, and WPAx Guest Networks, Segmentation, and Shared Devices Common Threats and Safe User Practices Secure Home Router Baseline
10 Integrated Small Network Build and Repair Labs
Lab 1: Build a Basic Office LAN Lab 2: Repair No Internet After an Office Move Lab 3: Wireless Clients Cannot Reach Local Resources Lab 4: DHCP, DNS, and Default Gateway Symptoms Lab 5: Switch, Router, and Service Boundaries Lab 6: Escalation, Documentation, and Handoff
11 CCST to CCNA Career Path and Operational Readiness
Entry-Level Networking Roles and Expectations CCST vs CCNA and the Cisco Roadmap NetAcad 70-Hour Path and Study Plan Lab Habits for Real Operational Readiness Ethical Preparation, Portfolio, and Logbook Exam Scheduling Calendar and Readiness Check
12 Final Review, Exam Day, and Remediation Plan
Final Review Map to Official Objectives 50-Minute Exam Day Timing Unsupported Facts and Ethical Preparation Retake Planning Before the First Attempt Post-Fail Remediation Workflow Post-Pass Next Steps and Validity
DNS and Socket Diagnostics
Key Takeaways Explain This Topic AI
nslookup and dig test name resolution independently of general application behavior.
DNS troubleshooting separates resolver settings, server reachability, the record itself, and cached answers.
netstat (Windows) and ss (Linux) reveal listening ports, active connections, states, and PIDs.
A listening socket proves a local process is bound to a port; it does not prove remote reachability.
DNS success does not prove the app works, and DNS failure does not prove the whole network is down.
Last updated: June 2026
Test Names Separately From Connections
Many tickets that read "the network is down" are really DNS , a blocked port, or a stopped local service. DNS and socket tools isolate those pieces. At CCST depth you are not expected to administer DNS or decode every packet, but you must know what evidence each command yields.
DNS maps names to addresses and other records. nslookup ships on Windows and most Unix-like systems; nslookup www.example.com shows whether the name resolves and to which address(es). "Server can't find" or an NXDOMAIN-style message points at the record or a typo; "request timed out"/"no response from server" points at the resolver setting or reachability to it. dig is the Linux/macOS favorite because its output is structured.
- Command Purpose
- nslookup host Resolve via the configured DNS server
- nslookup host 8.8.8.8 Resolve via a specific server (compare answers)
- dig example.com A Query the IPv4 A record
- dig example.com AAAA Query the IPv6 AAAA record
- dig @8.8.8.8 example.com Query a chosen server directly
- dig example.com MX Query mail-exchange records
Useful dig fields are the status: line (NOERROR, NXDOMAIN, SERVFAIL), the ANSWER SECTION, the SERVER used, the TTL, and the query time. Remember split-horizon DNS : public, internal, and VPN views can intentionally return different answers depending on where the query originates, so comparing the internal resolver against a public one (8.8.8.8) is a powerful test.
Crucially, DNS success does not prove the application works: a name can resolve correctly while a firewall blocks TCP 443 , the certificate is expired, or the service is down. DNS failure does not prove a total outage either, if IP works but names fail, you have narrowed the problem to resolution.
Socket and Connection Commands
Socket tools show local network activity, what the host is listening on and what it is connected to. On Windows, netstat -ano lists protocol, local address/port, foreign address/port, TCP state, and the owning process ID (PID) you can map in Task Manager. PowerShell adds Get-NetTCPConnection . On Linux, ss is the modern replacement for netstat : ss -tuln shows TCP/UDP listening sockets numerically, and ss -tunap adds processes when permitted. On macOS, netstat and lsof -i are common.
A listening socket means a local process is waiting for traffic on a protocol/port, for example a web server on TCP 80 or 443. An established connection means an active session exists. Other TCP states are clues but rarely worth deep analysis at this level:
- State Meaning
- LISTEN Process waiting for inbound connections
- ESTABLISHED Active, open session
- SYN-SENT Client sent SYN, awaiting reply (no handshake yet)
- TIME-WAIT Connection closing, briefly held to flush packets
- CLOSE-WAIT Remote closed; local side has not closed yet
- Worked Scenario
A user cannot reach portal.example.com . You run nslookup portal.example.com and it returns 10.20.30.40, so DNS is fine. You then check whether the path to that service works. From the client, a Test-NetConnection 10.20.30.40 -Port 443 (PowerShell) or a browser test fails. You ask the server team to run ss -tuln on the host, and TCP 443 is not in the listening list, the web service is stopped or bound to the wrong interface. DNS pointed you to the right address, and the socket check proved the service, not the network, is at fault.
Had 443 been listening, you would then suspect a firewall between the client and server rather than the service itself.
Comparing DNS Answers
The single most powerful DNS technique at this level is comparing resolvers. Query the configured internal server, then query a public one: nslookup portal.example.com versus nslookup portal.example.com 8.8.8.8 . If the internal server returns the correct internal address while the public server returns NXDOMAIN, that is expected split-horizon behavior. If the internal server fails but the public one succeeds for an external name, the internal resolver or its upstream forwarding is broken.
If both fail for a name that should exist, the record itself is missing or the authoritative zone has a problem, which is an escalation, not a client fix.
Common Traps and Privacy
A port not listening on a server may mean the service is stopped, bound to the wrong address, blocked by host policy, or never installed, do not assume it is a network outage.
A port that is listening can still be unreachable from afar because of host or network firewalls between client and server.
Treating a cached DNS answer as authoritative; ipconfig /flushdns clears stale client entries after a record changes.
Reading too much into transient TCP states like TIME-WAIT, which is normal connection teardown, not a fault.
Connection output exposes internal hostnames, IPs, services, and user activity, so collect only what you need and store it per policy. A useful ticket line: DNS for the intranet name returned 10.20.30.40 from server 10.20.1.10; the client then failed a TCP connection to 10.20.30.40:443 beats "website broken," because it separates the working resolution step from the failing connection step for whoever picks up the ticket next.