Linux Administration
medium

Questão de Linux Administration #019e3987

Enunciado da Questão
Linux Administration
#nsswitch.conf
#nss
#hosts
#dns
#files
Médio

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.)

A

resolv

B

dns

Correta
C

remote

D

files

Correta
E

hosts

Explicação Oficial / Explicações da Comunidade

The /etc/nsswitch.conf file configures the Name Service Switch (NSS) library, which determines the order and sources for various system databases, including host name lookups. The valid sources for host name resolution are files (local /etc/hosts file) and dns (DNS via /etc/resolv.conf).

How it Works:
The NSS system uses a configuration line like hosts: files dns to specify that the system should first check the local /etc/hosts file, and if not found, query DNS. The keywords are predefined by the NSS modules installed on the system. Common modules include files, dns, nis, ldap, etc.