Checking for a fully qualified host name for Oracle Solaris

This topic provides information about how to verify a fully qualified host name for Oracle Solaris systems.

Verify that the /etc/resolv.conf file exists and contains the appropriate information, such as:
domain mydivision.mycompany.com    
nameserver 123.123.123.123
A short name is used if the /etc/nsswitch.conf file contains a line that begins as follows and if the /etc/hosts file contains the short name for the computer:
hosts: files

To correct this problem, follow these steps:

  1. Change the line in the /etc/nsswitch.conf file to the following:
    hosts: dns nis files
  2. Enter the following command to stop the inet service:
     /etc/init.d/inetsvc stop
  3. Enter the following command to restart the inet service:
    /etc/init.d/inetsvc start