$linuxjunkies
>

hostname

also: machine name, computer name

The unique name assigned to a computer on a network, used to identify the machine and enable communication with other systems.

A hostname is a human-readable label that identifies a specific computer on a network. It serves as an alternative to numeric IP addresses, making it easier for users and systems to refer to machines by name rather than numbers.

On Linux systems, the hostname is typically configured in files like /etc/hostname and can be viewed or changed using commands like hostname or hostnamectl. For example, a web server might be named web-prod-01, while a database server could be db-primary-02.

Hostnames play a crucial role in networking: they are resolved to IP addresses through DNS (Domain Name System) or local /etc/hosts files, enabling services like SSH, email, and web access to work using memorable names instead of IP addresses.

Related terms