keepcalculator

06 Numbers and Powers

Second-Level Domain: What It Means Before the TLD

Card No. 06·29449 · Updated · Standard formula, shown below

A second-level domain (SLD) is usually the label immediately to the left of a top-level domain (TLD), such as “example” in example.com. The exact label that counts as the SLD depends on how the domain name is structured and on the public suffix rules used to identify its registrable part.

What a Second-Level Domain Is

Domain names are read from right to left in levels, with dots separating labels. In the familiar name example.com, com is the TLD and example is the second-level domain. “Second-level” describes the label’s position in that hierarchy; it does not mean the second word in a website address or a particular kind of website.

Each label is a separate part of a domain name. For shop.example.com, the labels are shop, example, and com. Under the usual description, com is the TLD, example is the SLD, and shop is a subdomain of example.com.

How Domain Levels Work

The Domain Name System (DNS) is hierarchical. At the top is the root, represented in technical notation by a final dot, which browsers normally omit. Directly beneath the root are TLDs such as com, org, and country-code TLDs such as uk and jp. Names can then be registered or delegated below a TLD, and further labels can be added as subdomains.

For example, in news.example.com, the DNS hierarchy can be pictured as:

  • . — the DNS root
  • com — the top-level domain
  • example — the label commonly called the second-level domain
  • news — a subdomain label

A label’s position is relative to the root, not to the left edge of the address. This is why counting from left to right can lead to confusion.

Why the Answer Can Change with the Suffix

The simple “label before the TLD” description works for names such as example.com, but not every public domain suffix is one label long. In example.co.uk, uk is the TLD and co is one level below it. However, many users and registration systems treat co.uk as a public suffix: the shared ending under which separate registrants can register names. In that context, example is the registrable label, often called the effective second-level domain.

Therefore, asking for “the SLD” can mean either the literal label directly beneath the TLD or the registrable name immediately before a recognized public suffix. Those meanings match for example.com, but can differ for multi-label suffixes such as co.uk. Country-code domains have varied structures; not every country uses the same pattern.

When the distinction matters—for example, when grouping websites by site owner or applying cookie rules—software commonly consults a maintained public suffix list rather than simply taking the two rightmost labels. That list captures suffix patterns that are meaningful for registration or browser behavior. It is not itself a complete list of every domain name that exists.

How to Identify the Label

For a basic example with a single-label TLD, find the final label and then look one label to its left. In my.site.net, net is the TLD, site is the SLD, and my is a subdomain. For a suffix with multiple labels, first determine which ending is treated as the public suffix.

  1. Separate the hostname into labels at each dot.
  2. Identify the TLD, the rightmost label, such as com or uk.
  3. Check whether the domain uses a recognized multi-label public suffix, such as co.uk.
  4. Distinguish the literal DNS level from the registrable domain if the question concerns ownership, cookies, or site grouping.

Do not include the protocol or path when identifying domain labels. In https://shop.example.com/products, the hostname is shop.example.com; https is the scheme and /products is a path, not part of the domain.

Common Misunderstandings

  • “The SLD is always the word immediately before .com.” That is true for a direct example such as example.com, but a domain with a multi-label suffix needs more care.
  • “A subdomain is part of the SLD.” In blog.example.com, blog is a subdomain label; example is the usual SLD under com.
  • “The SLD and the registrable domain always mean the same thing.” They often coincide in everyday examples, but technical contexts may distinguish a DNS level from the name registered beneath a public suffix.
  • “A domain name is the same as a complete web address.” A URL can include a scheme, hostname, port, path, query, and fragment. Only the hostname contains the domain labels.

Another point of confusion is that a domain label is not necessarily a single dictionary word. It may contain letters, digits, or hyphens, subject to domain-name rules, and a registered name can be chosen for many purposes. The label’s position—not its meaning—determines its level.

Frequently Asked Questions

Is the second-level domain the name before .com?
In a name such as example.com, yes: example is the SLD and com is the TLD.

What is the second-level domain in example.co.uk?
It depends on the definition. Literally, co is directly below the TLD uk. For the common public-suffix interpretation, co.uk is the suffix and example is the registrable label.

Is www a second-level domain?
Usually not. In www.example.com, www is a subdomain label, while example is the SLD under com.

How do I find the SLD in a URL?
First isolate the hostname and ignore the scheme, path, and query. Then identify the TLD and any multi-label public suffix; the relevant label is immediately to its left.

Can a domain have more than one subdomain?
Yes. A hostname such as status.eu.example.com has multiple labels to the left of example.com; those labels can form nested subdomains.

Why the Distinction Matters

Knowing which label is the SLD helps when reading DNS names, configuring subdomains, discussing domain registration, or interpreting technical documentation. For an ordinary address like example.com, the quick answer is straightforward: example is the second-level domain, the label before the TLD. For suffixes with several labels, state whether you mean the literal DNS level or the registrable domain, so the answer is precise.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →