Which NetCat option disables hostname resolution?

Study for the SANS560 GIAC Penetration Tester (GPEN) Test. Study with flashcards and multiple choice questions, each question has hints and explanations. Get ready for your exam!

Multiple Choice

Which NetCat option disables hostname resolution?

Explanation:
This question hinges on how NetCat handles DNS and hostname lookups. NetCat will typically resolve a hostname to an IP address using DNS before connecting. The best answer is the numeric-only flag, which disables any hostname resolution and makes NetCat operate using numeric addresses only. Using this flag is handy when you want to bypass DNS, speed up operations, or avoid DNS-related delays or leaks during testing. The other options don’t affect DNS lookups: one sets the source port for outgoing connections, another puts NetCat into listening mode, and the last switches the transport to UDP. These relate to port handling, server mode, and protocol choice, not to whether hostnames are resolved.

This question hinges on how NetCat handles DNS and hostname lookups. NetCat will typically resolve a hostname to an IP address using DNS before connecting. The best answer is the numeric-only flag, which disables any hostname resolution and makes NetCat operate using numeric addresses only. Using this flag is handy when you want to bypass DNS, speed up operations, or avoid DNS-related delays or leaks during testing.

The other options don’t affect DNS lookups: one sets the source port for outgoing connections, another puts NetCat into listening mode, and the last switches the transport to UDP. These relate to port handling, server mode, and protocol choice, not to whether hostnames are resolved.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy