HOSTNAME(1) General Commands Manual HOSTNAME(1)

# [NAME](#NAME)

hostname - Display or set the system's host name.

# [SYNOPSIS](#SYNOPSIS)

**hostname** \[OPTION]... \[HOSTNAME]

# [DESCRIPTION](#DESCRIPTION)

Display or set the system's host name.

# [OPTIONS](#OPTIONS)

[**-d**, **--domain**](#d)

Display the name of the DNS domain if possible

[**-i**, **--ip-address**](#i)

Display the network address(es) of the host

[**-f**, **--fqdn**](#f)

Display the FQDN (Fully Qualified Domain Name) (default)

[**-s**, **--short**](#s)

Display the short hostname (the portion before the first dot) if possible

[**-h**, **--help**](#h)

Print help

[**-V**, **--version**](#V)

Print version

\[*host*]

# [VERSION](#VERSION)

v(uutils coreutils) 0.12.0

2026-09-30

---

Document: hostname(1) from uutils 0.12.0-r1 (Chainguard OS)
Source: https://github.com/uutils/coreutils
