XK0-005 · 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. The /etc/hosts file is the correct location for static, local hostname-to-IP address mappings. It is consulted before DNS (depending on /etc/nsswitch.conf configuration) and is ideal for isolated environments. The administrator would add 127.0.0.1 localhost and 192.168.192.12…
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
(31 responses)- A3% (1)
- B3% (1)
- C87% (27)
- D6% (2)
Explanation
The /etc/hosts file is the correct location for static, local hostname-to-IP address mappings. It is consulted before DNS (depending on /etc/nsswitch.conf configuration) and is ideal for isolated environments. The administrator would add 127.0.0.1 localhost and 192.168.192.12 database01.comptia.org to this file. /etc/nsswitch.conf controls the order of name resolution sources but does not contain address mappings. /etc/dhcpd.conf is for configuring a DHCP server, not local name resolution. /etc/network is a network interface configuration file (Debian/Ubuntu), not used for hostname mapping.
Topics
Community Discussion
No community discussion yet for this question.