hostname bug

On 'solaris2' the hostname is not good detected.

domainname is always empty by default, and is used for NIS configuration.

The correct hostname and fqdn detection should be just the output of 'hostname'.

Thanks!


PD: this affects smartos too...