On 2021-02-06 2:24 p.m., Stakanov wrote:
Is nscd actually useful at all if he would use a caching server like unbound or dnsmasq? My understanding is that it would be only the case if he is using normal resolf.conf, am I mistaken? So he could in this case use a workaround to install / use such setup and stop nscd. Maybe not correct, please educate me if I am mistaken. Thanks.
That's a valid point. If you look at /usr/lib/systemd/system/nscd.service you'll see that a number of services are (re)started. So RTFM and see that nscd provides caching for accesses of the passwd(5), group(5), hosts(5) services(5) Try 'nscd --help' And check what's in /etc/nscd.conf Some of that is useful, some is not. Recall that things like 'ls' will want to know the GID->GroupName mapping. There's a similar reasoning for 'services', if and when. But in a single user system what about the rest? There's no need to cache passwords; I'm not sure there is a need in a multi user system. And as you say, if you're using DNSMasq with a reasonable setup then it's doing its own caching and monitoring changes of key files. So no, for single user workstations, I'm not sure nscd offers a tangible benefit. # systemctl disable nscd -- “Reality is so complex, we must move away from dogma, whether it’s conspiracy theories or free-market,” -- James Glattfelder. http://jth.ch/jbg