nerdexam
CompTIA

XK0-005 · Question #672

response. Which of the following files should the administrator check first?

The correct answer is A. /etc/resolv.conf. '/etc/resolv.conf' is the primary DNS client configuration file. It specifies the nameserver IP addresses the system uses for DNS resolution. If DNS lookups are failing or slow, this is the first file to check to verify that valid, reachable nameservers are configured…

Troubleshooting

Question

response. Which of the following files should the administrator check first?

Options

  • A/etc/resolv.conf
  • B/etc/hosts
  • C/etc/sysconfig/network-scripts
  • D/etc/nsswitch.conf

How the community answered

(65 responses)
  • A
    91% (59)
  • B
    2% (1)
  • C
    6% (4)
  • D
    2% (1)

Explanation

'/etc/resolv.conf' is the primary DNS client configuration file. It specifies the nameserver IP addresses the system uses for DNS resolution. If DNS lookups are failing or slow, this is the first file to check to verify that valid, reachable nameservers are configured. '/etc/hosts' provides static hostname-to-IP mappings but is checked before DNS and would not explain general DNS failures. '/etc/sysconfig/network-scripts' contains interface configuration. '/etc/nsswitch.conf' controls the order of name resolution methods (files, DNS, etc.) and would be a secondary check.

Topics

#DNS resolution#Network configuration#Linux file system#Troubleshooting

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice