What file specifies the order in which to use specified name services?
A. /etc/services
B. /etc/nsorder
C. /etc/nsswitch.conf
D. /etc/hosts
E. None of the above
Answer: Option C
Solution(By Examveda Team)
The /etc/nsswitch.conf file specifies the order in which to use specified name services in Linux.This file controls how the system resolves various services, such as hostnames, user names, and group names, by defining the sources to query in a specific order.
For example, it determines whether to look in files like /etc/hosts or to query DNS servers for hostname resolution.
By configuring this file, administrators can control the order in which different name resolution methods are attempted, providing flexibility and customization.
So, in summary, the file that specifies the order of name services is /etc/nsswitch.conf.
Related Questions on Linux
What command is used to count the total number of lines, words, and characters contained in a file?
A. countw
B. wcount
C. wc
D. count p
E. None of the above
What command is used with vi editor to delete a single character?
A. x
B. y
C. a
D. z
E. None of the above
Join The Discussion