← Teacher guide

Names and addresses

Students look up names in a DNS board and follow each packet's address through a router table, to explain how domain names and IP addresses get data to the right computer and why a lookalike name is dangerous (AC9TDI10K01 node 2).

Security and privacy · How systems are kept safe · about 40 minutes · Open the student lesson

Classroom resources

Open these in Waypoints Prepare with one click. To share a file another way, copy its address and paste it into Load URL, or download the file and import it. In Prepare, the worksheet's Teacher edition shows the answers; the student copy hides them.

Students will be able to

Timing

Predict and Try 6 min · Worked example 12 min · Vary 10 min · Practise and Make 12 min

Before class

Try the board yourself. Every address on it comes from the ranges kept for documentation and examples (192.0.2.x, 198.51.100.x, 203.0.113.x), so none is a real site.

The one idea: names map to addresses through DNS, packets carry addresses, routers forward by the start of the address. Lookalike names (phishing) reach other computers.

Hands-on: on a school computer, nslookup or ping a well-known site to see a real address (check the school network allows it).

Running the lesson

  1. Predict: students who chose "DNS fixes typos" hold Sam's misconception.
  2. Try: ask whose computer 198.51.100.66 might be.
  3. Worked example: compare the router table with postcodes.
  4. Vary: ask why nothing is sent for a name that doesn't exist.
  5. Make: collect students' rules for checking links.

In class

On the slides at these points. Students can do the whole lesson on their own; these are for the room. In the deck, the Run, Modify and Make slides have the live playground in them (the tutorial link is the backup), and the notes above are in each slide's speaker notes.

The hard part (on purpose)

The difference between a name looking right and being right. Make students read names character by character, aloud.

When students get stuck

What you will seeA question to askThe fix
A student trusts schoo1.edu.au (Sam's mistake).Is that the same name, character by character?A different name has a different address.
A student thinks the IP address is a person.How many people use your home's public address?It identifies a device or network, not a person.

Answers to the checks

  1. one letter different: An email links to **schoo1.edu.au** (a number 1 instead of the letter l). The real site is **school.edu.au**. Where will the link take you?
    To a different computer. DNS looks up the exact name, and schoo1.edu.au is a separate name with its own address, owned by someone else.
  2. Try: look them up: Press Go for school.edu.au, then look up schoo1.edu.au. Where does each one go?

    school.edu.au is 203.0.113.10; schoo1.edu.au is 198.51.100.66, a different computer that is not the school's.
  3. school.edu.au: What does DNS do?
    Turns a website name into an IP address
    DNS is the internet's address book: a name like school.edu.au in, IP address out.
  4. Find the mistake: Sam decides an email link is safe. Click the line where it first goes wrong.
    line 3
    Line 3: DNS looks up the exact name. schoo1.edu.au has its own address, so the link goes to someone else's computer: a phishing site.
  5. Private and public: Your laptop at home is 192.168.1.23, but websites see 198.51.100.7. Why?
    Your router shares one public address for the home
    192.168… is a private address used only inside your home. Private addresses are reused in millions of homes; your router uses one public address for the internet, for every device in the home.
  6. Part of the school: Look up library.school.edu.au. Which router row sends it?

    203.0.113.20 starts 203.0.113, so row 1 sends it to the school network.
  7. Another site: Look up weather.example.

    192.0.2.44 matches row 2: it goes out to the internet provider.
  8. No such name: Look up a name that doesn't exist, such as nowhere.example.

    DNS has no address for it, so nothing is sent.
  9. Reading the table: Why does the router only look at the start of the address?
    The start says which network, so which way to send it
    Like a postcode: the start of the address says which network, so a router only needs a row for each group.
  10. Real or not?: Which link goes to the real school site **school.edu.au**?
    https://school.edu.au/login
    Only the first ends in exactly school.edu.au. The others are other people's names dressed up.
  11. IP addresses: What does an IP address identify?
    A device (or a router) on the internet
    It is the address packets are delivered to: a device, or a network's router.
  12. Review: HTTPS: Review: where does HTTPS encrypt your data?
    On your device, before it is sent
    Encrypted on your device, decrypted by the website.
  13. check before you click: An email offers these links: schoo1.edu.au, school.edu.au, library.school.edu.au. Look up all three, and finish on one that reaches the real school portal.

    Both school.edu.au and library.school.edu.au reach the school (203.0.113.x); schoo1.edu.au does not. Typing the address yourself is safer than clicking.

Solutions

One possible solution for each task. Other correct programs are fine.

Vary: one name at a time › Part of the school

Open task: any program that does what the step asks.

Vary: one name at a time › Another site

Open task: any program that does what the step asks.

Vary: one name at a time › No such name

Open task: any program that does what the step asks.

Vary: one name at a time › Reading the table

Open task: any program that does what the step asks.

check before you click

Open task: any program that does what the step asks.

Stretch and support

Stretch: IPv4 addresses have four numbers from 0 to 255. How many is that, and why did the world run out? (About 4.3 billion; look up IPv6.)

Support: Show a name split into parts (library . school . edu . au) and read it right to left.

Exit ticket

What does DNS do? Why is schoo1.edu.au not the school?

Turns a name into an IP address. It is a different name, so DNS gives a different address: someone else's computer.

What each step is for

Where it leads

Next: Who are you, and what may you do? (sign-in and permissions).

Builds on: Networks (packets and routers). Links to Data representation: each part of an IPv4 address is one byte.