How DNS Works?
DNS is the phone book of the internet. It converts domain names to IP addresses.
01Why DNS?
Which is easier?
- 142.250.185.78
- google.com
Humans prefer names, computers prefer numbers. DNS bridges the two!
02DNS Query Process
- Browser Cache - Did you visit before?
- OS Cache - Does the operating system know?
- Router Cache - Is it recorded in the router?
- ISP DNS - Ask your service provider
- Root DNS - Top level server
- TLD DNS - Domain extensions like .com, .org
- Authoritative DNS - The real answer
03DNS Record Types
| Record | Description | Example |
|---|---|---|
| A | IPv4 address | example.com → 93.184.216.34 |
| AAAA | IPv6 address | IPv6 format |
| CNAME | Alias | www → example.com |
| MX | Mail server | mail.example.com |
| TXT | Text info | For verification |
In the simulation, you'll see how a DNS query works step by step!