Solaris 9
Static
echo “hostname” » /etc/hostname.<device>
Add the hostname/IP field in /etc/inet/hosts
DHCP
touch /etc/dhcp.<device>
Edit the file /etc/default/dhcpagent, and set REQUEST_HOSTNAME to yes
Solaris 10
Static
Put the hostname in file /etc/nodename
Put the line “inet <hostname>” in /etc/hostname.<device>
Check if <hostname> is in /etc/inet/hosts
DHCP
touch /etc/hostname.<device>
touch /etc/dhcp.<device>
Check /etc/default/dhcpagent