Which of the following statements is valid in the file /etc/nsswitch.conf?
Which of the following statements is valid in the file /etc/nsswitch.conf?
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.
INFO: the hosts section in /etc/nsswitch.conf ist to define the search order for name resolution.
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
hosts: files dns myhostname