Which Linux command queries DNS name servers to retrieve information about a target host addresses, name servers, mail exchanges, etc?

Prepare for the Certified Ethical Hacker Version 11 Exam with a comprehensive test featuring flashcards and multiple choice questions, each accompanied by hints and explanations to ensure a thorough understanding. Ace your ethical hacking exam with confidence!

Multiple Choice

Which Linux command queries DNS name servers to retrieve information about a target host addresses, name servers, mail exchanges, etc?

Explanation:
Querying DNS records with a command-line tool. The dig command talks directly to DNS name servers to fetch a variety of records about a host, including A records (addresses), NS (name servers), and MX (mail exchanges). It lets you target a specific DNS server and request particular record types, for example: dig example.com MX to get mail exchangers, or dig @8.8.8.8 example.com A to query a specific server for the host’s address. Its verbose output shows the question, answer, authority, and additional sections, which helps verify results and spot misconfigurations. This makes it especially useful for reconnaissance and troubleshooting in Linux. Showmount and RPCScan serve different purposes (NFS shares and RPC service scanning, respectively), while nslookup can perform DNS queries but dig provides more options and clearer output.

Querying DNS records with a command-line tool. The dig command talks directly to DNS name servers to fetch a variety of records about a host, including A records (addresses), NS (name servers), and MX (mail exchanges). It lets you target a specific DNS server and request particular record types, for example: dig example.com MX to get mail exchangers, or dig @8.8.8.8 example.com A to query a specific server for the host’s address. Its verbose output shows the question, answer, authority, and additional sections, which helps verify results and spot misconfigurations. This makes it especially useful for reconnaissance and troubleshooting in Linux. Showmount and RPCScan serve different purposes (NFS shares and RPC service scanning, respectively), while nslookup can perform DNS queries but dig provides more options and clearer output.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy