What is a Domain Name

What is a Domain Name

What a domain name is, who owns it, and how it leads to a website

What you'll learn

  • What a domain name is and why we use names instead of IP addresses
  • The parts of a domain name: top-level domain, name and subdomains
  • How registrars and registries rent and track domain names
  • How DNS records point a domain at a server and an email provider

Every computer on the internet has an IP address, but numbers are hard to remember and they change when a site moves to a new server. A domain name like roadmap.sh is an easy name for a website that stays the same. The last part, .sh, is the top-level domain, and the part before it is the name the owner picked. The owner can add subdomains like docs.roadmap.sh or www.roadmap.sh without buying a new name.

You don't buy a domain name forever. You rent it, usually a year at a time. Each top-level domain is run by a registry, which keeps the list of every name under it and who holds it. The .com registry alone holds about 160 million names. You rent a name through a registrar like Namecheap or GoDaddy, and a .com costs about $10 to $20 a year. If you stop paying, the name expires, and after a grace period anyone can register it.

Owning the name is only half the job. DNS records point it at your website: an A record says which IP address the name is at, and an MX record says which server gets the domain's email. When the site moves to a new server, the owner only changes the record, so the name stays the same and visitors never notice.

More videos

35 short explainers so far, with more on the way

View all videos

Join the Community

roadmap.sh is among the top 10 most starred projects on GitHub and is visited by hundreds of thousands of developers every month.

Top 10 out of 28M!

371K

GitHub Stars

Star us on GitHub
Help us reach #1

+90kevery month

+3.2M

Registered Users

Register yourself
Commit to your growth

+2kevery month

52K

Discord Members

Join on Discord
Join the community

RoadmapsGuidesFAQsYouTube

roadmap.shby@nilbuild

Community created roadmaps, best practices, projects, articles, resources and journeys to help you choose your path and grow in your career.

© roadmap.sh·Terms·Privacy·

ThewNewStack

The top DevOps resource for Kubernetes, cloud-native computing, and large-scale development and deployment.