It reads ‘/etc/hosts’ and ‘/etc/resolv.conf’ and caches the hosts from Name Servers mentioned there.
This Leap 42.3 machine is reporting that, ‘nscd’ is caching the following things (“nscd --statistics”):
- passwd cache:
38 current number of cached values
38 maximum number of cached values
- group cache:
57 current number of cached values
57 maximum number of cached values
- hosts cache:
185 current number of cached values
207 maximum number of cached values
- services cache:
20 current number of cached values
35 maximum number of cached values
- netgroup cache:
0 current number of cached values
0 maximum number of cached values
The reported configuration is:
nscd configuration:
0 server debug level
59m 46s server runtime
7 current number of threads
32 maximum number of threads
2 number of times clients had to wait
no paranoia mode enabled
3600 restart internal
5 reload count
BTW, ‘/etc/sysconfig/network/config’ has the following DNS Resolver options configured:
## Type: string
## Default: ""
#
# Allows to specify options to use when writing the /etc/resolv.conf,
# for example:
# "debug attempts:1 timeout:10"
# See resolv.conf(5) manual page for details.
#
NETCONFIG_DNS_RESOLVER_OPTIONS="inet6 edns0 single-request single-request-reopen"