Which option do you add to netstat to resolve hostnames to IP addresses in the output?

Study for the OSCP Linux Exam. Use our flashcards and multiple-choice questions to test your skills. Each query comes with detailed hints and explanations to enhance your preparedness. Get ready to conquer the exam!

Multiple Choice

Which option do you add to netstat to resolve hostnames to IP addresses in the output?

Explanation:
Netstat can resolve addresses to hostnames by default, showing friendly names instead of raw IPs. To display the numeric IP addresses in the output, you use the numeric option, which disables name resolution. This makes the addresses appear as IPs directly, which is why this option is the best fit. The other options serve different purposes: one shows the owning process, one lists all sockets, and one restricts output to TCP connections, none of which change how hostnames are resolved.

Netstat can resolve addresses to hostnames by default, showing friendly names instead of raw IPs. To display the numeric IP addresses in the output, you use the numeric option, which disables name resolution. This makes the addresses appear as IPs directly, which is why this option is the best fit. The other options serve different purposes: one shows the owning process, one lists all sockets, and one restricts output to TCP connections, none of which change how hostnames are resolved.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy