Objective
By the end of this lesson, the student will understand how to use basic command-line tools to look up information about websites, specifically focusing on DNS (Domain Name System) records. They will learn about CNAME records and how they function in the context of web addresses.
Materials and Prep
- A computer with internet access
- A command-line interface (such as Terminal on macOS or Command Prompt on Windows)
- A notebook and pen for taking notes
- Basic understanding of what a website is and how the internet works
Activities
-
Introduction to DNS
Start by explaining what DNS is and why it is important for the internet. Use simple terms and analogies, like comparing it to a phone book that helps find the right number for a person or business.
-
CNAME Record Exploration
Have the student look up a CNAME record using the command
nslookup -q=cname example.com. Explain what the output means and how it relates to the website they are researching. -
Using Curl
Introduce the curl command by having the student try
curl example.com. Discuss what information they can gather from this command and how it can be useful. -
Creative Project
Ask the student to create a mini-poster or digital presentation about what they learned, including the importance of DNS and CNAME records. They can use drawings or diagrams to illustrate their points.
Talking Points
- "Do you know how your computer finds websites? It uses something called DNS, which stands for Domain Name System!"
- "A CNAME record is like a nickname for a website. It tells your computer to look for another name instead of the main one!"
- "When we use the command `nslookup`, we are asking our computer to look up information about a website's address. It's like asking a librarian for help!"
- "Curl is a tool that helps us see what a website is sending back to us. It's like looking at a letter someone wrote to you!"
- "Creating a poster or presentation helps us remember what we learned and share it with others. What do you think is the coolest thing you learned today?"