Previous Lesson
PDF

Objective

By the end of this lesson, the student will understand the basics of how DNS (Domain Name System) works, specifically focusing on CNAME records. They will learn how to look up DNS records using tools like nslookup and curl, and they will gain confidence in exploring web addresses and their associated data.

Materials and Prep

  • A computer with internet access
  • Access to a command line interface (like Command Prompt on Windows or Terminal on macOS/Linux)
  • A notebook and pen for taking notes

Before the lesson, make sure the student knows how to open the command line interface and navigate to it. Familiarize them with basic commands if necessary.

Activities

  • Introduction to DNS

    Start with a brief discussion about what DNS is and why it is important for the internet. Use simple analogies, like comparing DNS to a phone book that helps find the right number (IP address) for a name (domain). This will help the student relate to the concept.

  • Using nslookup

    Guide the student to use the nslookup command to find CNAME records. Have them type in the command and observe the output together. Discuss what the results mean and how they relate to the website they are exploring.

  • Exploring curl

    Introduce the curl command as a way to interact with web addresses. Have the student use curl to fetch information from the same domain. Discuss the differences between the outputs of nslookup and curl, emphasizing how they provide different types of information.

  • Creative Project

    Encourage the student to choose a website they are interested in and perform both nslookup and curl commands on it. They can then create a small presentation or poster explaining what they discovered about the website's DNS records.

Talking Points

  • "DNS stands for Domain Name System. It's like a phone book for the internet, helping us find websites by their names instead of their numbers."
  • "A CNAME record is a type of DNS record that allows you to alias one domain name to another. This is useful for pointing different names to the same website."
  • "Using nslookup, we can find out what the CNAME records are for a website. It tells us what other names point to this website."
  • "Curl is a tool that lets us see what happens when we visit a website. It can show us the data that the website sends back to us."
  • "By exploring different websites, we can learn how they are connected and understand more about the internet as a whole!"

Ask a question about this lesson

Loading...