102-500 Exam QuestionsBrowse all questions from this exam

102-500 Exam - Question 6


Which of the following statements is valid in the file /etc/nsswitch.conf?

Show Answer
Correct Answer: E

In the /etc/nsswitch.conf file, the statement 'hosts: files dns' is valid. This configuration determines the order in which the system should look up hostname information. 'files' typically refers to the local /etc/hosts file, and 'dns' refers to querying the DNS server.

Discussion

3 comments
Sign in to comment
molotovOption: E
Feb 14, 2022

INFO: the hosts section in /etc/nsswitch.conf ist to define the search order for name resolution.

CuriousLinuxCatOption: E
Aug 6, 2021

The closest example to which E will make sense in terms of structuring: Here is an example /etc/nsswitch.conf file: passwd: compat group: compat shadow: compat hosts: dns [!UNAVAIL=return] files networks: nis [NOTFOUND=return] files ethers: nis [NOTFOUND=return] files protocols: nis [NOTFOUND=return] files rpc: nis [NOTFOUND=return] files services: nis [NOTFOUND=return] files

Janec20Option: E
Nov 10, 2021

hosts: files dns myhostname