CompTIA Linux+ (XK0-005) — Question 138
A Linux administrator needs to determine whether a hostname is in the DNS. Which of the following would supply the information that is needed?
Answer options
- A. nslookup
- B. rsynс
- C. netstat
- D. host
Correct answer: D
Explanation
The correct answer is D, as the 'host' command is specifically designed to look up DNS records for a hostname. Option A, 'nslookup', can also perform DNS lookups, but it is not the primary choice in this context. Options B and C, 'rsync' and 'netstat', are unrelated to DNS lookups and serve different purposes in system administration.