A domain name has hierarchical levels that are read from right to left: the first level is the extension (.com), the second is the name you register (yourbusiness), and the third is a prefix you create yourself, called a subdomain (blog). Each dot in the URL marks the start of a new level.
Below you'll find the exact definition of each level, their key differences, and real-world examples so you can identify them immediately.
How to Read the Hierarchy of a Domain
Before looking at each level separately, it helps to understand the big picture. Take this full URL:
https://blog.yourbusiness.com.mx/article
Stripping the protocol (https://) and path (/article), the domain is:
blog.yourbusiness.com.mx
Read from right to left:
.mx→ first level (country TLD).com→ secondary second level (part of a compound second-level domain)yourbusiness→ primary second level (the name you registered)blog→ third level (subdomain you created)
The Domain Name System (DNS) resolves names in exactly that order, from the most general to the most specific.
First Level: The TLD (Top-Level Domain)
The first-level domain, known as a TLD (Top-Level Domain), is the extension that appears at the end of the domain, after the last dot. It is managed by an official registry accredited by ICANN.
Types of TLD
| Type | Examples | Description |
|---|---|---|
| gTLD (generic) | .com, .org, .net, .info |
No geographic restriction; general use |
| ccTLD (country code) | .mx, .es, .ar, .co |
Assigned to a specific country or territory |
| sTLD (sponsored) | .edu, .gov, .mil |
Restricted to specific communities or institutions |
| new gTLD | .store, .agency, .tech |
New extensions approved since 2012 |
No individual can privately register an entire TLD for a standard website. TLDs are administered, not registered, by authorized organizations.
Second Level: The Name You Register
The second-level domain (SLD) is the name that appears immediately to the left of the TLD. It's the part you choose and register, and it's unique within its TLD.
Examples:
- In
google.com→googleis the SLD. - In
government.mx→governmentis the SLD. - In
wikipedia.org→wikipediais the SLD.
An SLD can contain letters (a–z), numbers (0–9), and hyphens (-), but cannot start or end with a hyphen or have two consecutive hyphens in positions 3 and 4 (reserved for IDN encoding). The maximum length is 63 characters.
Compound Second-Level Domains (SLD + ccTLD)
Some countries use a two-part structure before the ccTLD, known as a delegated second-level domain:
.com.mx— commercial use in Mexico.org.mx— organizations in Mexico.co.uk— businesses in the United Kingdom.com.ar— commercial use in Argentina
In these cases, the name the user registers sits technically at the third DNS level (yourbusiness.com.mx), but in practice it is treated and managed exactly like a conventional second-level domain. This detail is why some people find the concept of "third level domain" confusing.
Third Level: The Subdomain
The third-level domain — more commonly called a subdomain — is the prefix that appears to the left of the second-level domain, separated by a dot. It is not registered separately: the domain owner creates it directly from their DNS or hosting control panel.
Common examples:
www.yourbusiness.com— thewwwsubdomain (the classic one; nowadays it usually redirects to the root domain)blog.yourbusiness.com— standalone blog sectionshop.yourbusiness.com— online store on a separate installationapp.yourbusiness.com— web application or client portalmail.yourbusiness.com— mail serverdev.yourbusiness.com— development or staging environment
What Is a Subdomain Used For?
Subdomains let you organize a site into sections with entirely different content or technology stacks without needing to register additional domains. A subdomain can point to a different server, run its own software installation, and from Google's perspective functions as a semi-independent entity — with SEO implications worth considering.
If you want expert advice on whether subdomains or subdirectories are the right call for your project, the team at elenlace.com can guide you based on your specific goals and content strategy.
Can There Be a Fourth Level?
Technically, yes: a fourth level would be a subdomain of a subdomain, such as test.blog.yourbusiness.com. DNS supports it without any issues. In practice, fourth-level domains are rare on public websites because they add complexity without a clear benefit. They are more common in corporate internal networks or in infrastructure service naming conventions.
Side-by-Side Comparison
| Level | Example | Who manages it? | Requires registration? |
|---|---|---|---|
| First level (TLD) | .com, .mx |
Official registry (Verisign, NIC México…) | No (only administered) |
| Second level (SLD) | yourbusiness |
Accredited registrar | Yes, with annual fee |
| Third level (subdomain) | blog |
Owner of the 2nd-level domain | No, created freely in DNS |
Key Takeaways
- Domain levels are read from right to left: first level (TLD), second level (the name you register), third level (the subdomain you create).
- The TLD is the extension managed by an official registry; no one "registers" it for a standard website.
- The second-level domain is the unique name you contract with a registrar and pay for annually.
- The subdomain (third level) is created free of charge by the domain owner from the DNS panel; no separate registration is required.
- Some countries use compound extensions like
.com.mx, which place the site name technically at the third DNS level, though they are managed identically to a conventional second-level domain. - Fourth-level domains exist technically but are rare on public sites.
Not sure whether to use subdomains, subdirectories, or separate domains for your next project? Get a clear recommendation from the specialists at elenlace.com — tailored to your architecture and SEO goals.
FAQ
Is the "www" subdomain required?
No. www is simply the most traditional third-level subdomain, inherited from the early days of the web. Today most sites work just as well without it. Best practice is to configure both www.yourbusiness.com and yourbusiness.com and have one redirect to the other with a 301 redirect to consolidate SEO signals on a single version.
Does a subdomain affect the SEO of the main domain?
Google treats subdomains as semi-independent entities, which means authority does not flow as freely as it does between a domain and its subdirectories. For content you want to strengthen the main site's rankings, subdirectories (e.g., yourbusiness.com/blog/) are generally more efficient. Subdomains make more sense when the content is genuinely independent — like a separate app, a different platform e-commerce store, or a staging environment.
How many subdomains can I create?
There is no DNS-imposed limit; you can create as many as you need. In practice, the limit is determined by your server resources and the coherence of your web architecture. There is no extra cost for creating subdomains, as they are managed within your main domain's DNS panel.
What is a delegated second-level domain?
It's a compound extension used in certain countries, such as .com.mx, .co.uk, or .com.ar. It functions like a two-part TLD: the site name goes before both parts. Although the name technically sits at the third level of the DNS tree, it is managed and perceived the same as a standard second-level domain. Browse our domain articles to explore more about TLD types and extension strategy.
Compare providers
Other providers and guides worth comparing: