Operating Systems
A Linux client reaches websites by IP address but fails by name after the network team replaced the DNS server. Which file should be checked for the DNS server address?
Show the answer
Correct answerC. /etc/resolv.conf
AWhy not this: It lists user accounts and is unrelated to name resolution.
BWhy not this: It defines filesystem mounts, which has no bearing on DNS lookups.
CWhy this is right: Its nameserver lines give the DNS server addresses the client queries for name resolution.
DWhy not this: It holds static name-to-address entries but does not specify DNS servers.
/etc/resolv.conf lists the nameserver addresses the resolver queries, so it must point to the new DNS server. /etc/hosts holds only static name entries and does not define which DNS server to use.