>When I set my Solaris 7 up as client, I get my IP address assigned, BUT
> my hostname gets set to "unknown". I have my name in the
> hostname.elxl0 file but I still get unknown.
>Also, DHCP adds this entry to host file:
> <my IP address> unknown #Added by DHCP
>My DHCP server is setup to not provide a hostname for clients.
Don't put the hostname in /etc/hostname.elxl0.
Put it in /etc/nodename instead. (Don't just delete
your /etc/hostname.elxl0, though. Empty it out.)
IIRC, Solaris 7 will pick up the name in /etc/nodename
automatically when the DHCP server doesn't provide a
hostname.
If yours doesn't, then edit the /etc/rcS.d/S30rootusr.sh script.
Look for an if/then statement that has 'hostname="unknown"' in it.
On Solaris 2.6 it was around line 150 of the script. Comment out
that if/then statement (3 lines). The next set of statements will
read the /etc/nodename file for the hostname.
-Greg