ENES

Hostname

The human-readable name a device uses on a network.

Three machines labeled laptop-ana, printer-2 and mail; the mail server full name splits into the host part mail and the domain part .example.com

Every device on a network has an IP address, but numbers are hard to remember. A hostname is the name a device goes by instead: laptop-ana, printer-2, db01. You choose it when you set up a computer, and you can see it on your own machine by typing hostname in a terminal.

On the internet, hostnames sit inside domain names. In mail.example.com, mail is the host and example.com is the domain it belongs to; written out in full, the whole thing is called a fully qualified domain name (FQDN). DNS translates that name into an IP address, so a company can move its mail server to a new machine and only update DNS, while everybody keeps typing the same name.

Hostnames have simple rules: letters, digits and hyphens, with each part up to 63 characters. They show up in many places you might not expect: in your router's list of connected devices, in log files, in error messages, and in the certificates that make HTTPS work, which are issued for specific hostnames. Picking clear, consistent names is a small habit that makes a network much easier to manage.

Keep in mind

Go deeper

Related terms

More in Networks