HOSTNAME(1)

NAME
hostname - show or set the system's host name

SYNOPSIS
hostname [-finvS] [name]

DESCRIPTION
Hostname is the program that is used to either set or display the current host name of the system. This name is used by many of the networking programs to identify the machine.

Usually, the system name gets set at boot time in the init sequence. After that, this program is only used to display the name that has been set previously.

OPTIONS

-v  Tell the user what is going on by being verbose.

-i  Shows the IP address of the entry being set or showed. This is only useful when debugging things.

-n  Show the network address portion of the current IP address. This is only useful in configuration scripts.

-S name
    Set the host name to the name specified in name /etc/HOSTNAME file, which of course must be readable by the super user.

If the -f option was also specified, the host name will be resolved by the system reslolver, and the resulting host name (which usually is the official or Fully Qualified Domain Name (FQDN) will be used instead. Doing this is highly recommended.

FILES
/etc/HOSTNAME

BUGS
None so far.

AUTHOR
Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>