On Thu, 2008-02-14 at 09:41 -0500, Chris Lewis wrote:
> Like Solaris usually does (grr), "hostname" returns the host node
> name 
> (no dots), not the FQDN.

This is correct behaviour.

Sun's hostname command, iirc, uses the hosts table and is
well-documented[*].  You can have it return long names by default it you
like (reversing the order of entries following the IP address
in /etc/hosts may do it) but that's liable to break NIS or NIS+ if you
are using that.

I don't have a solaris box but you might try 'hostname -f' ...

I always use 'hostname -s' when I want the short name.

[*] The practice of using FQDN is an unfortunate linux novelty.  I
realize that it's over 10 years old now though ... :-(

-- 
--gh


Reply via email to