CompTIA Linux+ (XK0-005) — Question 238
An administrator runs ping comptia. org. The result of the command is:
ping: comptia.org: Name or service not known
Which of the following files should the administrator verify?
Answer options
- A. /etc/ethers
- B. /etc/services
- C. /etc/resolv.conf
- D. /etc/sysctl.conf
Correct answer: C
Explanation
The correct answer is C, /etc/resolv.conf, which is responsible for defining the DNS servers that the system uses for resolving domain names. If the DNS configuration is incorrect or missing, the system won't be able to resolve comptia.org. The other options, such as /etc/ethers, /etc/services, and /etc/sysctl.conf, do not relate directly to DNS resolution.