By the end of this lesson, you will:
When you enter a website URL (e.g., www.example.com
), your browser needs the corresponding IP address to connect. The Domain Name System (DNS) acts as the internet’s phonebook, resolving human-friendly domain names into machine-friendly IP addresses.
In this chapter, we’ll explore how DNS works, its architecture, and practical use cases.
The Domain Name System (DNS) is a hierarchical naming system that translates domain names (e.g., example.com
) into IP addresses (e.g., 192.168.1.1
) and vice versa.
When you type www.example.com
into your browser, the following steps occur:
.com
).www.example.com
?93.184.216.34
DNS operates as a distributed database with the following hierarchy:
.
at the end of domain names (often implicit)..com
, .org
, .net
, .edu
.example.com
, amazon.com
.blog.example.com
, shop.amazon.com
.example.com → 192.168.1.1
example.com → 2001:db8::1
www.example.com → example.com
example.com → mail.example.com
example.com → "v=spf1 include:_spf.google.com ~all"
example.com → ns1.example.com
192.168.1.1 → example.com
nslookup www.example.com
ipconfig /flushdns
dig www.example.com
cat /etc/resolv.conf
dns
www
to the root domain.nslookup
or dig
. sudo apt install bind9
sudo systemctl restart bind9
In the next chapter, we’ll delve into Ethernet Basics: Standards and Cabling
Your understanding of DNS is expanding—let’s keep building! 🌐