• 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.

— Remember

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. 1. What does DNS do?

    1. Converts files into folders
    2. Translates domain names into IP addresses
    3. Boosts weak network signals
    4. 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. 2. Which of these is NOT a valid IPv4 address?

    1. 192.168.1.256
    2. 10.0.0.1
    3. 172.16.5.9
    4. 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. 3. How many numbers, separated by dots, make up an IPv4 address?

    1. Two
    2. Six
    3. Eight
    4. Four
    Show answer

    Answer: D. An IPv4 address is four numbers such as 192.168.1.10.

  4. 4. Which address is built into the network card hardware of a device?

    1. IP address
    2. Domain name
    3. MAC address
    4. Web address
    Show answer

    Answer: C. The MAC address belongs to the network hardware; an IP address can change with the network.

  5. 5. In the TCP/IP suite, which part makes sure that data arrives complete and in order?

    1. TCP
    2. IP
    3. DNS
    4. MAC
    Show answer

    Answer: A. IP delivers packets to the right address; TCP makes sure they arrive complete and in order.

Privacy · Terms · Refunds · Delivery