Operating Systems

A workstation cannot resolve the internal name "files01" because DNS has no record for it. The technician needs a fix that works on this one machine only. What should be edited?

Show the answer

Correct answerD. /etc/hosts

AWhy not this: This file controls filesystem mounts, so it has no effect on name resolution.

BWhy not this: This file lists user accounts and has no role in resolving hostnames.

CWhy not this: This file names the DNS servers to query; changing it cannot create a record the DNS server lacks.

DWhy this is right: A line pairing the IP address with files01 gives a static local name mapping that needs no DNS record.

/etc/hosts maps names to IP addresses locally, so adding an entry for files01 resolves it on this machine without touching DNS. /etc/resolv.conf only sets which DNS servers to query, which would not add a missing record.