Penguin
Annotated edit history of HostName version 4, including all changes. View license author blame.
Rev Author # Line
2 CraigBox 1 The name of your machine, as it will be referred to by things that look it up in [DNS] and hosts(5).
2
4 AristotlePagaltzis 3 Every decent [TCP/IP] connected machine has at least one host name (you'd be hard pressed to do anything on [Linux] without having one!) Some will have other aliases that point to the hostname. Hostnames must be unique on a network, except in the case of clustering or failover (which is a bit trickier than it sounds) - in which case you tend to have unique hostnames on the machines, and ''another'' hostname which points to a RoundRobin lookup for them.
2 CraigBox 4
4 AristotlePagaltzis 5 The machine you are connected to now has a hostname of <tt>hoiho</tt>. You're probably accessing it through its alias <tt>www</tt> however. (<tt>hoiho</tt> doesn't need to know about that alias at all, except in the case of the WebServer for NameVirtualHosting.)
2 CraigBox 6
4 AristotlePagaltzis 7 The hostname is set at boot by the hostname(1) command, which reads it out of a file; usually <tt>/etc/hostname</tt>.
2 CraigBox 8
9 Compare [FQDN].