Subdomain

In the Domain Name System (DNS) hierarchy, a subdomain is a domain that is a part of another (main) domain.[1] For example, if you offered an online store as part of your website example.com, you might use the subdomain shop.example.com .

A domain is made up of multiple parts. Here is am example: https://www.example.com/page

The https:// is the protocol. It means that we are using the hypertext transfer protocol (in this example).

The www. is the subdomain. Domains don't always have to start with www. Many do, though. You can change the www. to anything you like, such as shop.example.com.

example.com is the domain name. ".com" is the TLD (top level domain). There are also other TLDs, like .org and .net

/page is the webpage. Like the one you are on at the moment.


Let's take another example. https://www.example.co.uk

co is a subdomain of uk.

example is a subdomain of co.uk.

www is a subdomain of example.co.uk.

https:// is NOT a subdomain of www.example.co.uk

Overview

The Domain Name System (DNS) has a tree structure or hierarchy, with each non-RR (resource record) node on the tree being a domain name. A subdomain is a domain that is part of a larger domain; the only domain that is not also a subdomain is the root domain.[1] Each label may contain from 1 to 63 octets. The empty label is reserved for the root node and when fully qualified is expressed as the empty label terminated by a dot. The full domain name may not exceed a total length of 253 ASCII characters in its textual representation.[2] Thus, when using a single character per label, the limit is 127 levels: 127 characters plus 126 dots have a total length of 253. In practice, some domain registries may have shorter limits.

Subdomains in this context are defined by editing the DNS zone file pertaining to the parent domain. However, there is an ongoing debate over the use of the term “subdomain” when referring to names which map to the Address record A (host) and various other types of zone records which may map to any public IP address destination and any type of server. Network Operations teams insist that it is inappropriate to use the term “subdomain” to refer to any mapping other than that provided by zone NS (name server) records and any server-destination other than that.

According to RFC 1034, "a domain is a subdomain of another domain if it is contained within that domain". Based on that definition, a host cannot be a subdomain, only a domain can be a subdomain. A subdomain will also have a separate zone file with a SOA record (Start of Authority). Merely looking at a URL will not tell you if the left most node is a host or a subdomain.

Subdomains are often used by website builders. They sometimes give away subdomains to their clients who do not have their own domain. This also lets the website builder gain publicity.

Uses

In the United Kingdom, the second-level domain names are standard and branch off from the top-level domain. For example:

Subdomains are also used by organizations that wish to assign a unique name to a particular department, function, or service related to the organization. For example, a university might assign "cs" to the computer science department, such that a number of hosts could be used inside that subdomain, such as mail.cs.example.edu or www.cs.example.edu.

Vanity domain

A vanity domain is a subdomain of an ISP's domain that is aliased to an individual user account, or a subdomain that expresses the individuality of the person on whose behalf it is registered.

Server cluster

Depending on application, a record inside a domain, or subdomain might refer to a hostname, or a service provided by a number of machines in a cluster. Some websites use different subdomains to point to different server clusters. For example, www.example.com points to Server Cluster 1 or Datacentre 1, and www2.example.com points to Server Cluster 2 or Datacentre 2 etc..

Some domains host their nameservers as ns1.example.com, ns2.example.com, etc., and these do not typically show up in search engine results.

Subdomains versus directories

Subdomains are different from directories. For example, example.com/yn points to a directory within the example.com domain, not to a subdomain of example.com.

gollark: It's a text generation algorithm!
gollark: Also, protists are a healthy part of a balanced diet, and you should try some.
gollark: There are probably copies of everything floating around on the internet now, though.
gollark: Hmm, they seem to have stopped that? There's a list of the textbooks which *were* free here: https://link.springer.com/search?facet-content-type=%22Book%22&package=mat-covid19_textbooks&facet-language=%22En%22&sortOrder=newestFirst&showAll=true
gollark: There was also that Springer free textbook thing if it's still on.

See also

References

  1. P. Mockapetris (November 1987). "Name space specifications and terminology". Domain names - concepts and facilities. IETF. sec. 3.1. doi:10.17487/RFC1034. RFC 1034. Retrieved 2008-08-03.
  2. RFC 1035, Domain names--Implementation and specification, P. Mockapetris (Nov 1987)
  3. "BBC News - UK court systems set to adopt judiciary.uk domain names". BBC News. 23 November 2011. Retrieved 26 February 2014.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.