OCI-How to Enable the Name Service Cache in Oracle Linux 7
in Linux
Applies to:
Oracle Cloud Infrastructure - Version N/A and later
Linux x86-64
Oracle Linux 7
Goal:
This document outlines the steps required to enable the Name Service Cache in Oracle Linux 7
Solution:
In order to enable name server caching, the nscd
service is required-
1) If not already installed, install it using the following command
$ sudo yum install nscd
2) Enable and start the nscd service
$ sudo systemctl enable nscd.service $ sudo systemctl start nscd.service
3) Log file creation – add or change the /etc/nscd.conf
to include the following lines
logfile /var/log/nscd.log debug-level 5
Note 1 : set the debug level to anything above 0
0