Skip to content
Computer Science · Grade 11 · Networks and Digital Security · Term 4

IP Addressing and DNS

Understand how IP addresses uniquely identify devices on a network and the function of the Domain Name System (DNS).

Ontario Curriculum ExpectationsCS.HS.N.2

About This Topic

IP addresses serve as unique identifiers for devices on a network, much like house numbers direct mail. IPv4 uses 32-bit addresses in dotted decimal format, for example 192.168.1.100, while IPv6 employs 128-bit hexadecimal notation to provide an enormous pool of addresses. Students examine assignment methods: static configuration by network admins for servers, or dynamic allocation through DHCP for most client devices, which lease addresses for set periods.

The Domain Name System (DNS) resolves human-readable domain names, such as ontario.ca, into these IP addresses via a hierarchical process. A client's recursive resolver queries root servers, then top-level domain servers, and finally authoritative name servers. This system underpins internet navigation and connects to digital security by highlighting vulnerabilities like cache poisoning.

Active learning benefits this topic greatly since networking protocols are invisible until revealed through tools and models. When students run traceroute commands or simulate DNS queries in pairs, they observe real-time resolutions, connect theory to practice, and build troubleshooting confidence essential for computer science.

Key Questions

  1. Explain the purpose of IP addresses and how they are assigned.
  2. Analyze the process by which DNS translates human-readable domain names into IP addresses.
  3. Differentiate between IPv4 and IPv6, and justify the need for the latter.

Learning Objectives

  • Explain the purpose of IP addresses and the methods by which they are assigned (static vs. dynamic).
  • Analyze the hierarchical process by which the Domain Name System (DNS) translates domain names into IP addresses.
  • Compare and contrast the structure and address space of IPv4 and IPv6.
  • Justify the necessity of IPv6 given the limitations of IPv4.
  • Identify potential security vulnerabilities within the DNS resolution process.

Before You Start

Introduction to Computer Networks

Why: Students need a basic understanding of what a network is and how devices communicate before learning about specific addressing schemes.

Binary and Hexadecimal Number Systems

Why: Familiarity with these number systems is helpful for understanding the structure of IPv4 and IPv6 addresses.

Key Vocabulary

IP AddressA unique numerical label assigned to each device connected to a computer network that uses the Internet Protocol for communication.
DNS (Domain Name System)A hierarchical and decentralized naming system for computers, services, or other resources connected to the Internet or a private network. It translates human-readable domain names into machine-readable IP addresses.
DHCP (Dynamic Host Configuration Protocol)A network management protocol used to automatically assign IP addresses and other network configuration parameters to devices on a network.
IPv4The fourth version of the Internet Protocol, using a 32-bit address format that supports approximately 4.3 billion unique addresses.
IPv6The latest version of the Internet Protocol, using a 128-bit address format to provide a vastly larger pool of unique IP addresses.

Watch Out for These Misconceptions

Common MisconceptionIP addresses are permanent and never change for a device.

What to Teach Instead

Most IPs are dynamically assigned via DHCP and renew or change on lease expiry or reconnection. Demonstrations where students disconnect and reconnect WiFi reveal this fluidity, helping them grasp network management through direct observation and peer comparison.

Common MisconceptionDNS works like a single central phonebook with all mappings.

What to Teach Instead

DNS uses a distributed hierarchy of servers for scalable resolution. Live nslookup activities trace the query path from local resolver to root servers, clarifying delegation and reducing reliance on oversimplified analogies.

Common MisconceptionIPv6 offers no advantages beyond more addresses than IPv4.

What to Teach Instead

IPv6 includes built-in security like IPsec and simplified headers for efficiency. Address exhaustion simulations followed by IPv6 allocation exercises highlight these benefits, engaging students in justifying the global transition.

Active Learning Ideas

See all activities

Real-World Connections

  • Network administrators at large corporations like Google use static IP addresses to ensure their critical servers are always reachable at the same address, facilitating reliable access to services.
  • Internet Service Providers (ISPs) like Rogers or Bell use DHCP servers to dynamically assign IP addresses to millions of home internet subscribers, managing address allocation efficiently.
  • Web developers rely on DNS to make their websites accessible; when a user types a domain name into a browser, DNS is the invisible system that directs the browser to the correct server hosting the website.

Assessment Ideas

Quick Check

Present students with a list of IP addresses (some valid IPv4, some valid IPv6, some invalid). Ask them to classify each as IPv4, IPv6, or invalid, and briefly explain their reasoning for one of each category.

Discussion Prompt

Pose the question: 'Imagine the internet without DNS. Describe two major problems users would face and how the current DNS system solves them.' Facilitate a class discussion, encouraging students to reference specific DNS functions.

Exit Ticket

On an index card, have students write: 1) One reason why IPv6 was developed. 2) The role of a recursive resolver in the DNS process. 3) An example of a device that might use a static IP address.

Frequently Asked Questions

What is the purpose of IP addresses in computer networks?
IP addresses uniquely identify sending and receiving devices, routing data packets across networks. IPv4 provides about 4 billion addresses, often insufficient today, while IPv6 expands to 340 undecillion. Assignment via DHCP automates this for efficiency, but static IPs suit servers needing consistency. Students master this by exploring local network scans.
How does the DNS process work to translate domain names?
DNS starts with a recursive resolver querying root servers, which direct to TLD servers like .ca, then to authoritative servers holding the exact IP. Caching speeds repeats. This hierarchy ensures scalability for billions of domains. Classroom traces with dig commands make the steps concrete and memorable.
What are the key differences between IPv4 and IPv6?
IPv4 uses 32 bits (e.g., 192.168.0.1) with address shortages solved by NAT, while IPv6's 128 bits (e.g., 2001:db8::1) eliminate NAT needs and add features like auto-configuration and mandatory IPsec. The shift addresses internet growth. Simulations of scarcity drive home the justification.
How can active learning help teach IP addressing and DNS?
Active strategies like live command-line queries and network mapping let students interact with protocols directly, turning abstract ideas into observable events. Pair tracings of DNS paths build collaboration and debugging skills, while IPv6 simulations reveal real-world constraints. These approaches boost retention by 30-50% over lectures, per education research, and prepare students for certifications.