Skip to content

Names and DNS

Humans remember names like school.edu. Computers prefer number addresses. DNS translates names into numbers.

Class 6 to 8beginner18 min3 lessons1 interactive lab
By the end you will be able to
  • Explain why websites use names instead of long numbers
  • Describe DNS as a lookup service
  • Predict what happens when a name is misspelled

Finish first

Lesson 1 of 3

Names for people, numbers for machines

Every site on the internet also has a numeric address, a bit like a phone number for computers. People would find long numbers hard to remember, so we use names such as bbc.co.uk or wikipedia.org.

Your device cannot mail a letter using only a nickname. It needs the real address. DNS, which stands for Domain Name System, is the service that looks up a name and returns the number.

Open the DNS lab beside this lesson. Pick a preset or type a name, then step through the lookup. Watch the question travel to a DNS server and the number come back.

Interactive lab

DNS lookup

Pick a preset or type a site name and step through the lookup. See the question reach a DNS server and the numeric address return.

DNS lookup

Name to number, step by step

codexlab.school

Your browser
What is the IP for codexlab.school?
Local resolver
I do not know yet. Asking upstream.
Root server
Who handles .school?
Try the .school nameserver
.school server
Who owns codexlab.school?
Try the codexlab nameserver
codexlab.school server
What is the IP?
203.0.113.42
1 / 6

Start

Humans type names like codexlab.school. Computers need numbers. DNS is the phone book that translates the name into an address.

Continue

Lesson 2 of 3

How a lookup works

When you open a site, your device often asks a DNS server at your school or home first. If that server knows the answer, it replies quickly. If not, it asks another DNS server up the chain.

The answer is cached, which means stored for a short time. That way the same name does not need a full lookup every second. Cached answers make the web feel fast.

If you spell a name wrong, DNS cannot find a match. Your browser may show an error page instead of the site you wanted.

Continue

Lesson 3 of 3

Trust and the right name

DNS is powerful because it decides which number belongs to a name. Tricksters sometimes try fake lookups to send you to the wrong site. That is one reason HTTPS and careful clicking matter later.

Official school sites use names you recognise. If a link swaps one letter, the name looks similar but the lookup may point somewhere else entirely.

Next you will follow packets, the small chunks of data that carry requests and answers across the internet.

Continue

Practice

Work these out yourself

No answer key here on purpose: these are the questions worth thinking through before you move on. Open one and work it out.

0/3 attempted

Assessment

Check your understanding

Answer each question, then read the explanation. That is where the learning is.

0/4
  1. Question 1: What does DNS do?
    Question 1 / 4

    What does DNS do?

    Select an option first
  2. Question 2: Who are site names mainly for?
    Question 2 / 4

    Who are site names mainly for?

    Select an option first
  3. Question 3: Why cache a DNS answer?
    Question 3 / 4

    Why cache a DNS answer?

    Select an option first
  4. Question 4: A misspelled domain name often leads to what?
    Question 4 / 4

    A misspelled domain name often leads to what?

    Select an option first
4 of 4 questions left.

Finished this topic?

0 of 3 lessons marked done. Marking the topic complete ticks the rest.