Computer Science - Linux - Discussion

Discussion :: Linux - Section 1 (Q.No.12)


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


No answer description available for this question.

Mini said: (Nov 23, 2015)  
What is /etc/nsswitch.conf?

Bhavika said: (Oct 10, 2016)  
To determine the sources from which to obtain name-service information in a range of categories.

Vikas Negi said: (Nov 1, 2017)  
Each line in nsswitch.conf specifies how to search for a piece of information. such as a user's password. A line in nsswitch.conf has the following format:

info: method [[action]] [method [[action]]...]


Following is a list of the types of information that nsswitch.conf controls searches for (method in the syntax shown on page 455). For each type of information, you can specify one or more of the following methods:

files Searches local files such as /etc/passwd and /etc/hosts
nis Searches the NIS database; yp is an alias for nis
dns Queries the DNS (hosts queries only)
compat syntax in passwd, group, and shadow files

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.