Solaris Common Messages and Troubleshooting Guide

Cannot find SERVER hostname in network database

Cause

A brief description: the user is on a different subnet and is running permanent licenses:


ultra1(50)% cc -o hello hello.c
License Error : Cannot find the license server (fry)
in the network database for product(Sun WorkShop Compiler C)
Cannot find SERVER hostname in network database (-14,7)
cc: acomp failed for hello.c
ultra1(51)%

Action

Check the following:

  1. Make sure that the server is up and running.

  2. Make sure that the server is in the /etc/hosts file of the client system by typing: ping servername.

  3. Make sure the license daemon on the server is running.

  4. Make sure there is an elementary license file on the client:


    cd /etc/opt/licenses
    more sunpro.loc

  5. Make sure there are only text license files, such as sunpro.lic.1 in the sunpro,loc directory.

  6. For the client check, see below:


     % cd /etc
     % more nsswitch.conf | grep hosts
     hosts:      nis [NOTFOUND=return] files
    This means that it is using the NIS server to look up the IP address. If it is set first for nis and the /etc/hosts file has the server listed by name, change the line to

    hosts:      files nis 
    Then, see if it can be found. If not, try truss and snoop to see what is happening.