inetutils-hostname(1)

inetutils-hostname1

Show or set the system host name

Usage

hostname [option ...] [name]

Overview

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

Options

-a, --aliases

Also show aliases for the host name.

-d, --domain

Show the DNS domain name.

-f, --fqdn, --long

Show the DNS host name or FQDN.

-F, --file file

Set the host name or NIS domain name from file.

-i, --ip-addresses

Show the addresses for the host name.

-s, --short

Show the short host name.

-y, --yp, --nis

Show the NIS/YP domain name.

?, --help

Give this help list.

--usage

Give a short usage message.

-V, --version

Print program version.

Releases

4 releases since Debian 10 (Buster); the text changed 2 times.

  1. 10
  2. 11–12
  3. 13

--help until Debian 10 (Buster); -? until Debian 10 (Buster).

From inetutils-tools 2:2.6-3+deb13u3 in Debian 13 (Trixie). Parsed by carta from the page's mdoc source.