CompTIACompTIA
XK0-005 · Question #1384
XK0-005 Question #1384: Real Exam Question with Answer & Explanation
The correct answer is A: /etc/hosts. To resolve a remote server name locally without relying on DNS servers, the /etc/hosts file can be modified to map IP addresses to hostnames.
System Management
Question
A Linux administrator wants to resolve a remote server name locally. When of the following files should the administrator modify?
Options
- A/etc/hosts
- B/etc/resorv.conf
- C/etc/network
- D/ett/rpc
Explanation
To resolve a remote server name locally without relying on DNS servers, the /etc/hosts file can be modified to map IP addresses to hostnames.
Common mistakes.
- B.
/etc/resolv.confspecifies the DNS servers that the system should use for name resolution, but it does not directly define static local hostname mappings. - C.
/etc/networkis a directory that typically contains network interface configuration files, not files for local hostname resolution. - D.
/etc/rpcis related to Remote Procedure Call (RPC) services and their program numbers, which is unrelated to hostname resolution.
Concept tested. Local hostname resolution
Reference. https://man7.org/linux/man-pages/man5/hosts.5.html
Topics
#Linux networking#Name resolution#/etc/hosts#System configuration
Community Discussion
No community discussion yet for this question.