LX0-104 · Question #268
Suppose that the command netstat -a hangs for a long time without producing output. An administrator might suspect:
The correct answer is B. a problem with DNS. A netstat -a command hanging for an extended period typically indicates an issue with DNS resolution when it attempts to convert IP addresses to hostnames.
Question
Options
- Aa problem with NFS
- Ba problem with DNS
- Ca problem with NIS
- Da problem with routing
- Ethat the netstat daemon has crashed
How the community answered
(50 responses)- A6% (3)
- B78% (39)
- C2% (1)
- D10% (5)
- E4% (2)
Why each option
A `netstat -a` command hanging for an extended period typically indicates an issue with DNS resolution when it attempts to convert IP addresses to hostnames.
A problem with NFS might cause delays in file access, but it would not typically cause `netstat -a` to hang specifically due to hostname resolution attempts.
The `netstat -a` command, by default, tries to resolve IP addresses to human-readable hostnames. If there is a problem with DNS servers or resolution, the command will hang while attempting these lookups, causing a significant delay before displaying output.
A problem with NIS (Network Information Service) primarily affects user and group information lookups, not the hostname resolution performed by `netstat`.
A problem with routing would prevent network traffic from reaching destinations but would not specifically cause `netstat -a` to hang on hostname resolution.
`netstat` is a command-line utility that executes and exits, not a daemon that runs continuously and can crash in the background.
Concept tested: Network troubleshooting and DNS impact on utilities
Source: https://man7.org/linux/man-pages/man8/netstat.8.html
Topics
Community Discussion
No community discussion yet for this question.