Linux Foundation Certified System Administrator (LFCS) — Question 136

Which of the following keywords can be used in the file /etc/nsswitch.conf to specify a source for host name lookups? (Choose TWO correct answers.)

Answer options

Correct answer: B, D

Explanation

The keywords 'dns' and 'files' are used in the /etc/nsswitch.conf file for host name resolution, where 'dns' indicates the use of DNS servers and 'files' refers to local files like /etc/hosts. The other options, 'resolv', 'remote', and 'hosts', are not valid keywords for this purpose.