I am told some systems at work are running nscd, so i wanted to get
familiar with it on my workstation. I added the nscd use flag and rebuilt
glibc, and i now have it running.
In nsswitch.conf have tried both;
hosts: files dns
hosts: cache files dns
And neither activate the caching. The "cache" option does not appear in
nsswitch.conf's man page, but was referenced online.
nscd -g reports;
hosts cache:
yes cache is enabled
no cache is persistent
no cache is shared
211 suggested size
216064 total data pool size
0 used data pool size
3600 seconds time to live for positive entries
20 seconds time to live for negative entries
0 cache hits on positive entries
0 cache hits on negative entries
1 cache misses on positive entries
0 cache misses on negative entries
0% cache hit rate
But i see from packet captures that a new request is sent to the dns server
each time, and nscd -i hosts is always empty. stracing nscd shows that its
not processing anything. How do i get it to intercept the name requests?
FWIW, im running systemd.