O'Reilly logo

Solaris™ Operating Environment Boot Camp by Dominic Butler, David Rhodes

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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#

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required