You type "google.com" and the page appears. But how did your device find Google? And how did it get an IP address in the first place? The answer: network services — invisible helpers that make the internet feel like magic. Today we meet the four MVPs: DNS, DHCP, NTP, and file sharing. 🎩✨
Computers don't understand names like youtube.com — they only understand IP addresses. DNS (Domain Name System) translates one to the other. Without it, you'd have to memorise a number for every website. No thanks! 📞
You save "Mum" in your phone instead of her number. DNS does the same: "youtube.com" → "142.250.80.46". 📱
You ask "who is google.com?" and DNS replies with an IP address. That's a DNS query. 🔍
On DNS servers — huge distributed databases. Your router forwards queries to your ISP's DNS (or a public one like 8.8.8.8). 🌍
| Record | What it does | Example |
|---|---|---|
| A | Maps a name to an IPv4 address | google.com → 142.250.80.46 |
| AAAA | Maps a name to an IPv6 address | google.com → 2a00:1450:4001:... |
| CNAME | Alias — points one name to another name | www.site.com → site.com |
| MX | Tells email where to deliver for a domain | site.com mail → mail.site.com |
| TXT | Free-form text (used for verification, spam checks) | v=spf1 include:_spf.google.com |
Try nslookup google.com or dig google.com to see real DNS records in action! 🕵️
DHCP (Dynamic Host Configuration Protocol) hands out IP addresses automatically when a device joins a network. Without it, you'd have to type in your IP, subnet mask, gateway, and DNS servers manually — every single time. No thanks! 🙅
This is called the DORA process: Discover → Offer → Request → Ack. Four little steps, and you're online. 🎉
NTP (Network Time Protocol) makes sure every device on the network has the same time — accurate to within milliseconds. Sounds boring? It's not! 🔥
How do computers share files across a network? With file-sharing protocols. The two big ones are SMB (Windows world) and NFS (Linux/Unix world).
Server Message Block — Windows file sharing. Used by Windows shares, network drives, and printers. When you see a "shared folder" on a school PC, it's SMB. 🗂️
Network File System — the Linux/Unix equivalent. Common on servers and NAS devices. Like SMB, but for the Unix world. 🐧
Web file sharing. Every page you load is a file sent via HTTP (or its encrypted cousin, HTTPS). Not "file sharing" in the classic sense, but it delivers files. 📄
Modern file sharing over the internet. Your files live on a server, accessible from anywhere. Easy, but you need internet to reach them. ☁️
Router> enable Router# configure terminal ! Create a DHCP pool called "STUDENTS" Router(config)# ip dhcp pool STUDENTS Router(dhcp-config)# network 192.168.20.0 255.255.255.0 Router(dhcp-config)# default-router 192.168.20.1 Router(dhcp-config)# dns-server 8.8.8.8 ! Reserve an address for a printer (same every time) Router(config)# ip dhcp excluded-address 192.168.20.50 Router(config)# end Router# show ip dhcp binding
This tells the router: "Hand out IPs in 192.168.20.0/24, use .1 as the gateway and 8.8.8.8 as DNS." Simple! 🖥️
You just learned: DNS & record types (A, AAAA, CNAME, MX, TXT), DHCP & the DORA process, NTP clock sync, file sharing with SMB/NFS, and client‑server vs cloud services.