Networking Fundamentals

Lesson 3 of 8

IP Addresses & DNS

How every device gets an address, why IPv4 ran out of space, and how DNS turns names into numbers. Practical: inspect addresses and repair connectivity.

🟢 Beginner 50 XP

Learn it

An IP address is a device's address on a network — like a postal address for data. IPv4 addresses look like 192.168.1.10: four numbers from 0 to 255.

IPv4 is 32 bits long, which allows about 4.3 billion addresses — not enough for a world with billions of phones. IPv6 uses 128 bits and hexadecimal, giving an effectively endless supply.

Some addresses are private, only usable inside local networks: 10.x.x.x, 172.16.x.x–172.31.x.x and 192.168.x.x. Your home devices use private addresses; the router presents one public address to the internet.

DNS (the Domain Name System) is the internet's phone book: it turns names like example.com into IP addresses, because humans remember names and computers need numbers.

Practical · 30–35 minutes

Inspect addresses and repair connectivity

A browser; optionally your own device’s network settings or a teacher-approved terminal.

Only inspect your own device or teacher-approved equipment and targets. Never change the school network, disconnect shared cables, scan other devices or record passwords. If tools are blocked, use the supplied examples or browser lab.

Repair the classroom network

Browser simulation · no commands run on your device. The workstation must reach the printer and library.example. Find and fix four faults.

Workstation

192.168.20.10

Router

192.168.10.1

DNS server

192.168.10.2

Printer

192.168.10.20

Classroom subnet: 192.168.10.0/24. Router, DNS and printer addresses are already in use.

Run ipconfig to inspect the broken workstation.
0/4 steps self-checked · not teacher marked

Key terms

IP address
A device's numeric address on a network.
IPv4 / IPv6
The 32-bit and 128-bit versions of the Internet Protocol address system.
Private address
An address only valid inside a local network, like 192.168.1.10.
DHCP
The protocol that hands out IP addresses automatically.
DNS
The system that translates domain names into IP addresses.
NAT
Rewriting private addresses to one shared public address at the router.

Find your own addresses

  1. 1Private address: On a school device, find its IP address (Wi-Fi settings, or ipconfig / ip addr). It almost certainly starts with 10., 172.16–31. or 192.168. — a private address.
  2. 2Public address: Compare your private address with a fictional public address from the lesson. Do not share your real public IP address or use unapproved lookup sites.
  3. 3DNS in action: Pick a website and ask: what name did you type, and what number did DNS find for it? Tools like nslookup show the answer.

A DNS lookup, step by step

textYou type: www.example.com
1. Browser asks the DNS resolver: "who is www.example.com?"
2. Resolver asks a root server -> "ask the .com servers"
3. Resolver asks a .com server -> "ask example.com's DNS"
4. example.com's DNS answers: 93.184.216.34
5. Resolver caches the answer and replies to your browser
6. Browser connects to 93.184.216.34

DNS is a distributed phone book: no single server knows everything, but each server knows who to ask next. Caching makes repeat visits fast.

Try it

True or false?

192.168.0.25 is a private IP address.

IPv4 addresses are 128 bits long.

DNS translates domain names into IP addresses.

DHCP means you must type an IP address into every device by hand.

IPv4 allows about 4.3 billion addresses.

Challenge

A small office has 20 devices and keeps running out of addresses because everything was configured by hand. Explain how DHCP would fix this, which private address range you would use, and how DNS and NAT let the office share one public IP address and reach websites by name.

Pick whichever way suits you — every mode earns the same bonus XP.

Write at least 40 more characters to submit.

Mark your own work

Guided walkthrough — 0/2 clues revealed

  1. Clue 1 locked — reveal it only if you get stuck.
  2. Clue 2 locked — reveal it only if you get stuck.

Each clue costs 3 XP (never below 13 XP). You'd earn 25 XP right now.

Quiz time

Question 1 of 3Score 0

How many bits long is an IPv4 address?

Sources & further reading

Connected courses