HOSTNAME(1) User Commands HOSTNAME(1)

hostname - show or set system host name

hostname [OPTION...] [NAME]

Show or set the system's host name.

alias names
DNS domain name
DNS host name or FQDN
set host name or NIS domain name from FILE
addresses for the host name
short host name
NIS/YP domain name
-?, --help
give this help list
give a short usage message
print program version

Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options.

Written by Debarshi Ray.

Report bugs to <bug-inetutils@gnu.org>.

Copyright © 2022 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later https://gnu.org/licenses/gpl.html.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

The full documentation for hostname is maintained as a Texinfo manual. If the info and hostname programs are properly installed at your site, the command

info hostname

should give you access to the complete manual.

July 2022 GNU inetutils 2.3