|
If you're running a Solaris workstation on the DHCPnetwork, you'll have some issues with getting a hostname/machine name.
DHCP won't provide this by default, and you get the "unknown" hostname. Here's a quick and dirty fix:
Create a file with the following in it andname it /etc/rc.2.d/S70dhcp_hostname with 755 perms.
#!/sbin/sh
#
# RC script to set the hostname since DHCP doesn't provide one.
#
MACHINE_NAME=`cat /etc/nodename`
echo "Setting hostname to $MACHINE_NAME... c"
uname -S $MACHINE_NAME
echo "Done."
Then put the name you want your machine to be into /etc/nodename.
(as root) echo "foofoobunny" > /etc/nodename
Once you reboot, all should be well!
- Erek Adams
|