nerdexam
CompTIA

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.

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

How the community answered

(50 responses)
  • A
    88% (44)
  • B
    2% (1)
  • C
    6% (3)
  • D
    4% (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.

A/etc/hostsCorrect

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.

B/etc/resorv.conf

`/etc/resolv.conf` configures DNS server addresses for network-based name resolution, not local, static resolution.

C/etc/network

`/etc/network` is a directory for network interface configuration, not a file for hostname resolution.

D/ett/rpc

`/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

#Hostname Resolution#Network Configuration#System Files#Linux Networking

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice