- Foundation
- About 12 min
- 5 practice questions
IP addresses, DNS and protocols
Explain what an IP address and a domain name are, how DNS links them and the role of protocols.
If something looks wrong, please tell us.
For devices to find each other across the world, every one needs an address, and communication needs agreed rules. This lesson covers both.
IP address
An IP address is a unique number that identifies a device on a network. IPv4 addresses are written as four numbers from 0 to 255 separated by dots, for example 192.168.1.10. IPv6 is a newer, longer format created because IPv4 addresses are limited in number.
Domain name and DNS
Numbers are hard to remember, so websites also have names such as example.com. The Domain Name System (DNS) works like a phone book: it translates a domain name into the IP address of the server.
MAC address
A MAC address is a hardware address built into a network card. An IP address can change with the network; a MAC address belongs to the device's network hardware.
Protocols
A protocol is a set of rules for communication. TCP/IP is the basic protocol suite of the internet; IP delivers packets to the right address and TCP makes sure they arrive complete and in order. Data travels in small pieces called packets.
Worked examples
Example 1. Which of these is a valid IPv4 address: 192.168.1.10 or 192.168.1.300? The first, since each number must be between 0 and 255 and 300 is too large.
Example 2. You type a website name and the page loads. What did DNS do? It converted the name into the server's IP address.
Example 3. How many numbers make up an IPv4 address? Four.
IP address identifies a device; DNS turns names into IP addresses; each IPv4 number is 0 to 255.
Key takeaways
- IP address = number for a device; DNS = names to numbers.
- Protocols are rules; TCP/IP runs the internet.
- Data travels in packets.
Check your understanding
-
1. What does DNS do?
- Converts files into folders
- Translates domain names into IP addresses
- Boosts weak network signals
- Splits a network into topologies
Show answer
Answer: B. DNS works like a phone book: it turns a name such as example.com into the server's IP address.
-
2. Which of these is NOT a valid IPv4 address?
- 192.168.1.256
- 10.0.0.1
- 172.16.5.9
- 192.168.0.100
Show answer
Answer: A. Each number in an IPv4 address must be from 0 to 255; 256 is too large.
-
3. How many numbers, separated by dots, make up an IPv4 address?
- Two
- Six
- Eight
- Four
Show answer
Answer: D. An IPv4 address is four numbers such as 192.168.1.10.
-
4. Which address is built into the network card hardware of a device?
- IP address
- Domain name
- MAC address
- Web address
Show answer
Answer: C. The MAC address belongs to the network hardware; an IP address can change with the network.
-
5. In the TCP/IP suite, which part makes sure that data arrives complete and in order?
- TCP
- IP
- DNS
- MAC
Show answer
Answer: A. IP delivers packets to the right address; TCP makes sure they arrive complete and in order.
Sign in to keep track of the lessons you finish.