The following example shows how to register Sun Cluster HA for DNS on a two-node cluster. Note that at the end, the scswitch command starts Sun Cluster HA for DNS.
Cluster Information Node names: phys-schost-1, phys-schost-2 Logical hostname: schost-1 Resource group: resource-group-1 (for all of the resources), Resources: schost-1 (logical hostname), dns-1 (DNS application resource) (Register the DNS resource type.) # scrgadm -a -t SUNW.dns (Add the resource group to contain all of the resources.) # scrgadm -a -g resource-group-1 (Add the logical hostname resource to the resource group.) # scrgadm -a -L -g resource-group-1 -l schost-1 (Add DNS application resources to the resource group.) # scrgadm -a -j dns-1 -g resource-group-1 -t SUNW.dns \ -y Network_resources_used=schost-1 -y Port_list=53/udp \ -x DNS_mode=conf -x Confdir_list=/global/dns (Bring the failover resource group online.) # scswitch -Z -g resource-group-1 |