DNS & Domain Names

Top-Level Domains Explained: gTLDs, ccTLDs and Newer Endings

Understand the kinds of domain endings, who runs them, which have special rules and how to choose one that suits your site.

Key takeaways

  • Generic TLDs such as .com and .org operate under ICANN contracts, while two-letter country codes follow national rules.
  • Some endings are restricted to particular communities, and some two-letter codes are marketed globally despite belonging to a country or territory.
  • Eligibility, pricing, grace periods and dispute processes differ between endings, so read the registry's rules.
  • A few names such as .test, .example, .invalid and .localhost are reserved and should be used for their intended purposes.

A top-level domain, or TLD, is the last label in a domain name: the com in example.com or the uk in example.co.uk. Endings fall into a few families, mainly generic ones that anyone can often use and country codes tied to a place. Each is run by a registry that sets its rules and wholesale pricing.

For your own site, the ending affects what people expect, who may register, how disputes work and what you'll pay to keep the name. It matters much less to how the technology behaves: a name under any ending resolves the same way.

Where TLDs sit in the tree

The domain name system is a hierarchy. At the top is the root, usually invisible, written as a final dot. Directly below it are the TLDs. Below those are the names people register, and below those are whatever subdomains the holders create.

The root zone lists each TLD and the name servers that answer for it. The Internet Assigned Numbers Authority, or IANA, a function operated under ICANN, maintains the public database of these delegations. For how the very top works, see root servers and the top of the DNS tree.

The families of top-level domains
DNS root Delegates every ending to its operator. Infrastructure .arpa, used for technical functions. Newer generic Descriptive words and brand names added later. Generic Such as .com, .net and .org. Country code Two letters tied to a country or territory. Sponsored or restricted Limited to a community, such as .edu or .gov. DNS root Delegates every ending to its operator. Generic Such as .com, .net and .org. Country code Two letters tied to a country or territory. Sponsored or restricted Limited to a community, such as .edu or .gov. Newer generic Descriptive words and brand names added later. Infrastructure .arpa, used for technical functions.

Generic top-level domains

The oldest generic endings include .com, originally meant for commercial entities, .net for network operators and .org for organizations that didn't fit elsewhere. Those intentions are no longer enforced for the three of them, and anyone can register.

Each generic TLD has a registry operator working under an agreement with ICANN. Registrations go through accredited registrars, and common policies apply, including the Uniform Domain-Name Dispute-Resolution Policy for trademark complaints and rules about expiry notices and transfers. The roles are laid out in how domain registration works.

Country-code top-level domains

Country-code TLDs, or ccTLDs, are two letters, generally based on the ISO 3166-1 list of country and territory codes. Examples include .de for Germany, .jp for Japan, .br for Brazil and .us for the United States. The United Kingdom's familiar .uk is a long-standing exception to the exact ISO code.

Each country or territory decides how its code is run, and the differences are large:

  • Eligibility. Some require residence, citizenship or a local business.
  • Structure. Some offer registrations directly under the code, some under second-level categories like co or ac, and many offer both.
  • Policy. Content rules, dispute processes and privacy defaults are local.
  • Lifecycle. Renewal windows, redemption and transfer methods may differ from generic domains.

Country codes used as generic endings

Several two-letter codes happen to spell something useful. .io, .tv, .ai, .me and .co are widely used by people with no connection to the places they represent. That's allowed under those registries' policies, but remember that the ending still belongs to a national or territorial arrangement. Political changes, policy changes or price changes at that registry affect you. Before building a long-lived brand on one, check the current rules.

Restricted and sponsored endings

Some endings are limited to a defined community. .edu is reserved for eligible educational institutions, mainly accredited ones in the United States. .gov is for United States government bodies, and .mil for its military. Other countries use second-level names for similar purposes, such as gov.uk. .int is for certain international organizations.

Restrictions give an ending a degree of trust, since not just anyone can register. That trust is about who holds the name. It doesn't guarantee that a particular page or email is safe, because accounts can still be compromised.

The newer endings

ICANN has run rounds that allowed organizations to apply for new generic TLDs. The large round that opened in 2012 added hundreds of endings, from ordinary words to city names and company brands. Further application rounds have been planned, so the list continues to change. Check ICANN's published materials for the current state.

Some endings have special technical behavior. .app and .dev are on the HSTS preload list built into major browsers, so sites under them must be served over HTTPS. See HSTS explained.

Brand endings are usually closed: only the company that holds them can create names there. Community and geographic endings may have eligibility checks.

Who can register, and how rules are set
Open generic Anyone, under ICANN-based common policies. Restricted generic Eligibility checks or closed brand use, under ICANN contracts. Open country code Anyone, under national or territorial policies. Restricted country code Local presence or category required, under national policies. Open generic Anyone, under ICANN-based common policies. Restricted generic Eligibility checks or closed brand use, under ICANN contracts. Open country code Anyone, under national or territorial policies. Restricted country code Local presence or category required, under national policies.

Reserved and special-use names

A few names are set aside and are never to be delegated for ordinary use. RFC 2606 and RFC 6761 describe them:

Name Intended use
.test Testing DNS and software
.example Documentation, along with example.com, example.net and example.org
.invalid Names that are guaranteed not to work
.localhost The local machine

The .local name is used by multicast DNS for discovering devices on a local network, so using it for a conventional office DNS zone causes conflicts. .onion is reserved for Tor services. For your own internal network, home.arpa is designated for residential use by RFC 8375, or you can use a subdomain of a domain you own.

Inventing a private ending is risky. A name that is unused today could be delegated later, and queries for it can leak to the public DNS.

Non-Latin endings

TLDs aren't limited to the Latin alphabet. Internationalized top-level domains exist in scripts such as Arabic, Cyrillic, Chinese and Devanagari, including internationalized versions of some country codes. In the DNS itself they are carried in an ASCII form beginning with xn--, and browsers decide when to show the native characters.

These endings let people use a whole address in their own writing system. Support still varies. Some web forms reject them, and some mail systems handle them poorly. Test the places where your audience will actually type the address. Internationalized domain names explains the encoding and the look-alike risk that comes with mixing scripts.

How a TLD affects what you depend on

The registry behind your ending is a dependency you seldom think about. If its name servers had trouble, names under it would become hard to resolve once cached delegations expired. Large registries run their name servers from many locations to avoid that, and DNS caching cushions short problems.

Policy is the slower risk. A registry can change prices within its agreements, revise acceptable use rules or come under new management. A country-code operator also answers to its national law, which may allow suspensions that you wouldn't expect elsewhere. None of this is a reason to avoid a particular family of endings. It is a reason to skim the registration terms before a name goes on your signs, and to keep an eye on notices from your registrar.

You can see who operates an ending by looking it up in the IANA root zone database, which lists the sponsoring organization and technical contacts. From a terminal on macOS or Linux, you can also list the name servers for an ending:

dig org NS +short

Choosing an ending

Work from your audience outward. A local business that serves one country often benefits from the country code that residents recognize. An international project usually picks a generic ending. A descriptive new ending can work well when the full name reads as a phrase and your audience is comfortable with it.

Then check the practical points:

  1. The renewal price, and whether the name is classed as premium.
  2. Eligibility, and what happens if you stop qualifying.
  3. Whether your registrar supports DNSSEC and transfers for that ending.
  4. The dispute process.
  5. Whether common forms on other sites accept the ending, since some old validators reject unfamiliar ones.

The broader method is in how to choose a domain name.

Endings and safety

Attackers register names under many endings, and no ending proves that a site is honest or dishonest. Judge the whole name. In example.com.account-check.net, the real domain is account-check.net, and everything before it is a subdomain its holder invented. Read from the right. Spotting fake login pages goes further.

Holding your own brand under one ending also leaves the others open. Decide which few are worth registering defensively and watch for typosquats among the rest.

If you use more than one ending

Many organizations end up with the same name under two or three endings. Pick one as the primary address and permanently redirect the others to the matching pages on it. Use the primary one consistently on printed material, in email and in links, so that people learn a single form.

Each extra name still needs care. It has its own renewal date, its own DNS records and potentially its own certificate for the redirect to work over HTTPS. A name that sends no mail should publish records saying so. Keep them all in one inventory with the registrar and renewal date beside each.

Common questions

Does the ending affect search rankings?

Search engines treat most generic endings alike. A country code can signal that a site is aimed at that country, which helps local relevance and may be a limitation for a global audience. Some country codes that are widely used generically are treated as generic by certain search engines. Check their current guidance.

Is co.uk a top-level domain?

No. The TLD is uk, and co is a second-level label under which the registry accepts registrations. Software that needs to know where registrable names begin often relies on the community-maintained Public Suffix List, which records such boundaries.

Written for 4Internet with AI writing tools and not reviewed line by line by a person. Check anything you rely on with the maker, provider or standard concerned. Report an error.

Keep reading

All 45 articles in DNS & Domain Names →

Latest news on this topic