Name Service Caching
When the connection has been torn down, you may find that the PPP link is often reactivated. The reason for this is that the name service cache daemon, /usr/sbin/nscd, will cache the hosts file and force the connection up to rebuild its data at certain intervals. We only really want the connection to be opened at our request, so we'll disable hosts caching. We do this by altering the hosts entry, then restarting the daemon. The file is shown below after modification, along with the tasks required to restart it:
cesium# grep enable-cache /etc/nscd.conf enable-cache hosts no cesium# /etc/init.d/nscd stop cesium# /etc/init.d/nscd start cesium#
Get Solaris™ Operating Environment Boot Camp now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.