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 They are typically fully qualified domain names, such as or, 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. "") 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

The IEEE 802.3 standard is also known as what?

Power over Ethernet (PoE)
Wi-Fi 3.0
Firewire 800
Correct! Incorrect!     View the PoE definition.
More Quizzes →

The Tech Terms Computer Dictionary

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

The goal of 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.