Solaris 9 Discussion - solaris server hostname become unknown
Hiis it possible for a server to have its hostname become 'unknown' by itself? Prior to this happening, no one has login to make any changes to the configuration.Cheers
[191 byte] By [
implifea] at [2007-11-26 23:17:52]

# 1
Only if the machine is getting its network configuration from DHCP, and have "12" included in the PARAM_REQUEST_LIST variable of the /etc/default/dhcpagent file, and the DHCP server doesn't provide a hostname. .7/M.
# 2
Thanks for your replyHowever, the machine is not getting its network config from DHCP. Its IP is defined in the hosts file., am i correct to say that?
# 3
The ip of an interface is defined by /etc/hostname.<interface>, if that file contains a hostname rather than an IP address, the IP address is determined from the /etc/hosts file.
The hostname of the machine (returned by the 'hostname' command and by 'uname') is set from /etc/nodename .
To change the hostname of a running system you could run:
hostname <new hostname>
and then update /etc/nodename .
.7/M.
# 4
May not be related but we had a system with "hostname issues" after reboots. It turned out that a cron job was overwriting /dev/null.Make sure it's a link to the proper device file and if not, recreate it (remove existing file and devfsadm).
# 5
Like you mentioned, the /etc/hostname contains a hostname and the /etc/hosts contains the ip address.
The hostname was changed by itself without any one manually changing it. is this possible? We did not perform any reboots and the only cron job on the system was to run few hours later.
It was only after we logged in that we found that the hostname was 'unknown'.
However, thanks for the info for changing the hostname. Its should be helpful rather than performing a restart.