CompTIA Linux+ (XK0-004) — Question 255
A Linux user wants to know the type A records for the domain foo.com.
Which of the following commands will accomplish this task?
Answer options
- A. dig type A domain foo.com
- B. nslookup set a foo.com
- C. nslookup set q A foo.com
- D. dig A foo.com
Correct answer: D
Explanation
The correct command is 'dig A foo.com' because it specifically queries for A records of the domain. The other options are either incorrectly formatted or do not specify the type of record being requested.