DNS & Domain Names
DNS (Domain Name System) is like the internet's phone book.
Why DNS Exists
Computers use IP addresses like 142.250.190.46 but humans prefer names like google.com. DNS translates between them.
How DNS Works
- You type
example.com - Browser checks its cache
- If not found, asks your ISP's DNS server
- DNS server looks up the IP address
- Returns:
93.184.216.34 - Browser connects to that IP
Domain Structure
https://www.example.com/page
│ │ │ │
│ │ │ └── Path
│ │ └── Domain name
│ └── Subdomain
└── ProtocolTLDs (Top-Level Domains)
- .com - Commercial
- .org - Organizations
- .net - Network
- .io - Popular with tech startups