Sunday, February 26, 2006

Solaris 10, dhcp and hostname

Solaris 10 relies on dhcpd to pass it a valid hostname. If that doesn't happen the hostname is set to "unkown".

Fix: Set the host-name option in dhcpd.conf when using isc-dhcpd.

host dopey {
hardware ethernet 08:00:20:c1:95:e8;
option host-name "dopey";

Alternatives are either hacking the init scripts (basically replace "unknown" with the hostname you want), or writing a custom init script.

No comments: