From Wikipedia, the free encyclopedia
  (Redirected from Sub-domain)
Jump to: navigation, search
For a protein domain inside of a larger domain, see Protein domains.

In the Domain Name System (DNS) hierarchy, a subdomain is a domain that is part of a larger domain.[1]


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] For example, and are subdomains of the domain, which in turn is a subdomain of the com top-level domain (TLD). A "subdomain" expresses relative dependence, not absolute dependence: for example, comprises a subdomain of the org domain, and comprises a subdomain of the domain In theory, this subdivision can go down to 127 levels deep, and each DNS label can contain up to 63 characters, as long as the whole domain name does not exceed a total length of 255 characters. But in practice most domain registries limit at 253 characters.[citation needed]

A resource record, such a A(host), CNAME(alias) or MX (mail), should not be confused with a subdomain node. A subdomain does not point to any specific server location, while most resource records do (resource records that do not point to specific hosts contain specific data).[2] For example, would be a subdomain of While would be a host in the domain, dev-server-1 would not be a subdomain. Confusion on this point is being created because some web hosting and marketing companies (that lack technical expertise) are using incorrect terminology when requesting creation of host and cname records.


In the United Kingdom, the third level domain names are standard and branch off of the second-level domains, for example: - academic (tertiary education, further education colleges and research establishments) and learned societies - general use (usually commercial) - government (central and local) - courts (to be introduced in the near future)[4] - limited companies - general use (usually personal) - Ministry of Defence and HM Forces public sites - ISPs and network companies (unlike .net, use is restricted to these users) - National Health Service institutions - network use only (Nominet UK) - general use (usually for non-profit organisations) - parliamentary use (only for the UK Parliament and the Scottish Parliament) - public limited companies - police forces[5] - Local Education Authorities, schools, primary and secondary education, community education

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 or

Vanity domain[edit]

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[edit]

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, points to Server Cluster 1 or Datacentre 1, and points to Server Cluster 2 or Datacentre 2, etc..

Subdomains v. directories[edit] points to a directory within the domain, not to a subdomain of

See also[edit]