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