nerdexam
CompTIA

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.

Troubleshooting

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)
  • A
    4% (2)
  • B
    15% (7)
  • C
    2% (1)
  • D
    72% (33)
  • E
    7% (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.

Aroute

The `route` command is used to view or manipulate the IP routing table, not to inspect listening ports or process bindings.

Bhost

The `host` command performs DNS lookups to resolve hostnames to IP addresses, which is not relevant for checking local port bindings.

Cnslookup

The `nslookup` command is also used for querying DNS servers for domain name information, not for verifying local server port configurations.

DnetstatCorrect

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.

Eip

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

#Linux networking#Network troubleshooting#Port binding#netstat command

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice