Names and DNS
Humans remember names like school.edu. Computers prefer number addresses. DNS translates names into numbers.
- 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
Topic contents
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.
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 stepcodexlab.school
Start
Humans type names like codexlab.school. Computers need numbers. DNS is the phone book that translates the name into an address.
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.
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.
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 attemptedAssessment
Check your understanding
Answer each question, then read the explanation. That is where the learning is.
Finished this topic?
0 of 3 lessons marked done. Marking the topic complete ticks the rest.
