IP Addresses & DNS
1 min read2 lessons in topic
Learning objective
By the end of this lesson you will be able to explain IP addresses, how devices find each other and what DNS does.
Every device on a network needs a unique identifier — its IP address — so data can be delivered to the right place.
IP addresses
- IPv4 — four numbers, e.g. 192.168.1.10
- IPv6 — longer addresses for the growing internet
- Private addresses (192.168.x.x, 10.x.x.x) are used inside LANs
- Public addresses identify a device on the internet
How devices find each other
When your phone talks to your laptop, packets are sent to the destination IP address on the same LAN. When traffic must leave the network, the router forwards it.
DNS — the internet's phonebook
People remember names like uenr.edu.gh; computers need numbers. The Domain Name System (DNS) translates a domain name into an IP address.
What happens when you visit a site
- You type www.uenr.edu.gh
- Your device asks a DNS server for its IP address
- The DNS server replies with the address
- Your browser connects to that IP and loads the page
Practice exercise
Run ipconfig (Windows) or ifconfig (Linux/macOS) and note your device's IP address.
Check your understanding
1. What does DNS do?
2. Which of these is a private IPv4 address?
Self-graded — answer then check below.