Next: , Previous: , Up: GNU Inetutils   [Contents][Index]


4 hostname: Show or set system host name.

hostname is a program to show or to set the name of a host system.

Synopsis:

hostname [option…]
hostname name

where name is the name to be used by the running host.

4.1 Command line options

-a
--aliases

Get alias names.

-d
--domain

Get DNS domain name.

-f
--fqdn
--long

Get DNS host name or Fully Qualified Domain Name.

-F file
--file=file

Set host name or NIS domain name from FILE.

-i
--ip-addresses

Get addresses for the host name.

-s
--short

Get short host name.

-y
--yp
--nis

Get NIS/YP domain name.