DOKK / manpages / debian 12 / inetutils-tools / inetutils-hostname.1.en
HOSTNAME(1) General Commands Manual (urm) HOSTNAME(1)

hostnameshow or set the system host name

hostname [option ...] [name]

Show the system's host name, or set it if name is specified.

, --aliases
Also show aliases for the host name.
, --domain
Show the DNS domain name.
, --fqdn, --long
Show the DNS host name or FQDN.
, --file file
Set the host name or NIS domain name from file.
, --ip-addresses
Show the addresses for the host name.
, --short
Show the short host name.
, --yp, --nis
Show the NIS/YP domain name.
-?, --help
Give this help list.
Give a short usage message.
, --version
Print program version.
February 1, 2019 GNU Network Utilities