XK0-005 · Question #2
A Linux server has multiple IPs. A Linux administrator needs to verify if the HTTP server port is bound to the correct IP. Which of the following commands would BEST accomplish this task?
The correct answer is D. netstat. To verify if an HTTP server port is bound to a specific IP address on a Linux server, the netstat command is the most effective tool.
Question
A Linux server has multiple IPs. A Linux administrator needs to verify if the HTTP server port is bound to the correct IP. Which of the following commands would BEST accomplish this task?
Options
- Aroute
- Bhost
- Cnslookup
- Dnetstat
- Eip
How the community answered
(46 responses)- A4% (2)
- B15% (7)
- C2% (1)
- D72% (33)
- E7% (3)
Why each option
To verify if an HTTP server port is bound to a specific IP address on a Linux server, the `netstat` command is the most effective tool.
The `route` command is used to view or manipulate the IP routing table, not to inspect listening ports or process bindings.
The `host` command performs DNS lookups to resolve hostnames to IP addresses, which is not relevant for checking local port bindings.
The `nslookup` command is also used for querying DNS servers for domain name information, not for verifying local server port configurations.
The `netstat` command displays active network connections, routing tables, interface statistics, and listening ports. Using options like `netstat -tulnp` allows an administrator to see which processes are listening on which IP addresses and ports, directly verifying the HTTP server's binding.
The `ip` command (from iproute2 utilities) configures network interfaces and routing, but it does not display information about processes bound to specific ports.
Concept tested: Linux network port monitoring
Source: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/netstat
Topics
Community Discussion
No community discussion yet for this question.