LPI Exam Questions

Which of the following lines would you find in the file /etc/host.conf?

Which of the following lines would you find in the file /etc/host.conf?

A.
order hosts, bind

B.
192.168.168.4 dns-server

C.
hosts: files, dns

D.
domain mycompany.com

Explanation:
The file /etc/host.conf contains configuration information specific to the resolver library. It should contain one configuration keyword per line, followed by appropriate configuration information. The keywords recognized are order, trim, multi, nospoof, spoof, and reorder.

B) would indicate /etc/hosts
C) would indicate /etc/nsswitch.conf
D) would indicate /etc/resolv.conf