14. Which of the following commands is used to look up DNS records for a remote host?

Answer: C

Explanation:

dig is used to look up DNS records for a remote host.

The command used to look up DNS records for a remote host is dig. This command retrieves DNS information and provides detailed responses about the queried records.

A) find

The find command is primarily used to search for files and directories within a file system. It does not have the functionality to query DNS records, making it an incorrect choice for this question.

B) curl

Curl is a tool used to transfer data from or to a server using various protocols, including HTTP and FTP. While it can be used to fetch web pages, it does not specifically look up DNS records, thus it is not the correct answer.

C) dig

Dig is specifically designed to query DNS name servers for information about host addresses, mail exchanges, name servers, and related data. It provides detailed output and is the standard tool for DNS lookups, making it the correct choice.

D) ip

The ip command is used for network interface configuration and management tasks, such as viewing or manipulating routing tables and network interfaces. It does not serve the purpose of querying DNS records, rendering it an incorrect option.

Conclusion

Dig is the definitive correct answer for looking up DNS records as it is specifically built for this task, providing precise and detailed DNS information. All other options either serve different functions or lack the capability to perform DNS queries, confirming that they are not suitable choices for this question.