On Mon, 08 Jan 2001 13:39:07 Jonathan Wilson wrote:
>Should the command "hostname" show only the short hostname ("host") or the
>FQDN ("host.domain.tld")

According to the man page, you are supposed to use "hostname -fqdn" to get
the FQDN. That implies that the command by itself only returns the hostname.
The man page also refers to the gethostname(2) system call. That command
only retreives the unqualified hostname, not the FQDN.

hostname --help

Tony
-- 
Anthony E. Greene <[EMAIL PROTECTED]> <http://www.pobox.com/~agreene/>
PGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26  C484 A42A 60DD 6C94 239D
Chat:  AOL/Yahoo: TonyG05    ICQ: 91183266
Linux. The choice of a GNU Generation. <http://www.linux.org/>



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to