Results 1 to 4 of 4
Hi,
I was told to add the "nis" in front of "files" for below lines in /etc/nsswitch.conf was not in a good practise. I tried to search in google and ...
- 04-17-2010 #1Just Joined!
- Join Date
- Apr 2010
- Posts
- 2
question about nsswitch.conf
Hi,
I was told to add the "nis" in front of "files" for below lines in /etc/nsswitch.conf was not in a good practise. I tried to search in google and man page for nsswitch.conf and can't find the answer. could someone please help me?
passwd: nis files
shadow: nis files
group: nis files
hosts: nis files
Thanks
- 04-18-2010 #2
Unless you are running Solaris, and use the NIS
name service, yes, it shouldn't be first.
/etc/nsswitch.conf -- Name Service Switch File
The /etc/nsswitch.conf file
is probably the usual default. That means, when your systemCode:hosts:files dns
wants to look up a name, it checks the /etc/hosts file
first, then the configured name server.
- 04-18-2010 #3Just Joined!
- Join Date
- Apr 2010
- Posts
- 2
Thanks. Could you pls let me know the reason why it is not a good idea? Thanks a lot!!
- 04-18-2010 #4
My guess is that it would slow down your name lookups
as it would check NIS, which isn't available, and fail at that
before consulting /etc/hosts or DNS


Reply With Quote