designwithfocus

Domains, hosting & DNS

What Is a Domain Name? Labels Before the IP Address

By Design With Focus Team 6 min read
A domain name split into labels with an IP address underneath

Short answer

A domain name is a human-readable label for an address on the Internet, used in place of a numeric IP address. ICANN says it is the unique name behind URLs for pages, mail servers, and other resources. DNS maps the label to records. You pay a registrar for the right to use a name for a period. You do not buy the name outright.

Last verified against the sources listed below.

Key takeaways

  • ICANN defines a domain name as the unique name that identifies an address on the Internet.
  • Labels are read from the right. The rightmost label is the top-level domain.
  • MDN limits a label to 1 through 63 characters: letters, digits, and inner hyphens.
  • In email, RFC 5321 writes the mailbox as local-part@domain.
  • RFC 1034 ties cache time to the TTL. It suggests on the order of days, not a fixed hour count.

What is domain name? It is the label people type instead of a numeric IP address. ICANN calls it the unique name that identifies an address belonging to a company, an organization, or a person.

Web hosting is the server a name can point at. The name and the server are different purchases.

Piece What it is Example from the docs
Domain name The label people use instead of an IP address icann.org in ICANN’s glossary
Top-level domain The rightmost label org in icann.org
DNS lookup The query that returns records for the label mozilla.org to an address, in MDN
Email domain The part after @ in a mailbox local-part@domain in RFC 5321

What is a domain name in a website?

In a website address, the domain name is the part that identifies the site, not the path after it.

ICANN’s glossary uses the URL https://www.icann.org/public-comments. The domain name is icann.org, and the rest of the URL points at one resource, the public comments page.

In icann.org, icann is a second-level domain inside the top-level domain org. A longer name such as bbc.co.uk adds a subdomain in front of those two labels.

MDN’s domain name guide says any public computer can be reached by an IPv4 address such as 192.0.2.172 or an IPv6 address, and that people handle names more easily than those numbers. Addresses can also change. The name is the stable label.

Top-level domain names are the rightmost label. MDN says a label is 1 to 63 characters, using letters, digits, and hyphens that are not first or last, and labels are case-insensitive.

A top-level domain’s maximum length is also 63 characters. ICANN keeps the list. Some, such as .gov and .edu, are restricted, and others, such as .com, are not tied to one kind of site.

IANA operates the root zone, which delegates those top-level domains. That delegation is what makes the rightmost label exist in the public system.

What is the domain name system?

The domain name system is the lookup that turns the label into records, usually an IP address.

ICANN’s DNS entry says every computer has an IP address that is hard to remember, and that the DNS lets you use the name instead. Its example is https://icann.org rather than 192.0.43.7.

MDN’s DNS glossary calls this a hierarchical, decentralized naming system, and it calls the translation a DNS lookup. The domain name guide then walks a browser through the steps.

The computer checks its local cache. If the name is missing, it asks a DNS server which address matches the name, and the browser talks to that address.

RFC 1034 introduced this system in 1987, replacing a single hosts file that every machine copied. It says the official protocol includes standard queries and their responses. Resolvers ask name servers. A server that cannot answer refers the client onward, or, if recursion is offered, pursues the query itself.

What is a domain name in email?

In an email address, the domain name is the part after the @ sign.

RFC 5321 says the standard mailbox form is local-part@domain. The local-part is interpreted only by the host named in the domain part.

A domain in SMTP is one or more labels separated by dots, and a top-level domain used alone has no dot. On the public internet the name must resolve to a mail exchanger or an address record.

RFC 1034’s introduction says domain names were built for Internet mail and for host addresses. The same label can appear in a browser and after an @ sign. The website record and the mail record are different data. Pointing the name at a web server does not, by itself, choose where mail is delivered.

What is domain name propagation?

Propagation is caches catching up. The interval is the TTL, not a default of 24 or 48 hours.

RFC 1034 says the TTL is a time limit on how long a record may stay in a cache. The administrator of the zone sets it, and a zero TTL prohibits caching.

The RFC says these times should be on the order of days for a typical host. You can lower the TTL before a planned change, then raise it again. Copies already stored under the old TTL are not shortened by a later edit.

MDN’s registration steps say that within a few hours, DNS servers will have received the new information, and the later section says each server stores what it knows until that copy is invalidated and refreshed. A few hours is MDN’s phrase for the registration case. On the order of days is RFC 1034’s phrase for a typical TTL. Neither sentence is a rule that every change takes 24 hours or 48 hours.

What else should you set up after the name works?

MDN also says you can ask a registrar, or run whois, to learn whether a name is already taken. Its sample for mozilla.org shows a creation date and a sponsoring registrar, and a missing name comes back as not found. That check is about registration, not about which IP address the name currently publishes.

Once the name resolves, the site it points at can carry a small icon in the browser tab.

The favicon generator makes that icon in the browser. The icon is not part of the domain name. DNS still only maps the label. The icon is a file on the host the label points at.

Frequently asked questions

Do you own a domain name after you pay?

MDN says you do not buy a domain name outright, because unused names should become available again. You pay for the right to use it for one or more years, and renewal has priority over someone else's application. The fee, the renewal, and some transfer rules live in your agreement with the registrar. When that right lapses, the name can be registered again.

Can a domain name be a single label?

ICANN says a domain name has two or more segments, as in icann.org or bbc.co.uk. RFC 5321 adds a mail case: a top-level domain used alone in an email address is a single string with no dots. MDN says a name might be one, two, or three parts, read from the right, and three labels are not required. The rightmost label is still the top-level domain.

What is the difference between a name and a website?

ICANN says registering a name does not give you a website. You still need hosting before the site is reachable. The name is the label, hosting is the server, and DNS records connect the two. A name can point at a mail exchanger with no website. RFC 1034 introduced domain names for both mail and host addresses, so one label can do more than one job.

Does every DNS change take the same amount of time?

No. RFC 1034 says the zone administrator assigns the TTL, which limits how long a resolver may cache a record. A zero TTL prohibits caching, and the RFC says typical times should be on the order of days. MDN says that after a registration, DNS servers receive the information within a few hours, then each keeps a copy until it is invalidated. Neither statement is a universal 24-hour or 48-hour clock.

Who runs the top of the naming system?

IANA says it operates the DNS root zone, which delegates the top-level domains, the last segment of a name. ICANN coordinates the unique identifiers and accredits registrars for generic top-level domains. The registry operator keeps the database for one of those domains. Your registrar is who you pay. None of those parties is the same thing as the website host the name eventually points at.

Sources