Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 05 · Networking · Build it yourself · with code: Python · about 12 min to read

Play it as a journeyTutor comes with a plan

Build it: the concierge who walks (a recursive resolver)

DNS Resolution
DNS Resolution · Open board

The concierge who walks the chain of referrals for you. In DNS Resolution you watched the walk with dig +trace. Here you build the walker, and the sticky notes it keeps.

Before you start. You need DNS Resolution (the concierge, referrals, glue, TTL), DNS on the wire (the bytes of a question and an answer) and Write the telegram yourself (you wrote a question by hand and read a name back out of a reply). This lesson joins them: the stub of 0009, grown into a program that starts knowing four addresses and ends up able to answer for any name. Python 3, no packages. A different build, From Scratch’s DNS server, is the other half of DNS: that one answers questions for a zone, and this one asks them.

Lesson 42 of 44 in Networking

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • 27 November 2023: the one address a resolver is born knowing
  • Part 1: read and write the bytes
  • Part 2: the walk
  • Glue, and which glue to believe
  • Not believing a stranger
  • Part 3: the memory
  • Where it is not a real resolver

Terms it explains: An answer, A CNAME, A no, A referral.

Lab

You changed the address. How long until the world stops sending people to the old one?

Set Seconds the concierge keeps the note to 300, press Add next question through the run, and watch the stranded count in The tally.

Open The TTL dial

Review Networking