Here is the info doc from sun on this. It worked for me:
1. For Solaris 2.6 and Solaris 7 Systems.
Edit the file /etc/init.d/rootusr and change the line that reads
hostname=`/sbin/dhcpinfo Hostname`
to
# hostname=`/sbin/dhcpinfo Hostname`
hostname=`shcat /etc/nodename`
uname -S $hostname
Save the file and reboot the system. The system's hostname will be the
entry in the file /etc/nodename.
2. For Solaris 8 systems.
Edit the file /etc/init.d/network and change the line that reads
"dhcp") hostname=`/sbin/dhcpinfo Hostname` ;;
to
# "dhcp") hostname=`/sbin/dhcpinfo Hostname` ;;
"dhcp") hostname=`shcat /etc/nodename` ;;
Then, edit the file /etc/init.d/inetsvc and change the line that reads
hostname=`/sbin/dhcpinfo Hostname`
to
# hostname=`/sbin/dhcpinfo Hostname`
hostname=`/usr/bin/cat /etc/nodename`
HTH
-Wazir
Save the files and reboot the system. The system's hostname will be the
entry in the file /etc/nodename.
Quote:> Can someone tell me how to tell the machine (solaris 8) what the
> hostname is when it uses DHCP? I put "flare" in /etc/hostname.elxl0
> but it still comes up with hostname "unknown". Can someone also tell
> me how to disable DHCP and hard-code the IP after a system has been
> installed with DHCP on?
> --Dan