Sun Cluster 3.0 Data Services Installation and Configuration Guide

Installing DNS

This section describes the steps for installing DNS and enabling it to run as the Sun Cluster HA for DNS data service.

The Sun Cluster HA for DNS data service uses the Internet Domain Name Server (in.named) software that is bundled with the Solaris 8 operating environment. For information on setting up DNS, see the in.named(1M) man page. The differences in a Sun Cluster configuration are as follows:

How to Install DNS

  1. Become superuser on a node in the cluster.

  2. Decide on the logical host name that will provide DNS service.

    This name should be a host name that is set up when you install the Sun Cluster software. For details on setting up host names, see the Sun Cluster 3.0 Installation Guide.

  3. Ensure that the DNS executable (in.named) is in the directory /usr/sbin.

    The DNS executable is bundled with the Solaris 8 operating environment and is located in /usr/sbin before you begin the installation.

  4. Create a directory structure on the cluster file system to hold the DNS configuration and database files.

    Create a dns directory and a named directory underneath it on a cluster file system, for example, /global/dns/named. For information on setting up cluster file systems, see the Sun Cluster 3.0 Installation Guide.


    # mkdir -p /global/dns/named
    
  5. Place the configuration file for DNS, named.conf or named.boot, under /global/dns.

    If DNS is already installed, you can copy the existing named.conf or named.boot to the /global/dns directory. Otherwise, create a named.conf file in this directory. For information on the types of entries to place in named.conf or named.boot, see the in.named(1M) man page. One of the two files, named.conf or named.boot, must exist. Both files can exist.

  6. Place all the DNS database files (listed in named.conf) under /global/dns/named.

  7. On all the clients of Sun Cluster HA for DNS, create an entry for the logical host name of the DNS service in the /etc/resolv.conf file.

    On all the nodes, edit /etc/resolv.conf to contain the logical host name. The following example shows the entries for a four-node configuration (phys-schost-1, phys-schost-2, phys-schost-3, and phys-schost-4) with the logical host name schost-1.eng.sun.com.


    domain eng.sun.com
     
    ; schost-1.eng.sun.com
    
    (Only entry to be added if the file is already present.)
     
    nameserver 192.29.72.90
     
    ; phys-schost-2.eng
    nameserver 129.146.1.151
     
    ; phys-schost-3.eng
    nameserver 129.146.1.152
     
    ; phys-schost-4.eng
    nameserver 129.144.134.19
     
    ; phys-schost-1.eng
    nameserver 129.144.1.57

    Make the logical host name the first entry after the domain name. DNS attempts to access the server by using the addresses in the order they are listed in resolv.conf.


    Note -

    If the /etc/resolv.conf is already present on the nodes, just add the first entry that shows the logical host name in the previous example. The order of the entries determines the order in which the DNS tries to access the server.


  8. On all the cluster nodes, edit /etc/inet/hosts to create an entry for the logical host name of the DNS service.

    In the following example:

    • Replace the IPaddress variable with your actual IP address, such as 129.146.87.53.

    • Replace the logicalhostname variable with your actual logical host name.


    127.0.0.1						localhost
    IPaddress						logicalhostname
    
  9. On all the cluster nodes, edit the /etc/nsswitch.conf file to add the string dns after cluster and files to the hosts entry.

    For example:


    hosts:		 	cluster files dns
  10. Test DNS.

    Be sure to stop in.named before proceeding. For example:


    # cd /global/dns
    # /usr/sbin/in.named -c /global/dns/named.conf
    # nslookup phys-schost-1
    # pkill -x /usr/sbin/in.named
    

Where to Go from Here

If you have already installed the Sun Cluster HA for DNS packages as part of your Sun Cluster installation, go to "Registering and Configuring Sun Cluster HA for DNS". Otherwise, go to "Installing Sun Cluster HA for DNS Packages".