XK0-005 · Question #389
A Linux administrator wants to resolve a remote server name locally. When of the following files should the administrator modify?
The correct answer is A. /etc/hosts. To resolve a remote server name locally, without relying on DNS servers, a Linux administrator needs to modify a specific configuration file.
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
How the community answered
(50 responses)- A88% (44)
- B2% (1)
- C6% (3)
- D4% (2)
Why each option
To resolve a remote server name locally, without relying on DNS servers, a Linux administrator needs to modify a specific configuration file.
The `/etc/hosts` file is used to store static mappings of IP addresses to hostnames, allowing the system to resolve names locally before consulting DNS.
`/etc/resolv.conf` configures DNS server addresses for network-based name resolution, not local, static resolution.
`/etc/network` is a directory for network interface configuration, not a file for hostname resolution.
`/ett/rpc` (correctly `/etc/rpc`) is used for RPC service mapping, unrelated to hostname to IP address resolution.
Concept tested: Linux hostname resolution mechanism (/etc/hosts)
Source: https://www.redhat.com/sysadmin/etc-hosts-file
Topics
Community Discussion
No community discussion yet for this question.