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

Enabling Resolving

Everything appears to be working OK with DNS, apart from one thing. We still have to tell the system to use it! This is very easy to do, and we have already carried this out a number of times. Chapter 12, “Naming Services and NIS,” contains more details about this.

In short, we enable DNS by updating the name service switch file, /etc/nsswitch.conf. We do this by adding the “dns” token to the “hosts” entry as shown here:

antimony# grep hosts /etc/nsswitch.conf
hosts: files dns
antimony#

Simple—we've added “dns” as the final service so any host name lookups will first try to resolve the host name by looking in the local /etc files before trying DNS. Once we've done this, we should be able to check that it's working using any ...

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