HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Problems
  2. /On a first visit to a website, the browser's domain name server does not know the name…
MediumComputer ScienceHigh School (9–10)Computer Science › The Internet, the Web and Digital CurrencyNumericalIGCSE

On a first visit to a website, the browser's domain name server does not know the name…

StemPy LabContributed by StemPy Lab

Try it on paper first. A hint, the key idea and the worked solution are here when you need them.

On a first visit to a website, the browser's domain name server does not know the name. Four DNS servers are asked before the IP address comes back, and each takes 25 ms25\ \text{ms}25 ms. The web server then takes 150 ms150\ \text{ms}150 ms to send the page.

On the next visit, the first DNS already knows the IP address, so only that server is asked.

  1. How long does the first visit take until the page arrives?
  1. How long does the next visit take?
  1. How many milliseconds are saved on each later visit?

Check your answer

Work it out on paper, then type your number. The answer itself stays hidden.

Need a reminder? The key ideaShowHide

The browser sends the domain name to a domain name server (DNS). The DNS returns the IP address (asking another DNS if it does not know the name). The browser sends a request to the web server at that address, the server sends the page as HTML, and the browser renders it. A cookie is a small text file that a website stores on the device through the browser: a session cookie is deleted when the browser closes, a persistent cookie stays until its expiry date or until it is deleted.

The worked solution

Have you tried it?

Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.

Step 1. First visit. 4×25+150=100+150=250 ms4 \times 25 + 150 = 100 + 150 = 250\ \text{ms}4×25+150=100+150=250 ms.

Step 2. Next visit. 1×25+150=175 ms1 \times 25 + 150 = 175\ \text{ms}1×25+150=175 ms.

Step 3. The saving. 250−175=75 ms250 - 175 = 75\ \text{ms}250−175=75 ms. That is the time of the three servers that were not asked: 3×25=75 ms3 \times 25 = 75\ \text{ms}3×25=75 ms.

Answer: (a) 250 ms250\ \text{ms}250 ms. (b) 175 ms175\ \text{ms}175 ms. (c) 75 ms75\ \text{ms}75 ms.

Why it matters. A DNS keeps the answers it gets, so popular websites are found quickly.

Log in to save this for later
← All Problems
← A user types www.example.org/maps.html into a browser and presses Enter…A weather website stores a persistent cookie that remembers a user's home town… →
More onComputer Science › The Internet, the Web and Digital Currency

Discussion (0)

Log in to join the discussion.

Loading…

More on this topic

  1. Part of a blockchain holds these payments, oldest first…Hard
  2. A blockchain has 56 blocks. A new block is added to the honest chain every 10 minutes…Hard
  3. Kemal pays Dana 9 units of a digital currency that uses a blockchain…Medium
  4. A blockchain is copied on 40 computers in a network…Medium
  5. A student designs a "blockchain" in which each block holds only its data, a time-stamp and its own…Hard
All problems on this topic →