目錄表

Hostname

A hostname is a human-readable nickname that is associated with one or more IP addresses.

The term varies depending on the context in which it is used. The term can refer to:

A domain name can be a hostname as long as it has an IP address assigned to it (and meets restrictions on valid host names).

Inversely, a hostname can also be a domain name, provided it is properly organized into the domain name system.

Choosing a good hostname

When you create your server on Gandi's website, you are asked to enter a “host name” and password at the end of the process before payment. This “host name” is thus the name of your Gandi server.

Guidelines and suggestions on choosing good hostnames are imparted in RFC 1178, Choosing a Name for Your Computer:

Here are some examples of good hostnames:

You probably want to avoid hostnames like this:

On Unix systems, the hostname command displays the name of the current host machine, and can also be used to change or set the hostname. (Run hostname -s to get just the hostname without the domain information.)

See also