CompTIA Linux+ (XK0-005) — Question 243
A network administrator issues the dig www.comptia.org command and receives an NXDOMAIN response. Which of the following files should the administrator check first?
Answer options
- A. /etc/resolv.conf
- B. /etc/hosts
- C. /etc/sysconfig/network-scripts
- D. /etc/nsswitch.conf
Correct answer: A
Explanation
The /etc/resolv.conf file is responsible for DNS resolution settings, making it the first file to check when an NXDOMAIN response is received. The other files, while important for different configurations, do not directly influence DNS resolution like /etc/resolv.conf does.