Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I modify /etc/nsswitch.conf, is there an "nss" daemon I should restart? I am not referring to modules such as mdns & nis.

share|improve this question
up vote 10 down vote accepted

No you probably don't (other than what David said, and maybe ypbind, but you said not NIS). The nsswitch.conf file isn't for a daemon in particular, it is actually a file used by the C library for various system calls.

share|improve this answer

You may have nscd (Name Service Caching Daemon) running, which you may need to restart, otherwise it's unlikely. Certain daemons might cache get*() function call results and may need restarting.

share|improve this answer
Well since my answer as accepted I have to give David the upvote :-P – Kyle Brandt Oct 21 '09 at 17:30
\o/ cheers. now I feel the need to upvote you for your generosity. – David Pashley Oct 21 '09 at 17:32
Thanks guys. I can see that nscd isn't installed/running by default on Ubuntu. – jldupont Oct 23 '09 at 15:24
That's probably a good thing. NSCD just normally causes more problems than it solves. :) – David Pashley Oct 23 '09 at 16:26
Rather than just restart, you could disable the thing. I would restart my NSCD and successfully resolve host names, then a short while later, my resolution would fail. This happened consistently. – palswim Apr 1 at 19:32

Be aware that existing processes will not be aware of the changes to nsswitch.conf. The nsswitch.conf(5) page states, "Within each process that uses nsswitch.conf, the entire file is read only once; if the file is later changed, the process will continue using the old configuration."

share|improve this answer
So what's a person to do? Reboot? – Ken Williams Nov 13 '13 at 20:46
@Ken: Sadly, this appears to be the case. – Ron Smith May 2 '14 at 21:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.