Hostname Example: How does a Valid Hostname Syntax Look Like?
According to the RFC 1123 protocol, the hostname's total length is limited to 255 characters, and it comprises the hostname and the domain name labels separated by periods.
Here is an example of a typical hostname that would be stored in a DNS for geolocating the hostname's address and would be assigned to a PC connected to the internet via Comcast: "c-61-123-54-66.hsd2.co.comcast.net" where: 61.123.45.67 is the hostname's IP address, "CO" stands for Colorado, and comcast.net is the ISP hosting the end-user.
On the internet, a hostname refers to the domain name attributed to a host computer. For instance, if Computer Ben's network has two computers named "River" and "John", the domain name "river.computerben.com" connects to the "river" computer. The IP address of the "river" computer is acquired by looking up the hostname "river.computerben.com" in the host's file or DNS resolver.
If we refer to an internet location or a website (for instance, computerben.com), the hostname is typically seen as a domain name and is within the address typed into a web browser to access a webpage. When it contains a Top-Level Domain (TLD), the hostname is considered an FQDN. For instance, the format of an internet address is http://www.exampledomain.com/examplefile.html where:
"HTTP" is the protocol.
"www" is the hostname.
"exampledomain" is the domain name.
"com" is the TLD.
"examplefile.html" is the file path.