Published Jun 19, 2021Updated Oct 26, 2022
Contribute to Docs
The Domain Name System (DNS) protocol converts domain names to IP addresses. Think of it as a phonebook for the Internet. It’s hard to remember an exact IP address when we want to access a website.
When we request the URL
codecademy.com, our computer sends a DNS request to a DNS server. The server then returns the correct IP addresses like
220.127.116.11 to route data to and from Codecademy.
Each domain name is made up of three parts:
third-level-domain . second-level-domain . top-level-domain
- Top level domain: There are a limited set of top level domains, and many websites use the most common ones like “.com”, “.org”, and “.edu”.
- Second level domain: The second level domain is unique to the company or organization that registers it, like “codecademy” or “wikipedia”.
- Third level domain (subdomain): It’s owned by the same group and that URL often directs you to a subset of the website.
For example: shop.codecademy.com (Codecademy’s merch shop):
- Top level domain: “.com”
- Second level domain: “codecademy”
- Third level domain: “shop”
Looking to contribute?
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.
Learn More on Codecademy
Computer ScienceLooking for an introduction to the theory behind programming? Master Python while learning data structures, algorithms, and more!
Includes 6 Courses
With Professional Certification