Skip to main content
DNS Explained – Complete Beginner to Advanced Guide
CHAPTER 05 Beginner

Domain Names and TLDs

Updated: May 15, 2026
15 min read

# CHAPTER 5

Domain Names and TLDs

1. Introduction

When you type blog.google.co.uk, you are typing a highly specific geographical and organizational coordinate. A domain name is not just a random string of text; it is a meticulously structured hierarchy designed to be read by machines from right to left. To manage DNS effectively, you must understand the anatomy of a URL. In this chapter, we will dissect the structure of domain names, explore the booming industry of Top-Level Domains (TLDs), differentiate between generic and country-code extensions, and define how subdomains are used to organize enterprise web infrastructure.

2. Learning Objectives

By the end of this chapter, you will be able to:
  • Dissect the anatomy of a URL into its Root, TLD, Second-Level Domain, and Subdomain.
  • Differentiate between gTLDs (Generic) and ccTLDs (Country-Code).
  • Understand the administrative process of Domain Registration and ICANN's role.
  • Explain the architectural purpose of creating Subdomains.

3. Beginner-friendly Explanations

Reading Backwards: Humans read from left to right. DNS reads from right to left, starting at the broadest category and narrowing down to the specific computer.

Let's dissect: shop.amazon.com.

  1. 1. . (The Root): The invisible dot at the end. It represents the entire internet.
  1. 2. com (The TLD): The Top-Level Domain. It narrows the search to commercial websites.
  1. 3. amazon (The Second-Level Domain): The specific brand or company you registered.
  1. 4. shop (The Subdomain): A specific sub-section or server created by Amazon's IT department.

4. TLDs: Top-Level Domains

The TLD is the extension at the end of the domain. Historically, there were only a few, highly categorized TLDs.
  • gTLDs (Generic TLDs):
  • .com (Commercial)
  • .org (Non-profit organizations)
  • .net (Network infrastructure)
  • .edu (Strictly reserved for accredited universities)
  • .gov (Strictly reserved for the US government)

The Modern TLD Explosion: Because all the good .com names were taken, ICANN (the governing body of the internet) opened the floodgates in the 2010s. Now, you can register thousands of bizarre gTLDs, such as .app, .io, .pizza, .ninja, and .tech.

5. ccTLDs: Country-Code TLDs

Every country in the world is assigned a unique two-letter TLD to manage its own internet infrastructure.
  • .uk (United Kingdom)
  • .ca (Canada)
  • .jp (Japan)
  • .au (Australia)

*Fun Fact:* Some countries monetize their ccTLDs! The .io extension technically belongs to the British Indian Ocean Territory, but the tech industry adopted it because "IO" stands for Input/Output. The small island nation of Tuvalu (.tv) makes millions of dollars leasing its extension to television networks and Twitch streamers.

6. Subdomains

When you buy a domain like mycompany.com, you have total authority over it. You do not need to pay extra money to create subdomains. A Subdomain is simply a new prefix you attach to your domain to organize different web servers.
  • www.mycompany.com (Your main website)
  • blog.mycompany.com (A separate WordPress server)
  • api.mycompany.com (A separate backend database server)
  • mail.mycompany.com (Your email server)
From a DNS perspective, blog.mycompany.com is treated as a completely different website than www.mycompany.com, allowing you to route them to entirely different IP addresses.

7. Domain Registration (How Buying Works)

You cannot "buy" a domain permanently; you lease it.
  1. 1. ICANN: The global organization that manages all names.
  1. 2. The Registry: A massive company (like Verisign) that manages the master database for a specific TLD (e.g., all .com names).
  1. 3. The Registrar: A retail company (like GoDaddy, Namecheap, or Cloudflare) that sells domains to the public. They take your money and register your name with the Registry for 1-10 years.

8. Best Practices

  • Domain Privacy (WHOIS Protection): When you register a domain, international law requires your name, home address, and phone number to be entered into a public database called WHOIS. Scammers scrape this database constantly. You must always enable "Domain Privacy" at checkout, which replaces your personal info with the Registrar's proxy info.

9. Common Mistakes

  • Assuming www is Mandatory: Beginners often think a website URL *must* include www. www is just a completely optional, historical subdomain (standing for World Wide Web). You can map your root domain (mycompany.com, also called the "Apex" or "Naked" domain) directly to your web server without ever using www.

10. Mini Project: Audit a URL Hierarchy

Analyze this complex URL: https://mail.student.ox.ac.uk
  1. 1. .uk: The Country-Code TLD (United Kingdom).
  1. 2. .ac: A sub-TLD used in the UK for Academic institutions.
  1. 3. .ox: The Second-Level Domain registered by Oxford University.
  1. 4. .student: A subdomain managed by Oxford for the student body.
  1. 5. .mail: A sub-subdomain pointing to the specific email server.

11. Practice Exercises

  1. 1. Categorize the following as a gTLD or a ccTLD: .org, .fr, .io, .gov, .de.
  1. 2. If you own startup.com, do you need to pay ICANN to register app.startup.com? Why or why not?

12. MCQs with Answers

Question 1

What does the acronym ICANN stand for in the context of domain registration?

Question 2

In the domain payments.store.amazon.com, what is the Top-Level Domain (TLD)?

13. Interview Questions

  • Q: Explain the structural difference between a Top-Level Domain (TLD) and a Subdomain.
  • Q: What is the technical difference between a gTLD and a ccTLD? Provide an example of how the tech industry has co-opted certain ccTLDs.
  • Q: Describe the relationship between ICANN, a Domain Registry, and a Domain Registrar.

14. FAQs

Q: Can anyone register a .gov or .edu domain? A: Absolutely not. While anyone with a credit card can register a .com or .pizza, highly restricted TLDs like .gov require extensive legal verification to prove you are an official government entity. This is why you should inherently trust information on a .gov website more than a .com.

15. Summary

In Chapter 5, we dissected the anatomical structure of a domain name, learning to read URLs from right-to-left exactly as the DNS hierarchy processes them. We explored the vast ecosystem of Top-Level Domains (TLDs), distinguishing between generic commercial extensions (gTLDs) and sovereign country codes (ccTLDs). We established that Subdomains serve as free, highly effective organizational prefixes for enterprise architecture. Finally, we demystified the business of the internet, mapping the administrative flow from the ultimate authority of ICANN down to retail Domain Registrars.

16. Next Chapter Recommendation

You bought the domain name. Now you need to configure it to point to your web server and your email server. How do you actually program the Authoritative Nameserver? Proceed to Chapter 6: DNS Records Explained.

Finish this Chapter

Save your progress on your learning path and prepare for coding interview challenges.

Discussion

Join the discussion

Log in or create a free account to participate.

Sort: ·