ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 283 - XK0-005 discussion

Report
Export

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?

A.
/etc/ethers
Answers
A.
/etc/ethers
B.
/etc/services
Answers
B.
/etc/services
C.
/etc/resolv.conf
Answers
C.
/etc/resolv.conf
D.
/etc/sysctl.conf
Answers
D.
/etc/sysctl.conf
Suggested answer: C

Explanation:

The best file to verify when the ping command returns the error ''Name or service not known'' is C. /etc/resolv.conf. This file contains the configuration for the DNS resolver, which is responsible for translating domain names into IP addresses. If this file is missing, corrupted, or has incorrect entries, the ping command will not be able to resolve the domain name and will fail with the error. To fix this issue, the administrator should check that the file exists, has proper permissions, and has valid nameserver entries. For example, a typical /etc/resolv.conf file may look like this:

nameserver 8.8.8.8nameserver 8.8.4.4

These are the IP addresses of Google's public DNS servers, which can be used as a fallback option if the default DNS servers are not working.

asked 02/10/2024
Eric De La Vega
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first