Objective
By the end of this lesson, the student will understand the basics of computer networking, specifically how domain names work and the role of DNS (Domain Name System) in translating them into IP addresses. They will also learn how to use command line tools to look up DNS information.
Materials and Prep
- A computer with internet access
- Access to a command line interface (Command Prompt for Windows, Terminal for Mac/Linux)
- Basic understanding of what a website is
- Prior knowledge of how to open applications on their computer
Activities
-
DNS Detective: The student will play the role of a detective, using the command line to find out the IP address of their favorite website. They will use the 'nslookup' command and write down their findings.
-
Cname Challenge: The student will learn about CNAME records by looking up different websites. They will compare the results of 'nslookup' with different queries and discuss what they find.
-
Web Explorer: The student will use the 'curl' command to fetch the homepage of a website. They will observe the raw HTML code and identify different elements like headings and paragraphs.
Talking Points
- "Do you know what happens when you type a website address into your browser? Your computer needs to find out where that website is located!"
- "The Domain Name System, or DNS, is like a phone book for the internet. It translates friendly names like 'google.com' into numbers that computers can understand."
- "When we use the 'nslookup' command, we're asking the computer to tell us the IP address of a website. It's like asking, 'Where can I find my friend?'"
- "A CNAME record is a type of DNS record that points one domain name to another. It's like saying, 'If you want to find my other house, go to my main house first!'"
- "Using 'curl' lets us see the actual content of a website. It's like peeking behind the curtain to see how everything is built!"