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

First, make sure that the server is up and running. Second, make sure that the server is in the /etc/hosts file of the client system by typing: ping server name. Third, check the license daemon on teh server to see if it is running. Fourth, make sure that there is an elementary license file on the client:


cd /etc/opt/licenses
more sunpro.loc
Fifth, in the sunpro.loc directory are there only text license files such as sunpro.lic,1? Sixth, on the client check:

 % cd /etc
 % more nsswitch.conf | grep hosts
 hosts:      nis [NOTFOUND=return] files
This says that it will use 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 find it. If not, try truss and snoop to see what is going on.