ArticleslgStudy

science

Subdomain

Subdomain is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Subdomain rather than just read about it. In short: In the Domain Name System (DNS) hierarchy, a subdomain is a domain that is a part of another (main) domain. For example, if a domain offered an online store as part of their website example.com, it might use the subdomain shop.example.com.

Subdomain — main illustration
Subdomain — illustration

Key takeaways

  • Subdomain belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Subdomain to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Subdomain from memory before moving on to harder problems.

Reference excerpt

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

Overview The Domain Name System (DNS) uses a tree structure or hierarchy, where the nodes on the tree are domain names. Within this hierarchy, each node represents a domain name, and a subdomain is defined as a subset of a higher-level domain. Each label may contain from 0 to 63 octets. The full domain name may not exceed a total length of 253 ASCII characters in its textual representation. Subdomains are typically configured through modifications to the DNS zone file of the parent domain. These modifications can define various record types, including A (Address) records, CNAME (Canonical Name) records, and NS (Name Server) records. There is some debate in the networking community regarding the proper use of the term "subdomain." Some network professionals define subdomains strictly as names delegated via NS records, while others include any types of zone records which may map to any public IP address destination and any type of server. 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). Most domain registries only allocate a two-level domain name. Hosting services typically provide DNS Servers to resolve subdomains within that master domain. Many website hosting and content management platforms assign subdomains by default. For example, services such as Wix, GitHub Pages, Webador, Webnode, and Jimdo often provide subdomains under their primary domain (e.g., username.wixsite.com) as part of free or entry-level hosting plans.

A fully qualified domain name (FQDN) consists of multiple parts. For example, take the English Wikipedia domain en.wikipedia.org. The en is a subdomain of wikipedia.org. Although wikipedia.org is usually considered to be the domain name, wikipedia is actually a sub-domain of the org TLD (top level domain). Any fully qualified domain name can be a host or a subdomain. A domain name that does not include any subdomains is known as an apex domain, root domain, or bare domain. For example, wikipedia.org is the apex domain of Wikipedia, which redirects to the subdomain www.wikipedia.org.

Techniques Subdomain enumeration refers to the process of identifying subdomains associated with a given domain. This can be accomplished through a variety of methods, including the use of automated tools such as Amass and Subfinder, which leverage open-source intelligence and SSL certificate data to uncover subdomains. Google Dorking, using the "site:" operator, allows for manual searches of indexed subdomains, while brute force techniques systematically query DNS servers with potential names. Passive DNS reconnaissance through APIs from services like SecurityTrails & Subdomain Center can reveal historical data without direct queries. Additionally, community resources such as GitHub and Pastebin may contain publicly available lists of subdomains.

Subdomain usage

Subdomains are often used by Internet service providers (ISPs) supplying web services. They allocate one (or more) subdomains to their clients who do not have their own domain name. This allows independent administration by the clients over their subdomain. 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 www.cs.example.edu. There are some widely recognized subdomains such as WWW and FTP. This allows for a structure where the domain contains administrative directories and files including the FTP directories and webpages. The FTP subdomain could contain logs and the web page directories, while the WWW subdomain contains the directories for the webpages. Independent authentication for each domain provides access control over the various levels of the domain.

Uses

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

.ac.uk: academic (tertiary education, further education colleges and research establishments) and learned societies .co.uk: general use (usually commercial) .gov.uk: government (central and local) .judiciary.uk: courts (to be introduced in the near future) .ltd.uk: limited companies .me.uk: general use (usually personal) .mod.uk: Ministry of Defence and HM Forces public sites .net.uk: ISPs and network companies (unlike .net, use is restricted to these users) .nhs.uk: National Health Service institutions .nic.uk: network use only (Nominet UK) .org.uk: general use (usually for non-profit organisations) .parliament.uk: parliamentary use (only for the UK Parliament and the Scottish Parliament) .plc.uk: public limited companies .police.uk: police forces .sch.uk: Local Education Authorities, schools, primary and secondary education, community education

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.

Subdomains vs. directories Subdomains are different from directories. Directories are physical folders on an actual computer, while subdomains are a part of the URL that can be routed to any file or folder on the server machine.

See also Domain name Hostname Subdirectory Subpage Vanity domain Webpage

References

Worked examples

Example 1 — a first encounter with Subdomain

Start with the simplest possible case. Write down what Subdomain claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Subdomain before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Subdomain ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Subdomain

In research
Subdomain appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Subdomain in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Subdomain is common in secondary-school and first-year university syllabi. It links to neighbouring topics Domain Name System, so understanding it makes those chapters shorter.
In everyday life
Look for Subdomain outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Subdomain” →

How to study Subdomain in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Subdomain means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Subdomain out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Subdomain in simple terms?

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

Why does Subdomain matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Subdomain?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Subdomain.

Tags

  • Domain Name System

Keep exploring