Hostname

A hostname is a label that identifies a hardware device, or host, on a network. Hostnames are used in both local networks (LANs) as well as wide area networks like the Internet.

Local network hostnames don't have a standard format, but they cannot contain spaces and other special characters like commas, periods, and apostrophes. For example, if your name your Mac, "Mike's iMac", the hostname will automatically be translated to "Mikes-iMac.local". If you're a Mac user, you can customize your computer's hostname by modifying the computer name in the Sharing System Preference. If you use a Windows PC, you can modify your hostname by changing the computer name within the System Control Panel.

Internet hostnames are simply domain names, like techterms.com. They are typically fully qualified domain names, such as www.techterms.com or ftp.techterms.com, since each subdomain is a different hostname. However, if a website URL does not include a domain prefix like "www," then the domain name itself (e.g. "techterms.com") can serve as the hostname.

In both local networks and wide area networks like the Internet, hostnames are translated to IP addresses using DNS. Either a local or remote DNS server maps each hostname to a unique IP address, which is how the device is actually identified on a network. Therefore, hostnames are simply used as human-readable labels, which makes it easy to remember names of devices on a network and websites on the Internet.

Updated November 12, 2016 by Per C.

quizTest Your Knowledge

Which of the following statements about a null character is true?

A
It always has the same value as FALSE.
0%
B
As an integer, it is represented as -1.
0%
C
It can be entered by pressing the Esc key.
0%
D
All of its bits are set to zero.
0%
Correct! Incorrect!     View the Null Character definition.
More Quizzes →

The Tech Terms Computer Dictionary

The definition of Hostname on this page is an original definition written by the TechTerms.com team. If you would like to reference this page or cite this definition, please use the green citation links above.

The goal of TechTerms.com is to explain computer terminology in a way that is easy to understand. We strive for simplicity and accuracy with every definition we publish. If you have feedback about this definition or would like to suggest a new technical term, please contact us.

Sign up for the free TechTerms Newsletter

How often would you like to receive an email?

You can unsubscribe or change your frequency setting at any time using the links available in each email.

Questions? Please contact us.