nerdexam
CompTIA

XK0-004 · Question #180

A junior administrator is configuring local name lookups for fully qualified domain names in an isolated environment. The administrator is given a checklist and must accomplish the following tasks…

The correct answer is C. Open the /etc/hosts file with a file editor and add the following lines. Modify Hosts File in Linux On Linux, the full path to the file is /etc/hosts. In your terminal window, open the hosts file using your favorite text editor : $ sudo nano /etc/hosts

Server Side & Network Concepts

Question

A junior administrator is configuring local name lookups for fully qualified domain names in an isolated environment. The administrator is given a checklist and must accomplish the following tasks:

  • Add localhost with loopback address.
  • Add 192.168.192.12/24 to resolve to database01.comptia.org

Given this scenario, which of the following steps should the administrator perform to accomplish these tasks?

Options

  • AOpen the /etc/nsswitch.conf file with a file editor and add the following lines:
  • BOpen the /etc/dhcpd.conf file with a file editor and add the following lines:
  • COpen the /etc/hosts file with a file editor and add the following lines:
  • DOpen the /etc/network file with a file editor and add the following lines:

How the community answered

(44 responses)
  • A
    7% (3)
  • B
    2% (1)
  • C
    89% (39)
  • D
    2% (1)

Explanation

Modify Hosts File in Linux On Linux, the full path to the file is /etc/hosts. In your terminal window, open the hosts file using your favorite text editor : $ sudo nano /etc/hosts

Topics

#/etc/hosts#local name resolution#FQDN#DNS

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice