Beginner Topic 13 of 50 Computer Networks
DNS
Distributed system translating names to IP addresses.
How it works
The Domain Name System translates human-readable names like example.com into IP addresses and other data. It is a distributed, hierarchical database: root servers point to top-level domain servers, which point to authoritative servers for each domain. Recursive resolvers do the lookups for clients and cache answers according to time-to-live values. Record types include A, AAAA, CNAME, MX, TXT and NS.
Step-by-step walkthrough
- The browser asks the resolver for example.com.
- The resolver asks the root, which points to the .com servers.
- The .com servers point to the domain's authoritative server.
- The resolver asks the authoritative server.
- The IP address returns and is cached with a TTL.
Where it is used
Every web request, email delivery and API call begins with a DNS lookup. DNS also supports load balancing, service discovery, domain verification and email authentication through SPF and DKIM records.
Common pitfall
Cached records mean changes propagate slowly. DNS outages make working services look down. Plain DNS is unencrypted and open to spoofing and cache poisoning, so DNSSEC, DNS over HTTPS and TLS add protection. Wrong CNAME and MX setups break email and websites. Lower TTLs before planned migrations and use dig to debug.
Where it fits in the course
DNS is topic 13 of 50 in Computer Networks, rated Beginner. It follows Routers. The next topic is DHCP.
Practice and explore
- Open the interactive lesson, with a mini quiz.
- Take the Computer Networks quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- Check your understanding in the Computer Networks quiz, and revisit the topic if you miss a question.
Frequently asked questions
What is DNS?
Where do people use DNS?
What is the most common mistake with DNS?
What should I learn before this topic?
How can I practice it?
Is DNS hard to learn?
How long does it take to learn DNS?
Which topics are related to DNS?
What should I study after DNS?
Related topics
- Routers (Computer Networks)
- DHCP (Computer Networks)
- Switches and Hubs (Computer Networks)
- HTTP (Computer Networks)