nerdexam
CompTIA

XK0-005 · Question #1440

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?

The correct answer is C. /etc/resolv.conf. This file contains the configuration for the DNS resolver, which is responsible. The error 'Name or service not known' means DNS resolution failed - the system could not resolve comptia.org to an IP address. The file /etc/resolv.conf contains the DNS resolver configuration, including the nameserver entries that tell the system which DNS servers to query. If…

Troubleshooting

Question

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?

Options

  • A/etc/ethers
  • B/etc/services
  • C/etc/resolv.conf. This file contains the configuration for the DNS resolver, which is responsible
  • D/etc/sysctl.conf

How the community answered

(26 responses)
  • A
    4% (1)
  • B
    4% (1)
  • C
    81% (21)
  • D
    12% (3)

Explanation

The error 'Name or service not known' means DNS resolution failed - the system could not resolve comptia.org to an IP address. The file /etc/resolv.conf contains the DNS resolver configuration, including the nameserver entries that tell the system which DNS servers to query. If this file is empty, misconfigured, or points to an unreachable DNS server, name resolution fails. /etc/ethers maps MAC addresses to hostnames (rarely used). /etc/services maps service names to port numbers - unrelated to DNS resolution. /etc/sysctl.conf contains kernel parameter settings - also unrelated to DNS.

Topics

#DNS#Hostname Resolution#Network Troubleshooting#Linux Configuration Files

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice