Trusted Solaris Installation and Configuration

Set Up DNS


Note -

Skip this procedure if the security administrator has planned a closed network.


If you are using DNS to contact hosts outside of your domain, you must set it up. For detailed information about DNS, see the Federated Naming Service Guide.

  1. Create a resolv.conf file with the appropriate name servers using the Set DNS Servers action.

    1. Enter the string nameserver followed by the IP address of one of your name servers, and repeat for all name servers.

      The file looks something like:


      nameserver nnn.nnn.nnn.nnn
      nameserver nnn.nnn.nnn.nnn
      
    2. Write the file and exit the editor.

  2. Using the Name Service Switch action, change the hosts entry in the /etc/nsswitch.conf file to use DNS.

    ~
    #hosts:      nis [NOTFOUND=return] files
    hosts:    nis files dns
    ~